Currently we store only the block "height" for each confirmed transaction. We need to add a block hash also in there. Storing rules are equal to the block height:
When a pending tx first inserted - block hash is null
If tx updated to failed - block hash remains null
If tx updated to successful - block hash is replaced with a real value
In case of a rollback if a tx is changed from successful back to pending - block hash is also replaced with null
Related: https://github.com/Emurgo/yoroi-backend-service/issues/14
Currently we store only the block "height" for each confirmed transaction. We need to add a block hash also in there. Storing rules are equal to the block height: