Skip to content

Not able to prune checkpoint state during nft of holesky #7495

@twoeths

Description

@twoeths

Describe the bug

Feb-25 02:22:59.925[chain]           ^[[34mdebug^[[39m: Error processing block state blockRootHex=0x2db899881ed8546476d0b92c6aa9110bea9a4cd0dbeb5519eb0ea69575f1f359, slot=3711006 - Can only get block root in the past currentSlot=3711006 slot=3711008
Error: Can only get block root in the past currentSlot=3711006 slot=3711008
    at getBlockRootAtSlot (file:///usr/app/packages/state-transition/src/util/blockRoot.ts:21:11)
    at PersistentCheckpointStateCache.processPastEpoch (file:///usr/app/packages/beacon-node/src/chain/stateCache/persistentCheckpointsCache.ts:627:66)
    at PersistentCheckpointStateCache.processState (file:///usr/app/packages/beacon-node/src/chain/stateCache/persistentCheckpointsCache.ts:478:34)
Feb-25 02:22:59.934[sync]          ^[[36mverbose^[[39m: Batch download error id=Head, startEpoch=115972, status=Downloading, peer=16...YDwG3Y, code=REQUEST_ERROR_DIAL_ERROR, error=unexpected end of input
Error: unexpected end of input
    at Object.read (file:///usr/app/node_modules/it-byte-stream/dist/src/index.js:86:31)
    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
    at async Object.read (file:///usr/app/node_modules/it-length-prefixed-stream/dist/src/index.js:51:37)
    at async read (file:///usr/app/node_modules/@libp2p/multistream-select/dist/src/multistream.js:22:17)
    at async Module.readString (file:///usr/app/node_modules/@libp2p/multistream-select/dist/src/multistream.js:33:17)
    at async Module.select (file:///usr/app/node_modules/@libp2p/multistream-select/dist/src/select.js:72:20)
    at async ConnectionImpl.newStream [as _newStream] (file:///usr/app/node_modules/libp2p/dist/src/upgrader.js:330:50)
    at async ConnectionImpl.newStream (file:///usr/app/node_modules/libp2p/dist/src/connection/index.js:94:24)
    at async file:///usr/app/packages/reqresp/lib/request/index.js:57:26
    at async withTimeout (file:///usr/app/packages/utils/lib/timeout.js:12:16)
Error: REQUEST_ERROR_DIAL_ERROR
    at file:///usr/app/packages/reqresp/lib/request/index.js:65:19
    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
    at async sendRequest (file:///usr/app/packages/reqresp/lib/request/index.js:55:24)
    at async ReqRespBeaconNode.sendRequest (file:///usr/app/packages/reqresp/lib/ReqResp.js:110:13)
    at async AsyncIterableBridgeHandler.onRequest (file:///usr/app/packages/beacon-node/lib/util/asyncIterableToEvents.js:99:30)

while block state cache is consistently at 64, checkpoint state cache spiked due to the error

Image

Expected behavior

no error, checkpoint state cache's epoch should be consistently <=4

Steps to reproduce

No response

Additional context

No response

Operating system

Linux

Lodestar version or commit hash

v1.27.1

Metadata

Metadata

Assignees

Labels

meta-bugIssues that identify a bug and require a fix.

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions