hicommonwealth / edgeware-node

Substrate node implementing Edgeware
https://edgewa.re
GNU General Public License v3.0
131 stars 71 forks source link

Storage root must match that calculated #210

Closed yangwao closed 3 years ago

yangwao commented 4 years ago

After running Beersheet for a while, I've noticed this in console

Hash: given=aef3c215560bc666048c7bb185cfaf9e9ff6ba47a5e51ad4ae75b0b96bc80d94, expected=7128166a92b457cd992d004fd4a5b214ae02e3fd42f59f451c4abb2f18a452bd

====================

Version: 3.0.8-9e444ec-x86_64-macos

   0: backtrace::backtrace::trace
   1: backtrace::capture::Backtrace::new
   2: sp_panic_handler::set::{{closure}}
   3: std::panicking::rust_panic_with_hook
   4: std::panicking::begin_panic
   5: frame_executive::Executive<System,Block,Context,UnsignedValidator,AllModules,COnRuntimeUpgrade>::execute_block
   6: <edgeware_runtime::Runtime as sp_api::runtime_decl_for_Core::Core<sp_runtime::generic::block::Block<sp_runtime::generic::header::Header<u32,sp_runtime::traits::BlakeTwo256>,sp_runtime::generic::unchecked_extrinsic::UncheckedExtrinsic<<pallet_indices::Module<edgeware_runtime::Runtime> as sp_runtime::traits::StaticLookup>::Source,edgeware_runtime::Call,sp_runtime::MultiSignature,(frame_system::CheckSpecVersion<edgeware_runtime::Runtime>,frame_system::CheckTxVersion<edgeware_runtime::Runtime>,frame_system::CheckGenesis<edgeware_runtime::Runtime>,frame_system::CheckEra<edgeware_runtime::Runtime>,frame_system::CheckNonce<edgeware_runtime::Runtime>,frame_system::CheckWeight<edgeware_runtime::Runtime>,pallet_transaction_payment::ChargeTransactionPayment<edgeware_runtime::Runtime>,pallet_grandpa::equivocation::ValidateEquivocationReport<edgeware_runtime::Runtime>)>>>>::execute_block
   7: sp_api::runtime_decl_for_Core::execute_block_native_call_generator::{{closure}}
   8: std::thread::local::LocalKey<T>::with
   9: sc_executor::native_executor::WasmExecutor::with_instance::{{closure}}
  10: sc_executor::wasm_runtime::RuntimeCache::with_instance
  11: <sc_executor::native_executor::NativeExecutor<D> as sp_core::traits::CodeExecutor>::call
  12: sp_state_machine::StateMachine<B,H,N,Exec>::execute_aux
  13: sp_state_machine::StateMachine<B,H,N,Exec>::execute_using_consensus_failure_handler
  14: <sc_service::client::call_executor::LocalCallExecutor<B,E> as sc_client_api::call_executor::CallExecutor<Block>>::contextual_call
  15: <sc_service::client::client::Client<B,E,Block,RA> as sp_api::CallApiAt<Block>>::call_api_at
  16: sp_api::runtime_decl_for_Core::execute_block_call_api_at
  17: sp_api::Core::execute_block_with_context
  18: <&sc_service::client::client::Client<B,E,Block,RA> as sp_consensus::block_import::BlockImport<Block>>::import_block
  19: <sc_finality_grandpa::import::GrandpaBlockImport<BE,Block,Client,SC> as sp_consensus::block_import::BlockImport<Block>>::import_block
  20: <sc_consensus_aura::AuraBlockImport<Block,C,I,P> as sp_consensus::block_import::BlockImport<Block>>::import_block
  21: sp_consensus::import_queue::import_single_block_metered
  22: <futures_util::future::poll_fn::PollFn<F> as core::future::future::Future>::poll
  23: <futures_util::future::future::map::Map<Fut,F> as core::future::future::Future>::poll
  24: <futures_util::future::future::flatten::Flatten<Fut,<Fut as core::future::future::Future>::Output> as core::future::future::Future>::poll
  25: <futures_util::future::poll_fn::PollFn<F> as core::future::future::Future>::poll
  26: <sc_service::task_manager::prometheus_future::PrometheusFuture<T> as core::future::future::Future>::poll
  27: <futures_util::future::select::Select<A,B> as core::future::future::Future>::poll
  28: <core::future::from_generator::GenFuture<T> as core::future::future::Future>::poll
  29: futures_executor::local_pool::block_on
  30: tokio::loom::std::unsafe_cell::UnsafeCell<T>::with_mut
  31: <std::panic::AssertUnwindSafe<F> as core::ops::function::FnOnce<()>>::call_once
  32: tokio::runtime::task::raw::poll
  33: tokio::runtime::blocking::pool::Inner::run
  34: tokio::runtime::context::enter
  35: std::sys_common::backtrace::__rust_begin_short_backtrace
  36: core::ops::function::FnOnce::call_once{{vtable.shim}}
  37: std::sys::unix::thread::Thread::new::thread_start
  38: __pthread_start

Thread 'tokio-runtime-worker' panicked at 'Storage root must match that calculated.', /Users/wao/.rustup/toolchains/stable-x86_64-apple-darwin/lib/rustlib/src/rust/src/libstd/macros.rs:13
drewstone commented 4 years ago

How often have you experienced this? And does your node function correcly after restarting it?

yangwao commented 4 years ago

I didn't notice any downs. It runs right even with these errors. Last error I got been at 2020-08-13 16:22:33 Situation overview image

After the restart, the error still persists apparently. When I turn off the node and put it back, it bumps errors when I sync blocks, nonstop.

image