Concordium / concordium-rosetta

A server implementing the Rosetta API for the Concordium blockchain.
Mozilla Public License 2.0
5 stars 1 forks source link

Use slot time of last finalized block for 'current_block_timestamp' #34

Closed bisgardo closed 2 years ago

bisgardo commented 2 years ago

Purpose

Ensure that the value of current_block_timestamp is always well defined.

Changes

The existing solution defaulted to -1 when the 'last_finalized_time' of 'consensus status' was None. This happens if the node wasn't online when the block was finalized and breaks the Rosetta CLI.

The slot time of the last finalized block, which is objectively agreed upon across all nodes, is now used instead.