Block included (finalization) data is not included in metadata for transactions and batches
How we can solve
Have node track when new ETH blocks are mined and what the current block number is.
Update transaction and batch metadata when the current block = batch submitted block + BLOCKS_TO_FINALISE so consumers know when a transaction or batch is locked in.
Consider
How many confirmations do we need to consider a block mined? We currently use 1 in many places, but might be worth adding another constant to set this.
Related: https://github.com/thehubbleproject/hubble-contracts/issues/548
What's wrong
Block included (finalization) data is not included in metadata for transactions and batches
How we can solve
BLOCKS_TO_FINALISE
so consumers know when a transaction or batch is locked in.Consider