hiddentao / ethereum-blocks

Process blocks from Ethereum client nodes robustly. Catch-up on restart, auto-reconnect to node, etc.
MIT License
11 stars 8 forks source link

Return blockId = null if block not processBlock fails (Fixes #3) #4

Closed nverdhan closed 5 years ago

nverdhan commented 5 years ago

block.hash is referenced in _processBlock function where it is not defined. This results in Unhandled rejection. Returning blockId = null with when eventType in handler is "error" fixes this.

See #3

hiddentao commented 5 years ago

Thanks!