Skip to content

Commit

Permalink
GH-2100 Use core.last_final_block_num for if irreversible_blocknum()
Browse files Browse the repository at this point in the history
  • Loading branch information
heifner committed Jan 18, 2024
1 parent 34dc1da commit d7c6458
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libraries/chain/include/eosio/chain/block_state.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ struct block_state : public block_header_state { // block_header_state provi
const extensions_type& header_extensions() const { return block_header_state::header.header_extensions; }
bool is_valid() const { return validated; }
void set_valid(bool b) { validated = b; }
uint32_t irreversible_blocknum() const { return 0; } // [greg todo] equivalent of dpos_irreversible_blocknum
uint32_t irreversible_blocknum() const { return core.last_final_block_num; }
std::optional<quorum_certificate> get_best_qc() const;

protocol_feature_activation_set_ptr get_activated_protocol_features() const { return block_header_state::activated_protocol_features; }
Expand Down

0 comments on commit d7c6458

Please sign in to comment.