humanode icon indicating copy to clipboard operation
humanode copied to clipboard

The peer panics in case using Metamask configured with chainId that is equal to one of the well known chains

Open dmitrylavrenov opened this issue 4 years ago • 0 comments

Please, do the following steps to reproduce the issue.

  1. Configure the peer (genesis configuration) with chainId that is equal to one of the well known chains. For example, ethereum_chain_id: EthereumChainIdConfig { chain_id: 4 } (Rinkeby) or ethereum_chain_id: EthereumChainIdConfig { chain_id: 42 } (Kovan).
  2. Configure the metamask with defined chainId and rpc url according to the previous step. In our case we use 42:
image
  1. Run the peer
  2. Play a little bit with the metamask using dev accounts from genesis.

As a result, we get incorrect balance and transactions history. Seems that Metamask uses chainId to get transactions history. But the balance doesn't correspond to either Humanode or Kovan.

image

Anyway, after some time the peer panics with frontier related error.

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

Version: 0

   0: backtrace::backtrace::libunwind::trace
             at /Users/dmitrylavrenov/.cargo/registry/src/github.com-1ecc6299db9ec823/backtrace-0.3.63/src/backtrace/libunwind.rs:93:5
      backtrace::backtrace::trace_unsynchronized
             at /Users/dmitrylavrenov/.cargo/registry/src/github.com-1ecc6299db9ec823/backtrace-0.3.63/src/backtrace/mod.rs:66:5
   1: backtrace::backtrace::trace
             at /Users/dmitrylavrenov/.cargo/registry/src/github.com-1ecc6299db9ec823/backtrace-0.3.63/src/backtrace/mod.rs:53:14
   2: backtrace::capture::Backtrace::create
             at /Users/dmitrylavrenov/.cargo/registry/src/github.com-1ecc6299db9ec823/backtrace-0.3.63/src/capture.rs:176:9
   3: backtrace::capture::Backtrace::new
             at /Users/dmitrylavrenov/.cargo/registry/src/github.com-1ecc6299db9ec823/backtrace-0.3.63/src/capture.rs:140:22
   4: sp_panic_handler::panic_hook
             at /Users/dmitrylavrenov/.cargo/git/checkouts/substrate-bb67f8c6a8395c6d/1a30fa2/primitives/panic-handler/src/lib.rs:166:18
   5: sp_panic_handler::set::{{closure}}
             at /Users/dmitrylavrenov/.cargo/git/checkouts/substrate-bb67f8c6a8395c6d/1a30fa2/primitives/panic-handler/src/lib.rs:62:12
   6: std::panicking::rust_panic_with_hook
             at /rustc/acbe4443cc4c9695c0b74a7b64b60333c990a400/library/std/src/panicking.rs:610:17
   7: std::panicking::begin_panic_handler::{{closure}}
             at /rustc/acbe4443cc4c9695c0b74a7b64b60333c990a400/library/std/src/panicking.rs:500:13
   8: std::sys_common::backtrace::__rust_end_short_backtrace
             at /rustc/acbe4443cc4c9695c0b74a7b64b60333c990a400/library/std/src/sys_common/backtrace.rs:139:18
   9: rust_begin_unwind
             at /rustc/acbe4443cc4c9695c0b74a7b64b60333c990a400/library/std/src/panicking.rs:498:5
  10: core::panicking::panic_fmt
             at /rustc/acbe4443cc4c9695c0b74a7b64b60333c990a400/library/core/src/panicking.rs:107:14
  11: core::panicking::panic
             at /rustc/acbe4443cc4c9695c0b74a7b64b60333c990a400/library/core/src/panicking.rs:48:5
  12: core::option::Option<T>::unwrap
             at /rustc/acbe4443cc4c9695c0b74a7b64b60333c990a400/library/core/src/option.rs:746:21
  13: <fc_rpc::eth::EthApi<B,C,P,CT,BE,H,A> as fc_rpc_core::eth::rpc_impl_EthApi::gen_server::EthApi>::fee_history
             at /Users/dmitrylavrenov/.cargo/git/checkouts/frontier-d7c3ba5fb89db9ba/864ef8d/client/rpc/src/eth.rs:2116:17
  14: fc_rpc_core::eth::rpc_impl_EthApi::gen_server::EthApi::to_delegate::{{closure}}
             at /Users/dmitrylavrenov/.cargo/git/checkouts/frontier-d7c3ba5fb89db9ba/864ef8d/client/rpc-core/src/eth.rs:33:1
  15: <jsonrpc_core::delegates::DelegateAsyncMethod<T,F> as jsonrpc_core::calls::RpcMethod<M>>::call
             at /Users/dmitrylavrenov/.cargo/registry/src/github.com-1ecc6299db9ec823/jsonrpc-core-18.0.0/src/delegates.rs:26:12
  16: jsonrpc_core::io::MetaIoHandler<T,S>::handle_call::{{closure}}::{{closure}}
             at /Users/dmitrylavrenov/.cargo/registry/src/github.com-1ecc6299db9ec823/jsonrpc-core-18.0.0/src/io.rs:273:56
  17: jsonrpc_core::io::MetaIoHandler<T,S>::handle_call::{{closure}}
             at /Users/dmitrylavrenov/.cargo/registry/src/github.com-1ecc6299db9ec823/jsonrpc-core-18.0.0/src/io.rs:277:63
  18: <sc_rpc_server::middleware::RpcMiddleware as jsonrpc_core::middleware::Middleware<M>>::on_call
             at /Users/dmitrylavrenov/.cargo/git/checkouts/substrate-bb67f8c6a8395c6d/1a30fa2/client/rpc-servers/src/middleware.rs:189:11
  19: jsonrpc_core::io::MetaIoHandler<T,S>::handle_call
             at /Users/dmitrylavrenov/.cargo/registry/src/github.com-1ecc6299db9ec823/jsonrpc-core-18.0.0/src/io.rs:266:3
  20: jsonrpc_core::io::MetaIoHandler<T,S>::handle_rpc_request::{{closure}}
             at /Users/dmitrylavrenov/.cargo/registry/src/github.com-1ecc6299db9ec823/jsonrpc-core-18.0.0/src/io.rs:247:6
  21: <sc_rpc_server::middleware::RpcMiddleware as jsonrpc_core::middleware::Middleware<M>>::on_request
             at /Users/dmitrylavrenov/.cargo/git/checkouts/substrate-bb67f8c6a8395c6d/1a30fa2/client/rpc-servers/src/middleware.rs:155:11
  22: jsonrpc_core::io::MetaIoHandler<T,S>::handle_rpc_request
             at /Users/dmitrylavrenov/.cargo/registry/src/github.com-1ecc6299db9ec823/jsonrpc-core-18.0.0/src/io.rs:244:3
  23: jsonrpc_core::io::MetaIoHandler<T,S>::handle_request
             at /Users/dmitrylavrenov/.cargo/registry/src/github.com-1ecc6299db9ec823/jsonrpc-core-18.0.0/src/io.rs:221:25
  24: jsonrpc_http_server::handler::RpcHandler<M,S>::process_body
             at /Users/dmitrylavrenov/.cargo/registry/src/github.com-1ecc6299db9ec823/jsonrpc-http-server-18.0.0/src/handler.rs:506:18
  25: <jsonrpc_http_server::handler::RpcHandler<M,S> as core::future::future::Future>::poll
             at /Users/dmitrylavrenov/.cargo/registry/src/github.com-1ecc6299db9ec823/jsonrpc-http-server-18.0.0/src/handler.rs:255:15
  26: <jsonrpc_http_server::handler::RpcHandler<M,S> as core::future::future::Future>::poll
             at /Users/dmitrylavrenov/.cargo/registry/src/github.com-1ecc6299db9ec823/jsonrpc-http-server-18.0.0/src/handler.rs:310:6
  27: <jsonrpc_http_server::handler::Handler<M,S> as core::future::future::Future>::poll
             at /Users/dmitrylavrenov/.cargo/registry/src/github.com-1ecc6299db9ec823/jsonrpc-http-server-18.0.0/src/handler.rs:140:37
  28: <hyper::proto::h1::dispatch::Server<S,hyper::body::body::Body> as hyper::proto::h1::dispatch::Dispatch>::poll_msg
             at /Users/dmitrylavrenov/.cargo/registry/src/github.com-1ecc6299db9ec823/hyper-0.14.16/src/proto/h1/dispatch.rs:491:35
  29: hyper::proto::h1::dispatch::Dispatcher<D,Bs,I,T>::poll_write
             at /Users/dmitrylavrenov/.cargo/registry/src/github.com-1ecc6299db9ec823/hyper-0.14.16/src/proto/h1/dispatch.rs:297:43
  30: hyper::proto::h1::dispatch::Dispatcher<D,Bs,I,T>::poll_loop
             at /Users/dmitrylavrenov/.cargo/registry/src/github.com-1ecc6299db9ec823/hyper-0.14.16/src/proto/h1/dispatch.rs:161:21
  31: hyper::proto::h1::dispatch::Dispatcher<D,Bs,I,T>::poll_inner
             at /Users/dmitrylavrenov/.cargo/registry/src/github.com-1ecc6299db9ec823/hyper-0.14.16/src/proto/h1/dispatch.rs:137:16
  32: hyper::proto::h1::dispatch::Dispatcher<D,Bs,I,T>::poll_catch
             at /Users/dmitrylavrenov/.cargo/registry/src/github.com-1ecc6299db9ec823/hyper-0.14.16/src/proto/h1/dispatch.rs:120:28
  33: <hyper::proto::h1::dispatch::Dispatcher<D,Bs,I,T> as core::future::future::Future>::poll
             at /Users/dmitrylavrenov/.cargo/registry/src/github.com-1ecc6299db9ec823/hyper-0.14.16/src/proto/h1/dispatch.rs:424:9
  34: <hyper::server::conn::ProtoServer<T,B,S,E> as core::future::future::Future>::poll
             at /Users/dmitrylavrenov/.cargo/registry/src/github.com-1ecc6299db9ec823/hyper-0.14.16/src/server/conn.rs:1133:47
  35: <hyper::server::conn::upgrades::UpgradeableConnection<I,S,E> as core::future::future::Future>::poll
             at /Users/dmitrylavrenov/.cargo/registry/src/github.com-1ecc6299db9ec823/hyper-0.14.16/src/server/conn.rs:1337:30
  36: <hyper::common::drain::Watching<F,FN> as core::future::future::Future>::poll
             at /Users/dmitrylavrenov/.cargo/registry/src/github.com-1ecc6299db9ec823/hyper-0.14.16/src/common/drain.rs:95:36
  37: <hyper::server::conn::spawn_all::NewSvcTask<I,N,S,E,W> as core::future::future::Future>::poll
             at /Users/dmitrylavrenov/.cargo/registry/src/github.com-1ecc6299db9ec823/hyper-0.14.16/src/server/conn.rs:1274:36
  38: tokio::runtime::task::core::CoreStage<T>::poll::{{closure}}
             at /Users/dmitrylavrenov/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-1.15.0/src/runtime/task/core.rs:161:17
  39: tokio::loom::std::unsafe_cell::UnsafeCell<T>::with_mut
             at /Users/dmitrylavrenov/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-1.15.0/src/loom/std/unsafe_cell.rs:14:9
  40: tokio::runtime::task::core::CoreStage<T>::poll
             at /Users/dmitrylavrenov/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-1.15.0/src/runtime/task/core.rs:151:13
  41: tokio::runtime::task::harness::poll_future::{{closure}}
             at /Users/dmitrylavrenov/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-1.15.0/src/runtime/task/harness.rs:461:19
  42: <core::panic::unwind_safe::AssertUnwindSafe<F> as core::ops::function::FnOnce<()>>::call_once
             at /rustc/acbe4443cc4c9695c0b74a7b64b60333c990a400/library/core/src/panic/unwind_safe.rs:271:9
  43: std::panicking::try::do_call
             at /rustc/acbe4443cc4c9695c0b74a7b64b60333c990a400/library/std/src/panicking.rs:406:40
  44: <unknown>
             at /rustc/acbe4443cc4c9695c0b74a7b64b60333c990a400/library/std/src/panicking.rs:434:6
  45: std::panicking::try
             at /rustc/acbe4443cc4c9695c0b74a7b64b60333c990a400/library/std/src/panicking.rs:370:19
  46: std::panic::catch_unwind
             at /rustc/acbe4443cc4c9695c0b74a7b64b60333c990a400/library/std/src/panic.rs:133:14
  47: tokio::runtime::task::harness::poll_future
             at /Users/dmitrylavrenov/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-1.15.0/src/runtime/task/harness.rs:449:18
  48: tokio::runtime::task::harness::Harness<T,S>::poll_inner
             at /Users/dmitrylavrenov/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-1.15.0/src/runtime/task/harness.rs:98:27
  49: tokio::runtime::task::harness::Harness<T,S>::poll
             at /Users/dmitrylavrenov/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-1.15.0/src/runtime/task/harness.rs:53:15
  50: tokio::runtime::task::raw::poll
             at /Users/dmitrylavrenov/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-1.15.0/src/runtime/task/raw.rs:113:5
  51: tokio::runtime::task::raw::RawTask::poll
             at /Users/dmitrylavrenov/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-1.15.0/src/runtime/task/raw.rs:70:18
  52: tokio::runtime::task::LocalNotified<S>::run
             at /Users/dmitrylavrenov/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-1.15.0/src/runtime/task/mod.rs:343:9
  53: tokio::runtime::thread_pool::worker::Context::run_task::{{closure}}
             at /Users/dmitrylavrenov/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-1.15.0/src/runtime/thread_pool/worker.rs:420:13
  54: tokio::coop::with_budget::{{closure}}
             at /Users/dmitrylavrenov/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-1.15.0/src/coop.rs:102:9
  55: std::thread::local::LocalKey<T>::try_with
             at /rustc/acbe4443cc4c9695c0b74a7b64b60333c990a400/library/std/src/thread/local.rs:399:16
  56: std::thread::local::LocalKey<T>::with
             at /rustc/acbe4443cc4c9695c0b74a7b64b60333c990a400/library/std/src/thread/local.rs:375:9
  57: tokio::coop::with_budget
             at /Users/dmitrylavrenov/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-1.15.0/src/coop.rs:95:5
      tokio::coop::budget
             at /Users/dmitrylavrenov/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-1.15.0/src/coop.rs:72:5
      tokio::runtime::thread_pool::worker::Context::run_task
             at /Users/dmitrylavrenov/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-1.15.0/src/runtime/thread_pool/worker.rs:419:9
  58: tokio::runtime::thread_pool::worker::Context::run
             at /Users/dmitrylavrenov/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-1.15.0/src/runtime/thread_pool/worker.rs:386:24
  59: tokio::runtime::thread_pool::worker::run::{{closure}}
             at /Users/dmitrylavrenov/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-1.15.0/src/runtime/thread_pool/worker.rs:371:17
  60: tokio::macros::scoped_tls::ScopedKey<T>::set
             at /Users/dmitrylavrenov/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-1.15.0/src/macros/scoped_tls.rs:61:9
  61: tokio::runtime::thread_pool::worker::run
             at /Users/dmitrylavrenov/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-1.15.0/src/runtime/thread_pool/worker.rs:368:5
  62: tokio::runtime::thread_pool::worker::Launch::launch::{{closure}}
             at /Users/dmitrylavrenov/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-1.15.0/src/runtime/thread_pool/worker.rs:347:45
  63: <tokio::runtime::blocking::task::BlockingTask<T> as core::future::future::Future>::poll
             at /Users/dmitrylavrenov/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-1.15.0/src/runtime/blocking/task.rs:42:21
  64: tokio::runtime::task::core::CoreStage<T>::poll::{{closure}}
             at /Users/dmitrylavrenov/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-1.15.0/src/runtime/task/core.rs:161:17
  65: tokio::loom::std::unsafe_cell::UnsafeCell<T>::with_mut
             at /Users/dmitrylavrenov/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-1.15.0/src/loom/std/unsafe_cell.rs:14:9
  66: tokio::runtime::task::core::CoreStage<T>::poll
             at /Users/dmitrylavrenov/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-1.15.0/src/runtime/task/core.rs:151:13
  67: tokio::runtime::task::harness::poll_future::{{closure}}
             at /Users/dmitrylavrenov/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-1.15.0/src/runtime/task/harness.rs:461:19
  68: <core::panic::unwind_safe::AssertUnwindSafe<F> as core::ops::function::FnOnce<()>>::call_once
             at /rustc/acbe4443cc4c9695c0b74a7b64b60333c990a400/library/core/src/panic/unwind_safe.rs:271:9
  69: std::panicking::try::do_call
             at /rustc/acbe4443cc4c9695c0b74a7b64b60333c990a400/library/std/src/panicking.rs:406:40
  70: <unknown>
             at /rustc/acbe4443cc4c9695c0b74a7b64b60333c990a400/library/std/src/panicking.rs:441:2
  71: std::panicking::try
             at /rustc/acbe4443cc4c9695c0b74a7b64b60333c990a400/library/std/src/panicking.rs:370:19
  72: std::panic::catch_unwind
             at /rustc/acbe4443cc4c9695c0b74a7b64b60333c990a400/library/std/src/panic.rs:133:14
  73: tokio::runtime::task::harness::poll_future
             at /Users/dmitrylavrenov/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-1.15.0/src/runtime/task/harness.rs:449:18
  74: tokio::runtime::task::harness::Harness<T,S>::poll_inner
             at /Users/dmitrylavrenov/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-1.15.0/src/runtime/task/harness.rs:98:27
  75: tokio::runtime::task::harness::Harness<T,S>::poll
             at /Users/dmitrylavrenov/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-1.15.0/src/runtime/task/harness.rs:53:15
  76: tokio::runtime::task::raw::poll
             at /Users/dmitrylavrenov/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-1.15.0/src/runtime/task/raw.rs:113:5
  77: tokio::runtime::task::raw::RawTask::poll
             at /Users/dmitrylavrenov/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-1.15.0/src/runtime/task/raw.rs:70:18
  78: tokio::runtime::task::UnownedTask<S>::run
             at /Users/dmitrylavrenov/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-1.15.0/src/runtime/task/mod.rs:379:9
  79: tokio::runtime::blocking::pool::Inner::run
             at /Users/dmitrylavrenov/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-1.15.0/src/runtime/blocking/pool.rs:264:17
  80: tokio::runtime::blocking::pool::Spawner::spawn_thread::{{closure}}
             at /Users/dmitrylavrenov/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-1.15.0/src/runtime/blocking/pool.rs:244:17
  81: std::sys_common::backtrace::__rust_begin_short_backtrace
             at /rustc/acbe4443cc4c9695c0b74a7b64b60333c990a400/library/std/src/sys_common/backtrace.rs:123:18
  82: std::thread::Builder::spawn_unchecked::{{closure}}::{{closure}}
             at /rustc/acbe4443cc4c9695c0b74a7b64b60333c990a400/library/std/src/thread/mod.rs:484:17
  83: <core::panic::unwind_safe::AssertUnwindSafe<F> as core::ops::function::FnOnce<()>>::call_once
             at /rustc/acbe4443cc4c9695c0b74a7b64b60333c990a400/library/core/src/panic/unwind_safe.rs:271:9
  84: std::panicking::try::do_call
             at /rustc/acbe4443cc4c9695c0b74a7b64b60333c990a400/library/std/src/panicking.rs:406:40
  85: <unknown>
             at /rustc/acbe4443cc4c9695c0b74a7b64b60333c990a400/library/std/src/panicking.rs:441:2
  86: std::panicking::try
             at /rustc/acbe4443cc4c9695c0b74a7b64b60333c990a400/library/std/src/panicking.rs:370:19
  87: std::panic::catch_unwind
             at /rustc/acbe4443cc4c9695c0b74a7b64b60333c990a400/library/std/src/panic.rs:133:14
  88: std::thread::Builder::spawn_unchecked::{{closure}}
             at /rustc/acbe4443cc4c9695c0b74a7b64b60333c990a400/library/std/src/thread/mod.rs:483:30
  89: core::ops::function::FnOnce::call_once{{vtable.shim}}
             at /rustc/acbe4443cc4c9695c0b74a7b64b60333c990a400/library/core/src/ops/function.rs:227:5
  90: <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once
             at /rustc/acbe4443cc4c9695c0b74a7b64b60333c990a400/library/alloc/src/boxed.rs:1694:9
      <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once
             at /rustc/acbe4443cc4c9695c0b74a7b64b60333c990a400/library/alloc/src/boxed.rs:1694:9
      std::sys::unix::thread::Thread::new::thread_start
             at /rustc/acbe4443cc4c9695c0b74a7b64b60333c990a400/library/std/src/sys/unix/thread.rs:108:17
  91: __pthread_start




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

