Skip to content

Commit 4c681b1

Browse files
committed
remove useful calls to read_rlp_transactions
1 parent d840a60 commit 4c681b1

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

silkworm/db/chain/remote_chain_storage.cpp

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ Task<bool> RemoteChainStorage::read_rlp_transactions(BlockNum block_num, const e
199199
co_return true;
200200
}
201201

202-
Task<bool> RemoteChainStorage::read_rlp_transaction(const evmc::bytes32& txn_hash, Bytes& rlp_tx) const {
202+
Task<bool> RemoteChainStorage::(const evmc::bytes32& txn_hash, Bytes& rlp_tx) const {
203203
auto block_num = co_await providers_.block_num_from_txn_hash(txn_hash.bytes);
204204
if (!block_num) {
205205
co_return false;
@@ -210,11 +210,6 @@ Task<bool> RemoteChainStorage::read_rlp_transaction(const evmc::bytes32& txn_has
210210
co_return false;
211211
}
212212

213-
std::vector<Bytes> rlp_txs;
214-
if (!co_await read_rlp_transactions(*block_num, *block_hash, rlp_txs)) {
215-
co_return false;
216-
}
217-
218213
Block block;
219214
const bool success = co_await providers_.block(*block_num, block_hash->bytes, /*.read_senders=*/false, block);
220215
if (!success) {

0 commit comments

Comments
 (0)