INFURA / go-ethlibs

Ethereum libraries in Go for interacting with Ethereum nodes
MIT License
162 stars 34 forks source link

websocket: Return an error when user requests invalid blocks #6

Closed ryanschneider closed 5 years ago

ryanschneider commented 5 years ago

Previously we were incorrectly returning a pointer to a zero-value eth.Block.

ryanschneider commented 5 years ago

As mentioned on Slack, our upstream use cases would be benefitted by having an explicit public error to test against, so added that in beda050.

ryanschneider commented 5 years ago

Oops my IDE decided not to go fmt, force pushing a replacement for beda050.