Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix runtime state related function #197

Merged
merged 4 commits into from
Mar 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion external/silkworm
Submodule silkworm updated 51 files
+1 −1 cmd/state-transition/state_transition.cpp
+2 −2 cmd/test/ethereum.cpp
+10 −8 silkworm/core/execution/evm.cpp
+10 −0 silkworm/core/execution/evm.hpp
+5 −5 silkworm/core/execution/evm_test.cpp
+1 −1 silkworm/core/execution/processor.cpp
+0 −2 silkworm/core/execution/processor_test.cpp
+3 −1 silkworm/core/protocol/base_rule_set.cpp
+2 −2 silkworm/core/protocol/intrinsic_gas.cpp
+2 −3 silkworm/core/protocol/intrinsic_gas.hpp
+18 −2 silkworm/core/protocol/intrinsic_gas_test.cpp
+5 −4 silkworm/core/protocol/validation.cpp
+4 −2 silkworm/core/protocol/validation.hpp
+16 −16 silkworm/core/protocol/validation_test.cpp
+0 −1 silkworm/core/types/block.hpp
+3 −3 silkworm/node/db/access_layer.cpp
+2 −2 silkworm/node/db/access_layer.hpp
+6 −7 silkworm/node/db/access_layer_test.cpp
+20 −0 silkworm/node/stagedsync/stages/stage.cpp
+5 −0 silkworm/node/stagedsync/stages/stage.hpp
+5 −3 silkworm/node/stagedsync/stages/stage_bodies.cpp
+1 −1 silkworm/node/stagedsync/stages/stage_bodies.hpp
+2 −2 silkworm/node/stagedsync/stages/stage_bodies_test.cpp
+1 −7 silkworm/node/stagedsync/stages/stage_execution.cpp
+0 −2 silkworm/node/stagedsync/stages/stage_execution.hpp
+26 −0 silkworm/silkrpc/commands/debug_api_test.cpp
+20 −6 silkworm/silkrpc/commands/eth_api.cpp
+1 −0 silkworm/silkrpc/commands/eth_api.hpp
+1 −1 silkworm/silkrpc/common/util.cpp
+2 −2 silkworm/silkrpc/common/util_test.cpp
+26 −0 silkworm/silkrpc/core/account_dumper_test.cpp
+26 −0 silkworm/silkrpc/core/account_walker_test.cpp
+7 −4 silkworm/silkrpc/core/estimate_gas_oracle.cpp
+1 −1 silkworm/silkrpc/core/estimate_gas_oracle.hpp
+15 −15 silkworm/silkrpc/core/estimate_gas_oracle_test.cpp
+8 −4 silkworm/silkrpc/core/evm_executor.cpp
+4 −2 silkworm/silkrpc/core/evm_executor.hpp
+26 −0 silkworm/silkrpc/core/gas_parameters.cpp
+18 −0 silkworm/silkrpc/core/gas_parameters.hpp
+14 −4 silkworm/silkrpc/core/rawdb/chain.cpp
+2 −0 silkworm/silkrpc/core/rawdb/chain.hpp
+26 −0 silkworm/silkrpc/core/storage_walker_test.cpp
+4 −0 silkworm/silkrpc/ethdb/cursor.hpp
+32 −0 silkworm/silkrpc/ethdb/file/local_cursor.cpp
+4 −0 silkworm/silkrpc/ethdb/file/local_cursor.hpp
+24 −0 silkworm/silkrpc/ethdb/kv/remote_cursor.cpp
+4 −0 silkworm/silkrpc/ethdb/kv/remote_cursor.hpp
+16 −0 silkworm/silkrpc/json/block.cpp
+4 −0 silkworm/silkrpc/test/mock_cursor.hpp
+1 −1 silkworm/silkrpc/test/mock_estimate_gas_oracle.hpp
+1 −1 silkworm/silkrpc/types/block.hpp
2 changes: 1 addition & 1 deletion src/blockchain_plugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ class blockchain_plugin_impl : std::enable_shared_from_this<blockchain_plugin_im
// There's some other advantage to save this height in this way:
// If the system is shut down during catching up irreversible blocks, i.e. in the middle of the 5000 block run,
// saving the height in this way can minimize the possibility having a stored height that is higher than the canonical header.
write_runtime_states_u64(exec_engine->get_tx(), evm_lib, silkworm::db::RuntimeState::kLibProcessed);
write_runtime_states_u64(exec_engine->get_tx(), silkworm::db::RuntimeState::kLibProcessed, evm_lib);

exec_engine->verify_chain(new_block->header.hash());
block_count=0;
Expand Down
Loading