Skip to content

Commit 9c737cb

Browse files
committed
save
1 parent 7b40be1 commit 9c737cb

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

db/state/execctx/domain_shared.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ func (sd *SharedDomains) ClearRam(resetCommitment bool) {
240240
sd.mem.ClearRam()
241241
}
242242

243-
func (sd *SharedDomains) SizeEstimate() uint64 {
243+
func (sd *SharedDomains) Size() uint64 {
244244
return sd.mem.SizeEstimate()
245245
}
246246

execution/stagedsync/exec3_metrics.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -876,7 +876,7 @@ func (p *Progress) log(mode string, suffix string, te *txExecutor, rs *state.Sta
876876
if mode == "done" {
877877
vals = []any{
878878
"in", interval,
879-
"buf", fmt.Sprintf("%s/%s", common.ByteCount(uint64(rs.SizeEstimateAfterCommitment())), common.ByteCount(p.commitThreshold)),
879+
"buf", fmt.Sprintf("%s/%s", common.ByteCount(rs.SizeEstimateAfterCommitment()), common.ByteCount(p.commitThreshold)),
880880
}
881881
}
882882

execution/state/rw_v3.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,7 @@ func (rs *StateV3) SizeEstimateBeforeCommitment() uint64 {
266266
if rs.domains == nil {
267267
return 0
268268
}
269-
sz := rs.domains.SizeEstimate()
269+
sz := rs.domains.Size()
270270
sz *= 2 // to cover data-structures overhead: map, btree, etc... and GC overhead (clean happening periodically)
271271
sz *= 2 // for Commitment calculation when batch is full
272272
return sz
@@ -277,7 +277,7 @@ func (rs *StateV3) SizeEstimateAfterCommitment() uint64 {
277277
if rs.domains == nil {
278278
return 0
279279
}
280-
sz := rs.domains.SizeEstimate()
280+
sz := rs.domains.Size()
281281
sz *= 2 // to cover data-structures overhead: map, btree, etc... and GC overhead (clean happening periodically)
282282
return sz
283283
}

0 commit comments

Comments
 (0)