@@ -85,7 +85,7 @@ Task<void> DebugRpcApi::handle_debug_account_range(const nlohmann::json& request
8585 << " exclude_code: " << exclude_code
8686 << " exclude_storage: " << exclude_storage;
8787
88- auto tx = co_await database_->begin ();
88+ auto tx = co_await database_->begin_transaction ();
8989
9090 try {
9191 auto start = std::chrono::system_clock::now ();
@@ -123,7 +123,7 @@ Task<void> DebugRpcApi::handle_debug_get_modified_accounts_by_number(const nlohm
123123 }
124124 SILK_DEBUG << " start_block_id: " << start_block_id << " end_block_id: " << end_block_id;
125125
126- auto tx = co_await database_->begin ();
126+ auto tx = co_await database_->begin_transaction ();
127127 const auto chain_storage = tx->create_storage ();
128128
129129 try {
@@ -171,7 +171,7 @@ Task<void> DebugRpcApi::handle_debug_get_modified_accounts_by_hash(const nlohman
171171 }
172172 SILK_DEBUG << " start_hash: " << silkworm::to_hex (start_hash) << " end_hash: " << silkworm::to_hex (end_hash);
173173
174- auto tx = co_await database_->begin ();
174+ auto tx = co_await database_->begin_transaction ();
175175
176176 try {
177177 const auto chain_storage = tx->create_storage ();
@@ -225,7 +225,7 @@ Task<void> DebugRpcApi::handle_debug_storage_range_at(const nlohmann::json& requ
225225 << " start_key: 0x" << silkworm::to_hex (start_key)
226226 << " max_result: " << max_result;
227227
228- auto tx = co_await database_->begin ();
228+ auto tx = co_await database_->begin_transaction ();
229229
230230 try {
231231 const auto chain_storage = tx->create_storage ();
@@ -304,7 +304,7 @@ Task<void> DebugRpcApi::handle_debug_account_at(const nlohmann::json& request, n
304304 << " tx_index: " << tx_index
305305 << " address: " << address;
306306
307- auto tx = co_await database_->begin ();
307+ auto tx = co_await database_->begin_transaction ();
308308
309309 try {
310310 const auto chain_storage = tx->create_storage ();
@@ -399,7 +399,7 @@ Task<void> DebugRpcApi::handle_debug_trace_transaction(const nlohmann::json& req
399399 stream.write_json_field (" id" , request[" id" ]);
400400 stream.write_field (" jsonrpc" , " 2.0" );
401401
402- auto tx = co_await database_->begin ();
402+ auto tx = co_await database_->begin_transaction ();
403403
404404 try {
405405 debug::DebugExecutor executor{*block_cache_, workers_, *tx, config};
@@ -442,7 +442,7 @@ Task<void> DebugRpcApi::handle_debug_trace_call(const nlohmann::json& request, j
442442 stream.write_json_field (" id" , request[" id" ]);
443443 stream.write_field (" jsonrpc" , " 2.0" );
444444
445- auto tx = co_await database_->begin ();
445+ auto tx = co_await database_->begin_transaction ();
446446
447447 try {
448448 const auto chain_storage = tx->create_storage ();
@@ -510,7 +510,7 @@ Task<void> DebugRpcApi::handle_debug_trace_call_many(const nlohmann::json& reque
510510 stream.write_json_field (" id" , request[" id" ]);
511511 stream.write_field (" jsonrpc" , " 2.0" );
512512
513- auto tx = co_await database_->begin ();
513+ auto tx = co_await database_->begin_transaction ();
514514
515515 try {
516516 debug::DebugExecutor executor{*block_cache_, workers_, *tx, config};
@@ -538,7 +538,7 @@ Task<void> DebugRpcApi::handle_debug_trace_block_by_number(const nlohmann::json&
538538 co_return ;
539539 }
540540
541- auto tx = co_await database_->begin ();
541+ auto tx = co_await database_->begin_transaction ();
542542 BlockNum block_num{0 };
543543 if (params[0 ].is_string ()) {
544544 auto chain_storage = tx->create_storage ();
@@ -607,7 +607,7 @@ Task<void> DebugRpcApi::handle_debug_trace_block_by_hash(const nlohmann::json& r
607607 stream.write_json_field (" id" , request[" id" ]);
608608 stream.write_field (" jsonrpc" , " 2.0" );
609609
610- auto tx = co_await database_->begin ();
610+ auto tx = co_await database_->begin_transaction ();
611611
612612 try {
613613 const auto chain_storage = tx->create_storage ();
@@ -681,7 +681,7 @@ Task<void> DebugRpcApi::handle_debug_get_raw_block(const nlohmann::json& request
681681 const auto block_id = params[0 ].get <std::string>();
682682 SILK_DEBUG << " block_id: " << block_id;
683683
684- auto tx = co_await database_->begin ();
684+ auto tx = co_await database_->begin_transaction ();
685685
686686 try {
687687 const auto chain_storage = tx->create_storage ();
@@ -718,7 +718,7 @@ Task<void> DebugRpcApi::handle_debug_get_raw_receipts(const nlohmann::json& requ
718718 }
719719 const auto block_num_or_hash = params[0 ].get <BlockNumOrHash>();
720720
721- auto tx = co_await database_->begin ();
721+ auto tx = co_await database_->begin_transaction ();
722722
723723 try {
724724 const auto chain_storage = tx->create_storage ();
@@ -779,7 +779,7 @@ Task<void> DebugRpcApi::handle_debug_get_raw_header(const nlohmann::json& reques
779779 const auto block_id = params[0 ].get <std::string>();
780780 SILK_DEBUG << " block_id: " << block_id;
781781
782- auto tx = co_await database_->begin ();
782+ auto tx = co_await database_->begin_transaction ();
783783
784784 try {
785785 const auto chain_storage = tx->create_storage ();
@@ -818,7 +818,7 @@ Task<void> DebugRpcApi::handle_debug_get_raw_transaction(const nlohmann::json& r
818818 const auto transaction_hash = params[0 ].get <evmc::bytes32>();
819819 SILK_DEBUG << " transaction_hash: " << silkworm::to_hex (transaction_hash);
820820
821- auto tx = co_await database_->begin ();
821+ auto tx = co_await database_->begin_transaction ();
822822
823823 try {
824824 const auto chain_storage{tx->create_storage ()};
0 commit comments