Skip to content

Commit

Permalink
make it clear action_mroot_savanna constructed as a std::optional
Browse files Browse the repository at this point in the history
  • Loading branch information
linh2931 committed Apr 4, 2024
1 parent 773577b commit 486fed3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libraries/chain/block_state_legacy.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ namespace eosio::chain {
,block( std::move(b) )
,_pub_keys_recovered( true ) // called by produce_block so signature recovery of trxs must have been done
,_cached_trxs( std::move(trx_metas) )
,action_mroot_savanna( action_receipt_digests_savanna ? calculate_merkle(*action_receipt_digests_savanna) : digest_type {} )
,action_mroot_savanna( action_receipt_digests_savanna ? std::optional<digest_type>(calculate_merkle(*action_receipt_digests_savanna)) : std::nullopt )
{}

block_state_legacy::block_state_legacy(snapshot_detail::snapshot_block_state_legacy_v7&& sbs)
Expand Down

0 comments on commit 486fed3

Please sign in to comment.