EYBlockchain / nightfall_3

a mono-repo containing an optimistic version of nightfall
Creative Commons Zero v1.0 Universal
263 stars 57 forks source link

Nightfall may fail to sync when the blockchain history is large #1429

Closed Westlad closed 1 year ago

Westlad commented 1 year ago

When Nightfall attempts to sync, the Blockchain node's websocket frame size may cause problems. This fix increases the framesize substantially in the web3js client, which should avoid the problem.

It's not really a bug but this PR also updates error logging to explicitly point out if any transaction retrieved from the blockchain is null. This can happen because some blockchain nodes do not index older transactions. It's not really a Nightfall bug, more of a blockchain-node setup issue. This change makes it easier for a developer to work out what the issue may be.