diff --git a/libraries/chain/block_state_legacy.cpp b/libraries/chain/block_state_legacy.cpp index 2291e2f658..28a7735ca6 100644 --- a/libraries/chain/block_state_legacy.cpp +++ b/libraries/chain/block_state_legacy.cpp @@ -66,7 +66,7 @@ namespace eosio::chain { block_state_legacy::block_state_legacy( pending_block_header_state_legacy&& cur, signed_block_ptr&& b, deque&& trx_metas, - std::optional&& action_receipt_digests_savanna, + const std::optional& action_receipt_digests_savanna, const protocol_feature_set& pfs, const validator_t& validator, const signer_callback_type& signer diff --git a/libraries/chain/controller.cpp b/libraries/chain/controller.cpp index 3a7a2c51c6..d9c9c1a458 100644 --- a/libraries/chain/controller.cpp +++ b/libraries/chain/controller.cpp @@ -360,7 +360,7 @@ struct assembled_block { return std::visit(overloaded{[&](assembled_block_legacy& ab) { auto bsp = std::make_shared( std::move(ab.pending_block_header_state), std::move(ab.unsigned_block), - std::move(ab.trx_metas), std::move(ab.action_receipt_digests_savanna), pfs, validator, signer); + std::move(ab.trx_metas), ab.action_receipt_digests_savanna, pfs, validator, signer); return completed_block{block_handle{std::move(bsp)}}; }, [&](assembled_block_if& ab) { diff --git a/libraries/chain/include/eosio/chain/block_state_legacy.hpp b/libraries/chain/include/eosio/chain/block_state_legacy.hpp index 4625b0045d..bdc0fb645d 100644 --- a/libraries/chain/include/eosio/chain/block_state_legacy.hpp +++ b/libraries/chain/include/eosio/chain/block_state_legacy.hpp @@ -27,7 +27,7 @@ namespace eosio::chain { block_state_legacy( pending_block_header_state_legacy&& cur, signed_block_ptr&& b, // unsigned block deque&& trx_metas, - std::optional&& action_receipt_digests_savanna, + const std::optional& action_receipt_digests_savanna, const protocol_feature_set& pfs, const validator_t& validator, const signer_callback_type& signer