0

Im using hardhat to fork a node in the command line.

cmd> npx hardhat node --fork https://therpcnodehere.com 

After about 10 minutes or so the fork starts responding to requests with 'missing trie node'

I thought that this error would only happen if attempting to pin a block but im not specifying a block number so assume it should always execute with the latest block?

1 Answer 1

0

I believe that with that command you're pinning the 'latest' block. So you need an archival node also for this case if you plan on running the fork for long amounts.

From the point of view of the node, you're querying data 10 minutes old. As you know, a normal node doesn't keep all its state history. 10 minutes is around 64 blocks of history, which is apparently the amount your rpc node is keeping.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.