Version: 0

====================
Thread 'tokio-runtime-worker' panicked at 'called `Option::unwrap()` on a `None` value', /Users/dmitrylavrenov/.cargo/git/checkouts/frontier-d7c3ba5fb89db9ba/864ef8d/client/rpc/src/eth.rs:2116

This is a bug. Please report it at:

        https://link.humanode.io/bug-report


Version: 0

   0: backtrace::backtrace::libunwind::trace
             at /Users/dmitrylavrenov/.cargo/registry/src/github.com-1ecc6299db9ec823/backtrace-0.3.63/src/backtrace/libunwind.rs:93:5
      backtrace::backtrace::trace_unsynchronized
             at /Users/dmitrylavrenov/.cargo/registry/src/github.com-1ecc6299db9ec823/backtrace-0.3.63/src/backtrace/mod.rs:66:5
   1: backtrace::backtrace::trace
             at /Users/dmitrylavrenov/.cargo/registry/src/github.com-1ecc6299db9ec823/backtrace-0.3.63/src/backtrace/mod.rs:53:14
   2: backtrace::capture::Backtrace::create
             at /Users/dmitrylavrenov/.cargo/registry/src/github.com-1ecc6299db9ec823/backtrace-0.3.63/src/capture.rs:176:9
   3: backtrace::capture::Backtrace::new
             at /Users/dmitrylavrenov/.cargo/registry/src/github.com-1ecc6299db9ec823/backtrace-0.3.63/src/capture.rs:140:22
   4: sp_panic_handler::panic_hook
             at /Users/dmitrylavrenov/.cargo/git/checkouts/substrate-bb67f8c6a8395c6d/1a30fa2/primitives/panic-handler/src/lib.rs:166:18
   5: sp_panic_handler::set::{{closure}}
             at /Users/dmitrylavrenov/.cargo/git/checkouts/substrate-bb67f8c6a8395c6d/1a30fa2/primitives/panic-handler/src/lib.rs:62:12
   6: std::panicking::rust_panic_with_hook
             at /rustc/acbe4443cc4c9695c0b74a7b64b60333c990a400/library/std/src/panicking.rs:610:17
   7: std::panicking::begin_panic_handler::{{closure}}
             at /rustc/acbe4443cc4c9695c0b74a7b64b60333c990a400/library/std/src/panicking.rs:500:13
   8: std::sys_common::backtrace::__rust_end_short_backtrace
             at /rustc/acbe4443cc4c9695c0b74a7b64b60333c990a400/library/std/src/sys_common/backtrace.rs:139:18
   9: rust_begin_unwind
             at /rustc/acbe4443cc4c9695c0b74a7b64b60333c990a400/library/std/src/panicking.rs:498:5
  10: core::panicking::panic_fmt
             at /rustc/acbe4443cc4c9695c0b74a7b64b60333c990a400/library/core/src/panicking.rs:107:14
  11: core::panicking::panic
             at /rustc/acbe4443cc4c9695c0b74a7b64b60333c990a400/library/core/src/panicking.rs:48:5
  12: core::option::Option<T>::unwrap
             at /rustc/acbe4443cc4c9695c0b74a7b64b60333c990a400/library/core/src/option.rs:746:21
  13: <fc_rpc::eth::EthApi<B,C,P,CT,BE,H,A> as fc_rpc_core::eth::rpc_impl_EthApi::gen_server::EthApi>::fee_history
             at /Users/dmitrylavrenov/.cargo/git/checkouts/frontier-d7c3ba5fb89db9ba/864ef8d/client/rpc/src/eth.rs:2116:17
  14: fc_rpc_core::eth::rpc_impl_EthApi::gen_server::EthApi::to_delegate::{{closure}}
             at /Users/dmitrylavrenov/.cargo/git/checkouts/frontier-d7c3ba5fb89db9ba/864ef8d/client/rpc-core/src/eth.rs:33:1
  15: <jsonrpc_core::delegates::DelegateAsyncMethod<T,F> as jsonrpc_core::calls::RpcMethod<M>>::call
             at /Users/dmitrylavrenov/.cargo/registry/src/github.com-1ecc6299db9ec823/jsonrpc-core-18.0.0/src/delegates.rs:26:12
  16: jsonrpc_core::io::MetaIoHandler<T,S>::handle_call::{{closure}}::{{closure}}
             at /Users/dmitrylavrenov/.cargo/registry/src/github.com-1ecc6299db9ec823/jsonrpc-core-18.0.0/src/io.rs:273:56
  17: jsonrpc_core::io::MetaIoHandler<T,S>::handle_call::{{closure}}
             at /Users/dmitrylavrenov/.cargo/registry/src/github.com-1ecc6299db9ec823/jsonrpc-core-18.0.0/src/io.rs:277:63
  18: <sc_rpc_server::middleware::RpcMiddleware as jsonrpc_core::middleware::Middleware<M>>::on_call
             at /Users/dmitrylavrenov/.cargo/git/checkouts/substrate-bb67f8c6a8395c6d/1a30fa2/client/rpc-servers/src/middleware.rs:189:11
  19: jsonrpc_core::io::MetaIoHandler<T,S>::handle_call
             at /Users/dmitrylavrenov/.cargo/registry/src/github.com-1ecc6299db9ec823/jsonrpc-core-18.0.0/src/io.rs:266:3
  20: jsonrpc_core::io::MetaIoHandler<T,S>::handle_rpc_request::{{closure}}
             at /Users/dmitrylavrenov/.cargo/registry/src/github.com-1ecc6299db9ec823/jsonrpc-core-18.0.0/src/io.rs:247:6
  21: <sc_rpc_server::middleware::RpcMiddleware as jsonrpc_core::middleware::Middleware<M>>::on_request
             at /Users/dmitrylavrenov/.cargo/git/checkouts/substrate-bb67f8c6a8395c6d/1a30fa2/client/rpc-servers/src/middleware.rs:155:11
  22: jsonrpc_core::io::MetaIoHandler<T,S>::handle_rpc_request
             at /Users/dmitrylavrenov/.cargo/registry/src/github.com-1ecc6299db9ec823/jsonrpc-core-18.0.0/src/io.rs:244:3
  23: jsonrpc_core::io::MetaIoHandler<T,S>::handle_request
             at /Users/dmitrylavrenov/.cargo/registry/src/github.com-1ecc6299db9ec823/jsonrpc-core-18.0.0/src/io.rs:221:25
  24: jsonrpc_http_server::handler::RpcHandler<M,S>::process_body
             at /Users/dmitrylavrenov/.cargo/registry/src/github.com-1ecc6299db9ec823/jsonrpc-http-server-18.0.0/src/handler.rs:506:18
  25: <jsonrpc_http_server::handler::RpcHandler<M,S> as core::future::future::Future>::poll
             at /Users/dmitrylavrenov/.cargo/registry/src/github.com-1ecc6299db9ec823/jsonrpc-http-server-18.0.0/src/handler.rs:255:15
  26: <jsonrpc_http_server::handler::RpcHandler<M,S> as core::future::future::Future>::poll
             at /Users/dmitrylavrenov/.cargo/registry/src/github.com-1ecc6299db9ec823/jsonrpc-http-server-18.0.0/src/handler.rs:310:6
  27: <jsonrpc_http_server::handler::Handler<M,S> as core::future::future::Future>::poll
             at /Users/dmitrylavrenov/.cargo/registry/src/github.com-1ecc6299db9ec823/jsonrpc-http-server-18.0.0/src/handler.rs:140:37
  28: <hyper::proto::h1::dispatch::Server<S,hyper::body::body::Body> as hyper::proto::h1::dispatch::Dispatch>::poll_msg
             at /Users/dmitrylavrenov/.cargo/registry/src/github.com-1ecc6299db9ec823/hyper-0.14.16/src/proto/h1/dispatch.rs:491:35
  29: hyper::proto::h1::dispatch::Dispatcher<D,Bs,I,T>::poll_write
             at /Users/dmitrylavrenov/.cargo/registry/src/github.com-1ecc6299db9ec823/hyper-0.14.16/src/proto/h1/dispatch.rs:297:43
  30: hyper::proto::h1::dispatch::Dispatcher<D,Bs,I,T>::poll_loop
             at /Users/dmitrylavrenov/.cargo/registry/src/github.com-1ecc6299db9ec823/hyper-0.14.16/src/proto/h1/dispatch.rs:161:21
  31: hyper::proto::h1::dispatch::Dispatcher<D,Bs,I,T>::poll_inner
             at /Users/dmitrylavrenov/.cargo/registry/src/github.com-1ecc6299db9ec823/hyper-0.14.16/src/proto/h1/dispatch.rs:137:16
  32: hyper::proto::h1::dispatch::Dispatcher<D,Bs,I,T>::poll_catch
             at /Users/dmitrylavrenov/.cargo/registry/src/github.com-1ecc6299db9ec823/hyper-0.14.16/src/proto/h1/dispatch.rs:120:28
  33: <hyper::proto::h1::dispatch::Dispatcher<D,Bs,I,T> as core::future::future::Future>::poll
             at /Users/dmitrylavrenov/.cargo/registry/src/github.com-1ecc6299db9ec823/hyper-0.14.16/src/proto/h1/dispatch.rs:424:9
  34: <hyper::server::conn::ProtoServer<T,B,S,E> as core::future::future::Future>::poll
             at /Users/dmitrylavrenov/.cargo/registry/src/github.com-1ecc6299db9ec823/hyper-0.14.16/src/server/conn.rs:1133:47
  35: <hyper::server::conn::upgrades::UpgradeableConnection<I,S,E> as core::future::future::Future>::poll
             at /Users/dmitrylavrenov/.cargo/registry/src/github.com-1ecc6299db9ec823/hyper-0.14.16/src/server/conn.rs:1337:30
  36: <hyper::common::drain::Watching<F,FN> as core::future::future::Future>::poll
             at /Users/dmitrylavrenov/.cargo/registry/src/github.com-1ecc6299db9ec823/hyper-0.14.16/src/common/drain.rs:95:36
  37: <hyper::server::conn::spawn_all::NewSvcTask<I,N,S,E,W> as core::future::future::Future>::poll
             at /Users/dmitrylavrenov/.cargo/registry/src/github.com-1ecc6299db9ec823/hyper-0.14.16/src/server/conn.rs:1274:36
  38: tokio::runtime::task::core::CoreStage<T>::poll::{{closure}}
             at /Users/dmitrylavrenov/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-1.15.0/src/runtime/task/core.rs:161:17
  39: tokio::loom::std::unsafe_cell::UnsafeCell<T>::with_mut
             at /Users/dmitrylavrenov/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-1.15.0/src/loom/std/unsafe_cell.rs:14:9
  40: tokio::runtime::task::core::CoreStage<T>::poll
             at /Users/dmitrylavrenov/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-1.15.0/src/runtime/task/core.rs:151:13
  41: tokio::runtime::task::harness::poll_future::{{closure}}
             at /Users/dmitrylavrenov/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-1.15.0/src/runtime/task/harness.rs:461:19
  42: <core::panic::unwind_safe::AssertUnwindSafe<F> as core::ops::function::FnOnce<()>>::call_once
             at /rustc/acbe4443cc4c9695c0b74a7b64b60333c990a400/library/core/src/panic/unwind_safe.rs:271:9
  43: std::panicking::try::do_call
             at /rustc/acbe4443cc4c9695c0b74a7b64b60333c990a400/library/std/src/panicking.rs:406:40
  44: <unknown>
             at /rustc/acbe4443cc4c9695c0b74a7b64b60333c990a400/library/std/src/panicking.rs:434:6
  45: std::panicking::try
             at /rustc/acbe4443cc4c9695c0b74a7b64b60333c990a400/library/std/src/panicking.rs:370:19
  46: std::panic::catch_unwind
             at /rustc/acbe4443cc4c9695c0b74a7b64b60333c990a400/library/std/src/panic.rs:133:14
  47: tokio::runtime::task::harness::poll_future
             at /Users/dmitrylavrenov/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-1.15.0/src/runtime/task/harness.rs:449:18
  48: tokio::runtime::task::harness::Harness<T,S>::poll_inner
             at /Users/dmitrylavrenov/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-1.15.0/src/runtime/task/harness.rs:98:27
  49: tokio::runtime::task::harness::Harness<T,S>::poll
             at /Users/dmitrylavrenov/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-1.15.0/src/runtime/task/harness.rs:53:15
  50: tokio::runtime::task::raw::poll
             at /Users/dmitrylavrenov/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-1.15.0/src/runtime/task/raw.rs:113:5
  51: tokio::runtime::task::raw::RawTask::poll
             at /Users/dmitrylavrenov/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-1.15.0/src/runtime/task/raw.rs:70:18
  52: tokio::runtime::task::LocalNotified<S>::run
             at /Users/dmitrylavrenov/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-1.15.0/src/runtime/task/mod.rs:343:9
  53: tokio::runtime::thread_pool::worker::Context::run_task::{{closure}}
             at /Users/dmitrylavrenov/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-1.15.0/src/runtime/thread_pool/worker.rs:420:13
  54: tokio::coop::with_budget::{{closure}}
             at /Users/dmitrylavrenov/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-1.15.0/src/coop.rs:102:9
  55: std::thread::local::LocalKey<T>::try_with
             at /rustc/acbe4443cc4c9695c0b74a7b64b60333c990a400/library/std/src/thread/local.rs:399:16
  56: std::thread::local::LocalKey<T>::with
             at /rustc/acbe4443cc4c9695c0b74a7b64b60333c990a400/library/std/src/thread/local.rs:375:9
  57: tokio::coop::with_budget
             at /Users/dmitrylavrenov/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-1.15.0/src/coop.rs:95:5
      tokio::coop::budget
             at /Users/dmitrylavrenov/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-1.15.0/src/coop.rs:72:5
      tokio::runtime::thread_pool::worker::Context::run_task
             at /Users/dmitrylavrenov/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-1.15.0/src/runtime/thread_pool/worker.rs:419:9
  58: tokio::runtime::thread_pool::worker::Context::run
             at /Users/dmitrylavrenov/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-1.15.0/src/runtime/thread_pool/worker.rs:386:24
  59: tokio::runtime::thread_pool::worker::run::{{closure}}
             at /Users/dmitrylavrenov/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-1.15.0/src/runtime/thread_pool/worker.rs:371:17
  60: tokio::macros::scoped_tls::ScopedKey<T>::set
             at /Users/dmitrylavrenov/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-1.15.0/src/macros/scoped_tls.rs:61:9
  61: tokio::runtime::thread_pool::worker::run
             at /Users/dmitrylavrenov/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-1.15.0/src/runtime/thread_pool/worker.rs:368:5
  62: tokio::runtime::thread_pool::worker::Launch::launch::{{closure}}
             at /Users/dmitrylavrenov/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-1.15.0/src/runtime/thread_pool/worker.rs:347:45
  63: <tokio::runtime::blocking::task::BlockingTask<T> as core::future::future::Future>::poll
             at /Users/dmitrylavrenov/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-1.15.0/src/runtime/blocking/task.rs:42:21
  64: tokio::runtime::task::core::CoreStage<T>::poll::{{closure}}
             at /Users/dmitrylavrenov/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-1.15.0/src/runtime/task/core.rs:161:17
  65: tokio::loom::std::unsafe_cell::UnsafeCell<T>::with_mut
             at /Users/dmitrylavrenov/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-1.15.0/src/loom/std/unsafe_cell.rs:14:9
  66: tokio::runtime::task::core::CoreStage<T>::poll
             at /Users/dmitrylavrenov/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-1.15.0/src/runtime/task/core.rs:151:13
  67: tokio::runtime::task::harness::poll_future::{{closure}}
             at /Users/dmitrylavrenov/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-1.15.0/src/runtime/task/harness.rs:461:19
  68: <core::panic::unwind_safe::AssertUnwindSafe<F> as core::ops::function::FnOnce<()>>::call_once
             at /rustc/acbe4443cc4c9695c0b74a7b64b60333c990a400/library/core/src/panic/unwind_safe.rs:271:9
  69: std::panicking::try::do_call
             at /rustc/acbe4443cc4c9695c0b74a7b64b60333c990a400/library/std/src/panicking.rs:406:40
  70: <unknown>
             at /rustc/acbe4443cc4c9695c0b74a7b64b60333c990a400/library/std/src/panicking.rs:441:2
  71: std::panicking::try
             at /rustc/acbe4443cc4c9695c0b74a7b64b60333c990a400/library/std/src/panicking.rs:370:19
  72: std::panic::catch_unwind
             at /rustc/acbe4443cc4c9695c0b74a7b64b60333c990a400/library/std/src/panic.rs:133:14
  73: tokio::runtime::task::harness::poll_future
             at /Users/dmitrylavrenov/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-1.15.0/src/runtime/task/harness.rs:449:18
  74: tokio::runtime::task::harness::Harness<T,S>::poll_inner
             at /Users/dmitrylavrenov/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-1.15.0/src/runtime/task/harness.rs:98:27
  75: tokio::runtime::task::harness::Harness<T,S>::poll
             at /Users/dmitrylavrenov/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-1.15.0/src/runtime/task/harness.rs:53:15
  76: tokio::runtime::task::raw::poll
             at /Users/dmitrylavrenov/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-1.15.0/src/runtime/task/raw.rs:113:5
  77: tokio::runtime::task::raw::RawTask::poll
             at /Users/dmitrylavrenov/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-1.15.0/src/runtime/task/raw.rs:70:18
  78: tokio::runtime::task::UnownedTask<S>::run
             at /Users/dmitrylavrenov/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-1.15.0/src/runtime/task/mod.rs:379:9
  79: tokio::runtime::blocking::pool::Inner::run
             at /Users/dmitrylavrenov/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-1.15.0/src/runtime/blocking/pool.rs:264:17
  80: tokio::runtime::blocking::pool::Spawner::spawn_thread::{{closure}}
             at /Users/dmitrylavrenov/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-1.15.0/src/runtime/blocking/pool.rs:244:17
  81: std::sys_common::backtrace::__rust_begin_short_backtrace
             at /rustc/acbe4443cc4c9695c0b74a7b64b60333c990a400/library/std/src/sys_common/backtrace.rs:123:18
  82: std::thread::Builder::spawn_unchecked::{{closure}}::{{closure}}
             at /rustc/acbe4443cc4c9695c0b74a7b64b60333c990a400/library/std/src/thread/mod.rs:484:17
  83: <core::panic::unwind_safe::AssertUnwindSafe<F> as core::ops::function::FnOnce<()>>::call_once
             at /rustc/acbe4443cc4c9695c0b74a7b64b60333c990a400/library/core/src/panic/unwind_safe.rs:271:9
  84: std::panicking::try::do_call
             at /rustc/acbe4443cc4c9695c0b74a7b64b60333c990a400/library/std/src/panicking.rs:406:40
  85: <unknown>
             at /rustc/acbe4443cc4c9695c0b74a7b64b60333c990a400/library/std/src/panicking.rs:441:2
  86: std::panicking::try
             at /rustc/acbe4443cc4c9695c0b74a7b64b60333c990a400/library/std/src/panicking.rs:370:19
  87: std::panic::catch_unwind
             at /rustc/acbe4443cc4c9695c0b74a7b64b60333c990a400/library/std/src/panic.rs:133:14
  88: std::thread::Builder::spawn_unchecked::{{closure}}
             at /rustc/acbe4443cc4c9695c0b74a7b64b60333c990a400/library/std/src/thread/mod.rs:483:30
  89: core::ops::function::FnOnce::call_once{{vtable.shim}}
             at /rustc/acbe4443cc4c9695c0b74a7b64b60333c990a400/library/core/src/ops/function.rs:227:5
  90: <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once
             at /rustc/acbe4443cc4c9695c0b74a7b64b60333c990a400/library/alloc/src/boxed.rs:1694:9
      <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once
             at /rustc/acbe4443cc4c9695c0b74a7b64b60333c990a400/library/alloc/src/boxed.rs:1694:9
      std::sys::unix::thread::Thread::new::thread_start
             at /rustc/acbe4443cc4c9695c0b74a7b64b60333c990a400/library/std/src/sys/unix/thread.rs:108:17
  91: __pthread_start


