AntelopeIO / leap

C++ implementation of the Antelope protocol
Other
113 stars 69 forks source link

IF: Genesis block state finality digest correction #2348

Closed arhag closed 3 months ago

arhag commented 3 months ago

When converting a genesis block_state_legacy into a block_state, the validation tree constructed for the block_state includes a single leaf node (the one for the genesis block).

Currently, that leaf node assumes an empty digest for the finality digest of the genesis block. It should instead compute the digest from the constructed block_header_state.