From 417185ef92577a8c216f73e7aefc129beb51c602 Mon Sep 17 00:00:00 2001 From: Kevin Heifner Date: Fri, 8 Sep 2023 17:38:12 -0500 Subject: [PATCH] GH-1523 Start dpos at 1 so 0 can be flag that hs is activated --- libraries/chain/include/eosio/chain/block_header_state.hpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/libraries/chain/include/eosio/chain/block_header_state.hpp b/libraries/chain/include/eosio/chain/block_header_state.hpp index 060c1ee943..e4f68f5497 100644 --- a/libraries/chain/include/eosio/chain/block_header_state.hpp +++ b/libraries/chain/include/eosio/chain/block_header_state.hpp @@ -50,9 +50,9 @@ struct block_header_state; namespace detail { struct block_header_state_common { - uint32_t block_num = 0; - uint32_t dpos_proposed_irreversible_blocknum = 0; - uint32_t dpos_irreversible_blocknum = 0; + uint32_t block_num = 1; + uint32_t dpos_proposed_irreversible_blocknum = 1; + uint32_t dpos_irreversible_blocknum = 1; producer_authority_schedule active_schedule; uint32_t last_proposed_finalizer_set_generation = 0; // TODO: Add to snapshot_block_header_state_v3 incremental_merkle blockroot_merkle;