|
28 | 28 | block_quarantine] |
29 | 29 |
|
30 | 30 | from std/sequtils import mapIt |
| 31 | +from std/heapqueue import len |
31 | 32 | from web3/engine_api_types import ExecutionPayloadBodyV1 |
32 | 33 |
|
33 | 34 | logScope: |
@@ -400,15 +401,17 @@ proc processUpdateBase(c: ForkedChainRef): Future[Result[void, string]] {.async: |
400 | 401 | base = c.base.number, |
401 | 402 | baseHash = c.base.hash.short, |
402 | 403 | pendingFCU = c.pendingFCU.short, |
403 | | - resolvedFin= c.latestFinalizedBlockNumber |
| 404 | + resolvedFin = c.latestFinalizedBlockNumber, |
| 405 | + dbSnapshotsCount = c.baseTxFrame.aTx.db.snapshots.len() |
404 | 406 | else: |
405 | 407 | debug "Finalized blocks persisted", |
406 | 408 | nBlocks = c.persistedCount, |
407 | 409 | target = c.base.hash.short, |
408 | 410 | base = c.base.number, |
409 | 411 | baseHash = c.base.hash.short, |
410 | 412 | pendingFCU = c.pendingFCU.short, |
411 | | - resolvedFin= c.latestFinalizedBlockNumber |
| 413 | + resolvedFin = c.latestFinalizedBlockNumber, |
| 414 | + dbSnapshotsCount = c.baseTxFrame.aTx.db.snapshots.len() |
412 | 415 | c.lastBaseLogTime = time |
413 | 416 | c.persistedCount = 0 |
414 | 417 | return ok() |
@@ -506,8 +509,6 @@ proc validateBlock(c: ForkedChainRef, |
506 | 509 | parentTxFrame=cast[uint](parentFrame), |
507 | 510 | txFrame=cast[uint](txFrame) |
508 | 511 |
|
509 | | - |
510 | | - |
511 | 512 | var receipts = c.processBlock(parent, txFrame, blk, blkHash, finalized).valueOr: |
512 | 513 | txFrame.dispose() |
513 | 514 | return err(error) |
|
0 commit comments