ethereumjs / ethereumjs-blockstream

Reliable stream of Ethereum blocks
MIT License
80 stars 18 forks source link

Throw an exception if reconciliation isn't possible. #24

Open MicahZoltu opened 6 years ago

MicahZoltu commented 6 years ago

If we fetch block_retention parent blocks while trying to reconcile a new head and we still haven't lined up the chains then throw an exception rather than rolling back old chain and applying a new one. This is an exceptional state that the user needs to deal with (or crash the app).

Note: Verify this isn't already current behavior first.