graphprotocol / block-oracle

MIT License
5 stars 11 forks source link

Fix zero'd block number updates from the oracle #168

Closed neysofu closed 1 year ago

neysofu commented 1 year ago

The fix is easy enough. We're supposed to set a zero increment for all networks that don't have a block number update, but were doing the exact opposite due to a faulty conditional; i.e. setting a zero increment for all networks that did have a block number update.

Includes a regression test.

Closes https://github.com/graphprotocol/block-oracle/issues/162.