Closed mitch-lbw closed 12 months 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
state.lastBlock
deserializedShipMessage.this_block
deserializedShipMessage.this_block.block_num
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 thedeserializedShipMessage.this_block
object instead the actual block numberdeserializedShipMessage.this_block.block_num
https://github.com/blockmatic/antelope-ship-reader/blob/31ac05512991c7146f26a0ac8c18efd5a9309fd9/src/index.ts#L382C54-L382C54