moonbeam-foundation / moonbeam

An Ethereum-compatible smart contract parachain on Polkadot
https://moonbeam.network
GNU General Public License v3.0
919 stars 337 forks source link

Bug: A single consensus digest should be added by the runtime when executing the author inherent #1133

Closed 0xgeert closed 2 years ago

0xgeert commented 2 years ago

Yesterday started running an archive node, which today gave the following error:

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

Version: 0.16.0-17c104d-x86_64-linux-gnu

   0: sp_panic_handler::set::{{closure}}
   1: std::panicking::rust_panic_with_hook
             at rustc/497ee321af3b8496eaccd7af7b437f18bab81abf/library/std/src/panicking.rs:628:17
   2: std::panicking::begin_panic_handler::{{closure}}
             at rustc/497ee321af3b8496eaccd7af7b437f18bab81abf/library/std/src/panicking.rs:521:13
   3: std::sys_common::backtrace::__rust_end_short_backtrace
             at rustc/497ee321af3b8496eaccd7af7b437f18bab81abf/library/std/src/sys_common/backtrace.rs:141:18
   4: rust_begin_unwind
             at rustc/497ee321af3b8496eaccd7af7b437f18bab81abf/library/std/src/panicking.rs:517:5
   5: core::panicking::panic_fmt
             at rustc/497ee321af3b8496eaccd7af7b437f18bab81abf/library/core/src/panicking.rs:96:14
   6: core::option::expect_failed
             at rustc/497ee321af3b8496eaccd7af7b437f18bab81abf/library/core/src/option.rs:1615:5
   7: <nimbus_consensus::import_queue::Verifier<Client,Block,CIDP> as sc_consensus::import_queue::Verifier<Block>>::verify::{{closure}}
   8: <core::future::from_generator::GenFuture<T> as core::future::future::Future>::poll
   9: <core::future::from_generator::GenFuture<T> as core::future::future::Future>::poll
  10: <futures_util::future::future::Map<Fut,F> as core::future::future::Future>::poll
  11: <tracing_futures::Instrumented<T> as core::future::future::Future>::poll
  12: tokio::runtime::task::raw::poll
  13: std::sys_common::backtrace::__rust_begin_short_backtrace
  14: core::ops::function::FnOnce::call_once{{vtable.shim}}
  15: <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once
             at rustc/497ee321af3b8496eaccd7af7b437f18bab81abf/library/alloc/src/boxed.rs:1636:9
      <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once
             at rustc/497ee321af3b8496eaccd7af7b437f18bab81abf/library/alloc/src/boxed.rs:1636:9
      std::sys::unix::thread::Thread::new::thread_start
             at rustc/497ee321af3b8496eaccd7af7b437f18bab81abf/library/std/src/sys/unix/thread.rs:106:17
  16: start_thread
  17: clone

Thread 'tokio-runtime-worker' panicked at 'A single consensus digest should be added by the runtime when executing the author inherent.', /home/gh-actions/.cargo/git/checkouts/nimbus-4590fa7f32e5c755/94e54bd/nimbus-consensus/src/import_queue.rs:91

This is a bug. Please report it at:

    https://github.com/PureStake/moonbeam/issues/new

Settings

docker run --network="host" -v "/data/chains/moonriver:/data" \ -u $(id -u ${USER}):$(id -g ${USER}) \ purestake/moonbeam:v0.16.0 \ --base-path=/data \ --chain moonriver \ --name="moonriver-test" \ --execution wasm \ --wasm-execution compiled \ --pruning archive \ --state-cache-size 1 \ --db-cache 8192 \ --port 30333 \ --rpc-port 9933 \ --ws-port 9944 \ --rpc-cors=all \ --rpc-external \ --ws-external \ -- \ --execution wasm \ --pruning archive \ --name="moonriver-test (Embedded Relay)" --port 30334 \ --rpc-port 9934 \ --ws-port 9945 \ --rpc-cors=all \ --rpc-external \ --ws-external \ --unsafe-rpc-external \ --unsafe-ws-external \

crystalin commented 2 years ago

You need to upgrade to v0.17.0 to support latest blocks (runtime 1101+)