diff --git a/silkworm/node/db/access_layer.cpp b/silkworm/node/db/access_layer.cpp index 935eda15dd..8640be07aa 100644 --- a/silkworm/node/db/access_layer.cpp +++ b/silkworm/node/db/access_layer.cpp @@ -1264,7 +1264,7 @@ bool DataModel::is_body_in_snapshot(BlockNum height) { } bool DataModel::read_transactions_from_snapshot(BlockNum height, uint64_t base_txn_id, uint64_t txn_count, - bool read_senders, std::vector txs) { + bool read_senders, std::vector& txs) { txs.reserve(txn_count); if (txn_count == 0) { return true; diff --git a/silkworm/node/db/access_layer.hpp b/silkworm/node/db/access_layer.hpp index 073f111903..24d502bbf4 100644 --- a/silkworm/node/db/access_layer.hpp +++ b/silkworm/node/db/access_layer.hpp @@ -327,7 +327,7 @@ class DataModel { static bool is_body_in_snapshot(BlockNum height); static bool read_rlp_transactions_from_snapshot(BlockNum height, std::vector& rlp_txs); static bool read_transactions_from_snapshot(BlockNum height, uint64_t base_txn_id, uint64_t txn_count, - bool read_senders, std::vector txs); + bool read_senders, std::vector& txs); static inline snapshot::SnapshotRepository* repository_{nullptr};