Thread 'tokio-runtime-worker' panicked at 'called `Option::unwrap()` on a `None` value', /Users/dmitrylavrenov/.cargo/git/checkouts/frontier-d7c3ba5fb89db9ba/864ef8d/client/rpc/src/eth.rs:2116

This is a bug. Please report it at:

        https://link.humanode.io/bug-report


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

Version: 0
   0: backtrace::backtrace::libunwind::trace
             at /Users/dmitrylavrenov/.cargo/registry/src/github.com-1ecc6299db9ec823/backtrace-0.3.63/src/backtrace/libunwind.rs:93:5
      backtrace::backtrace::trace_unsynchronized
             at /Users/dmitrylavrenov/.cargo/registry/src/github.com-1ecc6299db9ec823/backtrace-0.3.63/src/backtrace/mod.rs:66:5
   1: backtrace::backtrace::trace
             at /Users/dmitrylavrenov/.cargo/registry/src/github.com-1ecc6299db9ec823/backtrace-0.3.63/src/backtrace/mod.rs:53:14
   2: backtrace::capture::Backtrace::create
             at /Users/dmitrylavrenov/.cargo/registry/src/github.com-1ecc6299db9ec823/backtrace-0.3.63/src/capture.rs:%    

dmitrylavrenov avatar Feb 21 '22 14:02 dmitrylavrenov