bitpay / bitcore

A full stack for bitcoin and blockchain-based applications
https://bitcore.io/
MIT License
4.83k stars 2.08k forks source link

MongoError: document is larger than the maximum size 16777216 #3549

Open rlaace423 opened 1 year ago

rlaace423 commented 1 year ago

bitcore-node version : 8.25.30

I'm using bitcore for collecting ethereum goerli network information. At specific block, it stucked and said, MongoError: document is larger than the maximum size 16777216.

How can I solve it? Is there a way to skip a specific block or a specific transaction?

that goerli block number seems 8575482 which contains 22 txs, 21686 internal txs.

image

rlaace423 commented 1 year ago

For newer releases, is it solved?

escottalexander commented 1 year ago

For newer releases, is it solved?

Yes, this issues should be solved in the latest release. It doesn't have to do with the size of a particular block. What is happening is that when Bitcore has synced all the blocks from the network it does an update to all the records to make sure each block's nextBlock and previousBlock are present. It was missing proper indexes to do this so it was failing. It is fixed in the latest version.