blockmatic / antelope-ship-reader

Reactive multi-threaded Antelope blockchain state reader
21 stars 9 forks source link

Bug: forks$ observable does not fire in case of forks #13

Closed mitch-lbw closed 12 months ago

mitch-lbw commented 1 year ago

In case a fork occurs, the forks$ observable does not deliver an event. This is caused by a comparison issue within the if clause, where the state.lastBlock is compared to the deserializedShipMessage.this_block object instead the actual block number deserializedShipMessage.this_block.block_num https://github.com/blockmatic/antelope-ship-reader/blob/31ac05512991c7146f26a0ac8c18efd5a9309fd9/src/index.ts#L382C54-L382C54