Code Monkey home page Code Monkey logo

substrate-validator-set's People

Contributors

benoitdevos avatar danhenton avatar elv-nate avatar g2udevelopment avatar gautamdhameja avatar gdethier avatar klapeyron avatar korol-sas avatar nachopal avatar nukemandan avatar patofet avatar popcornpaws avatar stiiifff avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

substrate-validator-set's Issues

Package not working with Substrate node template version 3

After adding the package it ends up with the following error

runtime\Cargo.toml

substrate-validator-set = { git = "https://github.com/gautamdhameja/substrate-validator-set" , tag = "3.0.0", default-features = false, version = "3.0.0"}
error[E0512]: cannot transmute between types of different sizes, or dependently-sized types

.cargo/git/checkouts/substrate-7e08433d4c370a21/83808aa/primitives/runtime-interface/src/impls.rs:44:1
   |
44 | assert_eq_size!(usize, u32);
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |
   = note: source type: `usize` (64 bits)
   = note: target type: `u32` (32 bits)
   = note: this error originates in the macro `assert_eq_size` (in Nightly builds, run with -Z macro-backtrace for more info)

.cargo/git/checkouts/substrate-7e08433d4c370a21/83808aa/primitives/runtime-interface/src/impls.rs:46:1
   |
46 | assert_eq_size!(*const u8, u32);
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |
   = note: source type: `*const u8` (64 bits)
   = note: target type: `u32` (32 bits)
   = note: this error originates in the macro `assert_eq_size` (in Nightly builds, run with -Z macro-backtrace for more info)

For more information about this error, try `rustc --explain E0512`.
error: could not compile `sp-runtime-interface` due to 2 previous errors
warning: build failed, waiting for other jobs to finish...
error: build failed

MinAuthorities is not checked on auto removal

The constraint is checked only on do_remove_validator, that is called by the remove_validator extrinsic.

Shouldn't the constraint be respected on remove_offline_validators as well?

Segmentation fault error

We found a bug using this pallet that sometimes when we add a node the node that I'm connected stops abruptly with the message "Segmentation fault" and then I must start it, then works fine with the new node added. I don't have the exact log of the console the next time I'll take it but, I remember that only shows "Segmentation fault" or something like that.

Edit: Now I was trying to remove a validator and give me this error on all validator nodes:

2021-10-07 09:58:22 ✨ Imported #8914 (0x2f76…b864)
2021-10-07 09:58:24 💤 Idle (3 peers), best: #8914 (0x2f76…b864), finalized #6991 (0x059e…bc78), ⬇ 0.6kiB/s ⬆ 0.5kiB/s
2021-10-07 09:58:29 💤 Idle (3 peers), best: #8914 (0x2f76…b864), finalized #6991 (0x059e…bc78), ⬇ 60 B/s ⬆ 56 B/s
2021-10-07 09:58:30 🙌 Starting consensus session on top of parent 0x2f76c381fb54c0c288ed5df5ab36ed6060fc0c6031e005f02e45182a771eb864
2021-10-07 09:58:30 🎁 Prepared block for proposing at 8915 [hash: 0x95c07ae37b787ab31a990dc43643b3253f3987ec04b300c2031e55c518441463; parent_hash: 0x2f76…b864; extrinsics (2): [0x6666…39b1, 0x3765…dc03]]
2021-10-07 09:58:30 🔖 Pre-sealed block for proposal at 8915. Hash now 0xa89ea3b6fc2df381c8106bbd0203db53e5f4415b9c151dcad63ab8c4633aa70e, previously 0x95c07ae37b787ab31a990dc43643b3253f3987ec04b300c2031e55c518441463.
2021-10-07 09:58:30 ✨ Imported #8915 (0xa89e…a70e)
2021-10-07 09:58:34 💤 Idle (3 peers), best: #8915 (0xa89e…a70e), finalized #6991 (0x059e…bc78), ⬇ 0.4kiB/s ⬆ 0.7kiB/s
2021-10-07 09:58:36 ✨ Imported #8916 (0xa670…2511)
2021-10-07 09:58:39 💤 Idle (3 peers), best: #8916 (0xa670…2511), finalized #6991 (0x059e…bc78), ⬇ 0.3kiB/s ⬆ 0.3kiB/s
2021-10-07 09:58:42 ✨ Imported #8917 (0x03fd…8479)
2021-10-07 09:58:44 💤 Idle (3 peers), best: #8917 (0x03fd…8479), finalized #6991 (0x059e…bc78), ⬇ 0.6kiB/s ⬆ 0.4kiB/s
2021-10-07 09:58:46 ✨ Imported #8918 (0xfd07…940c)
2021-10-07 09:58:49 💤 Idle (3 peers), best: #8918 (0xfd07…940c), finalized #6991 (0x059e…bc78), ⬇ 0.2kiB/s ⬆ 0.2kiB/s
2021-10-07 09:58:54 🙌 Starting consensus session on top of parent 0xfd077c119e7f86bac6885f7b4d280e6567064fdfeb79bcc2528c865249bd940c
2021-10-07 09:58:54 panicked at 'swap_remove index (is 3) should be < len (is 3)', library/alloc/src/vec/mod.rs:1297:13
Segmentation fault

After this error, every time that I start the nodes it give me this error, after this, I must to delete the two validators nodes and syncronize with the non validator node. When I do a Chain state > validatorSet > validators(): Option<Vec> I see:

[
  5DRZaKoY8hufAGN2yj4nfbGeVA2k7UTXNN9LFkdPYifkstyx,
  5HU576QAo9urobUfF5n1vNQMYfV1rrcD9uytf3eVvQgJFtTf,
  5CkjuTwGyzyXoWAYFSxZVnVHKxjxYRDiTZvCw7fjDHN6vjmv,
  5CkjuTwGyzyXoWAYFSxZVnVHKxjxYRDiTZvCw7fjDHN6vjmv
]

Add a validator without the Account

Hello to everyone,

I'm trying to use the pallet without having the account of the node i want to validate.

I'm doing it in 3 steps.

Step 1: The node who want the validation use rotateKey.

Step 2: Then the same node use setKey to set the new Key.

Step 3: The admin node with sudo use the command setValidation to validate it.

The problem is at the step 3, using polkadot js interface i need to have added the account of the node to select it. I think there should be a way to add a validator without having to add the account.

Regards!

Automatically add again previously offended validators

First, I would like to thank you for your great efforts.

We use the pallet validator-set together with the im-online pallet to remove offline validators. It works perfectly. Currently, I'm looking for a way to add an online validator back automatically as soon as it is online. As far as I understand there is no such way due to the im-online pallet is not designed to send heartbeats of the validator after being online back.

So my question: is there any way to call extrinsic ValidatorSet::add_validator_again automatically as soon as the validator is online back?

Blocks stop finalising after validator set updated

I was following the youtube guide linked in the README and everything seems to work up until block finalisation.

When I submit the add validator call, that validator shows up in the authority list, and shows that there is an extra validator in the grandpa.NewAuthorities event on recent events. The new "validator" now starts authoring blocks according to the block explorer, however, the logs of that node just show that it's importing, and also, finalisation just stops after that. Even after removing that validator, which should return the validator set to the original set which was finalising blocks, it still produces blocks, but nothing is being finalised.

Frontier branch readme

Hello @gautamdhameja,

First of all thanks for the new branch frontier.

I'm trying to install the pallet but I can't and the README is not actualized to use the frontier.

Regards.

Cannot build on the frontier branch

I am trying to build against a 3.0.0 substrate node, therefor using the frontier branch of this repo.

But I am receiving following stacktrace trying to build:

➜  substrate-node git:(development) ✗ cargo build
    Updating git repository `https://github.com/paritytech/substrate.git`
    Updating git repository `https://github.com/gautamdhameja/substrate-validator-set.git`
    Updating git repository `https://github.com/paritytech/substrate.git`
    Updating crates.io index
error: failed to select a version for `log`.
    ... required by package `frame-support v3.0.0 (https://github.com/paritytech/substrate.git?tag=monthly-2021-07#83808aa8)`
    ... which is depended on by `pallet-session v3.0.0 (https://github.com/paritytech/substrate.git?tag=monthly-2021-07#83808aa8)`
    ... which is depended on by `tfchain-runtime v3.0.0 (/home/dylan/Projects/tfchain/substrate-node/runtime)`
    ... which is depended on by `tfchain v3.0.0 (/home/dylan/Projects/tfchain/substrate-node/node)`
versions that meet the requirements `^0.4.14` are: 0.4.14

all possible versions conflict with previously selected packages.

  previously selected package `log v0.4.13`
    ... which is depended on by `finality-grandpa v0.13.0`
    ... which is depended on by `sc-finality-grandpa v0.9.0`
    ... which is depended on by `sc-chain-spec v3.0.0`
    ... which is depended on by `sc-service v0.9.0`
    ... which is depended on by `frame-benchmarking-cli v3.0.0`
    ... which is depended on by `tfchain v3.0.0 (/home/dylan/Projects/tfchain/substrate-node/node)`

failed to select a version for `log` which could resolve this conflict

Dev/Test node crashes at startup

Single node crashes at startup with simple dev / test chain spec (based on Substrate node template).

I'm seeing the following messages in the logs:

2021-11-12 10:57:15.053 DEBUG main runtime::validator-set: Initiated removal of 0 offline validators.

2021-11-12 10:57:15.053 DEBUG main runtime::validator-set: New session called; updated validator set provided.

...

Thread 'main' panicked at 'Empty validator set for session 0 in genesis block!'

error[E0152]: duplicate lang item in crate `sp_io` (which `sp_application_crypto` depends on): `panic_impl`.

Trying to follow instructions on the README of https://github.com/gautamdhameja/substrate-validator-set/tree/0.9.27 to the letter, I made it ( = my testnet is running successfully) as far as adding validator_set and session pallets in construct_runtime macro, but as soon as I do that, I'm hitting the following error:

error[E0152]: duplicate lang item in crate `sp_io` (which `sp_application_crypto` depends on): `panic_impl`.
spiderweb-chain  |     |
spiderweb-chain  |     = note: the lang item is first defined in crate `sp_io` (which `frame_support` depends on)
spiderweb-chain  |     = note: first definition in `sp_io` loaded from /var/www/spiderweb-node/target/release/wbuild/spiderweb-substrate-runtime/target/wasm32-unknown-unknown/release/deps/libsp_io-fe88ca4604be2dc1.rmeta
spiderweb-chain  |     = note: second definition in `sp_io` loaded from /var/www/spiderweb-node/target/release/wbuild/spiderweb-substrate-runtime/target/wasm32-unknown-unknown/release/deps/libsp_io-7c9d8c555f100c9a.rmeta

It's not exactly clear to me if this is a compatibility issue trying to use this pallet on a Polkadot-v0.9.28 node template, or else?

Thank you for your insights @gautamdhameja

Facing issue in integration of this pallet

I'm getting error while integrating this pallet:

error[E0433]: failed to resolve: could not find `__private` in `frame_support`
     --> /Users/deepak/Desktop/hybrid-consensus-v0/runtime/src/lib.rs:398:1
      |
  398 | / construct_runtime!(
  399 | |     pub struct Runtime {
  400 | |         System: frame_system,
  401 | |         Timestamp: pallet_timestamp,
  ...   |
  415 | |     }
  416 | | );
      | |_^ could not find `__private` in `frame_support`
      |
      = note: this error originates in the macro `validator_set::tt_default_parts` which comes from the expansion of the macro `construct_runtime` (in Nightly builds, run with -Z macro-backtrace for more info)

  error[E0412]: cannot find type `Grandpa` in this scope
    --> /Users/deepak/Desktop/hybrid-consensus-v0/runtime/src/lib.rs:90:17
     |
  90 |             pub grandpa: Grandpa,
     |                          ^^^^^^^ help: a type alias with a similar name exists: `GrandpaId`
     |
    ::: /Users/deepak/.cargo/git/checkouts/substrate-7e08433d4c370a21/948fbd2/primitives/consensus/grandpa/src/lib.rs:57:1
     |
  57 | pub type AuthorityId = app::Public;
     | -------------------- similarly named type alias `GrandpaId` defined here

  error[E0412]: cannot find type `Grandpa` in this scope
    --> /Users/deepak/Desktop/hybrid-consensus-v0/runtime/src/lib.rs:90:17
     |
  90 |             pub grandpa: Grandpa,
     |                          ^^^^^^^
     |
    ::: /Users/deepak/.cargo/git/checkouts/substrate-7e08433d4c370a21/948fbd2/primitives/consensus/grandpa/src/lib.rs:57:1
     |
  57 | pub type AuthorityId = app::Public;
     | -------------------- similarly named type alias `GrandpaId` defined here
     |
  help: a type alias with a similar name exists
     |
  90 |             pub grandpa: GrandpaId,
     |                          ~~~~~~~~~
  help: you might be missing a type parameter
    --> /Users/deepak/.cargo/git/checkouts/substrate-7e08433d4c370a21/948fbd2/primitives/runtime/src/traits.rs:1997:19
     |
  199|         pub struct $name<Grandpa> {
     |                         +++++++++

  error[E0412]: cannot find type `Grandpa` in this scope
    --> /Users/deepak/Desktop/hybrid-consensus-v0/runtime/src/lib.rs:90:17
     |
  90 |             pub grandpa: Grandpa,
     |                          ^^^^^^^
     |
    ::: /Users/deepak/.cargo/git/checkouts/substrate-7e08433d4c370a21/948fbd2/primitives/consensus/grandpa/src/lib.rs:57:1
     |
  57 | pub type AuthorityId = app::Public;
     | -------------------- similarly named type alias `GrandpaId` defined here
     |
  help: a type alias with a similar name exists
     |
  90 |             pub grandpa: GrandpaId,
     |                          ~~~~~~~~~
  help: you might be missing a type parameter
    --> /Users/deepak/.cargo/git/checkouts/substrate-7e08433d4c370a21/948fbd2/primitives/runtime/src/traits.rs:1994:32
     |
  199|             $crate::scale_info::TypeInfo<Grandpa>,
     |                                         +++++++++

  error[E0412]: cannot find type `Runtime` in this scope
     --> /Users/deepak/Desktop/hybrid-consensus-v0/runtime/src/lib.rs:164:31
      |
  164 | impl frame_system::Config for Runtime {
      |                               ^^^^^^^ not found in this scope

  error[E0412]: cannot find type `RuntimeCall` in this scope
     --> /Users/deepak/Desktop/hybrid-consensus-v0/runtime/src/lib.rs:176:21
      |
  176 |     type RuntimeCall = RuntimeCall;
      |                        ^^^^^^^^^^^
      |
  help: you might have meant to use the associated type
      |
  176 |     type RuntimeCall = Self::RuntimeCall;
      |                        ++++++

  error[E0412]: cannot find type `RuntimeEvent` in this scope
     --> /Users/deepak/Desktop/hybrid-consensus-v0/runtime/src/lib.rs:186:22
      |
  186 |     type RuntimeEvent = RuntimeEvent;
      |                         ^^^^^^^^^^^^
      |
  help: you might have meant to use the associated type
      |
  186 |     type RuntimeEvent = Self::RuntimeEvent;
      |                         ++++++

  error[E0412]: cannot find type `RuntimeOrigin` in this scope
     --> /Users/deepak/Desktop/hybrid-consensus-v0/runtime/src/lib.rs:188:23
      |
  188 |     type RuntimeOrigin = RuntimeOrigin;
      |                          ^^^^^^^^^^^^^
      |
  help: you might have meant to use the associated type
      |
  188 |     type RuntimeOrigin = Self::RuntimeOrigin;
      |                          ++++++

  error[E0412]: cannot find type `PalletInfo` in this scope
     --> /Users/deepak/Desktop/hybrid-consensus-v0/runtime/src/lib.rs:198:20
      |
  198 |     type PalletInfo = PalletInfo;
      |                       ^^^^^^^^^^
      |
  help: you might have meant to use the associated type
      |
  198 |     type PalletInfo = Self::PalletInfo;
      |                       ++++++
  help: consider importing this trait
      |
  9   + use frame_support::traits::PalletInfo;
      |

  error[E0412]: cannot find type `Runtime` in this scope
     --> /Users/deepak/Desktop/hybrid-consensus-v0/runtime/src/lib.rs:214:33
      |
  214 | impl pallet_grandpa::Config for Runtime {
      |                                 ^^^^^^^ not found in this scope

  error[E0412]: cannot find type `RuntimeEvent` in this scope
     --> /Users/deepak/Desktop/hybrid-consensus-v0/runtime/src/lib.rs:215:22
      |
  215 |     type RuntimeEvent = RuntimeEvent;
      |                         ^^^^^^^^^^^^
      |
  help: you might have meant to use the associated type
      |
  215 |     type RuntimeEvent = Self::RuntimeEvent;
      |                         ++++++

  error[E0412]: cannot find type `Runtime` in this scope
     --> /Users/deepak/Desktop/hybrid-consensus-v0/runtime/src/lib.rs:225:35
      |
  225 | impl pallet_timestamp::Config for Runtime {
      |                                   ^^^^^^^ not found in this scope

  error[E0412]: cannot find type `Runtime` in this scope
     --> /Users/deepak/Desktop/hybrid-consensus-v0/runtime/src/lib.rs:234:29
      |
  234 | impl difficulty::Config for Runtime {
      |                             ^^^^^^^ not found in this scope

  error[E0412]: cannot find type `Timestamp` in this scope
     --> /Users/deepak/Desktop/hybrid-consensus-v0/runtime/src/lib.rs:235:22
      |
  235 |     type TimeProvider = Timestamp;
      |                         ^^^^^^^^^ not found in this scope
      |
  help: consider importing one of these items
      |
  9   + use sp_api::offchain::Timestamp;
      |
  9   + use sp_core::offchain::Timestamp;
      |
  9   + use sp_runtime::offchain::Timestamp;
      |

  error[E0412]: cannot find type `Runtime` in this scope
     --> /Users/deepak/Desktop/hybrid-consensus-v0/runtime/src/lib.rs:247:34
      |
  247 | impl pallet_balances::Config for Runtime {
      |                                  ^^^^^^^ not found in this scope

  error[E0412]: cannot find type `RuntimeEvent` in this scope
     --> /Users/deepak/Desktop/hybrid-consensus-v0/runtime/src/lib.rs:254:22
      |
  254 |     type RuntimeEvent = RuntimeEvent;
      |                         ^^^^^^^^^^^^
      |
  help: you might have meant to use the associated type
      |
  254 |     type RuntimeEvent = Self::RuntimeEvent;
      |                         ++++++

  error[E0412]: cannot find type `System` in this scope
     --> /Users/deepak/Desktop/hybrid-consensus-v0/runtime/src/lib.rs:257:22
      |
  257 |     type AccountStore = System;
      |                         ^^^^^^ not found in this scope

  error[E0412]: cannot find type `Runtime` in this scope
     --> /Users/deepak/Desktop/hybrid-consensus-v0/runtime/src/lib.rs:258:62
      |
  258 |     type WeightInfo = pallet_balances::weights::SubstrateWeight<Runtime>;
      |                                                                 ^^^^^^^ not found in this scope
      |
  help: you might be missing a type parameter
      |
  247 | impl<Runtime> pallet_balances::Config for Runtime {
      |     +++++++++

  error[E0412]: cannot find type `Runtime` in this scope
     --> /Users/deepak/Desktop/hybrid-consensus-v0/runtime/src/lib.rs:269:45
      |
  269 | impl pallet_transaction_payment::Config for Runtime {
      |                                             ^^^^^^^ not found in this scope

  error[E0412]: cannot find type `RuntimeEvent` in this scope
     --> /Users/deepak/Desktop/hybrid-consensus-v0/runtime/src/lib.rs:270:22
      |
  270 |     type RuntimeEvent = RuntimeEvent;
      |                         ^^^^^^^^^^^^
      |
  help: you might have meant to use the associated type
      |
  270 |     type RuntimeEvent = Self::RuntimeEvent;
      |                         ++++++

  error[E0412]: cannot find type `Balances` in this scope
     --> /Users/deepak/Desktop/hybrid-consensus-v0/runtime/src/lib.rs:271:45
      |
  64  | pub type Balance = u128;
      | ------------------------ similarly named type alias `Balance` defined here
  ...
  271 |     type OnChargeTransaction = CurrencyAdapter<Balances, ()>;
      |                                                ^^^^^^^^
      |
  help: a type alias with a similar name exists
      |
  271 |     type OnChargeTransaction = CurrencyAdapter<Balance, ()>;
      |                                                ~~~~~~~
  help: you might be missing a type parameter
      |
  269 | impl<Balances> pallet_transaction_payment::Config for Runtime {
      |     ++++++++++

  error[E0412]: cannot find type `Runtime` in this scope
     --> /Users/deepak/Desktop/hybrid-consensus-v0/runtime/src/lib.rs:278:30
      |
  278 | impl pallet_sudo::Config for Runtime {
      |                              ^^^^^^^ not found in this scope

  error[E0412]: cannot find type `RuntimeEvent` in this scope
     --> /Users/deepak/Desktop/hybrid-consensus-v0/runtime/src/lib.rs:279:22
      |
  279 |     type RuntimeEvent = RuntimeEvent;
      |                         ^^^^^^^^^^^^
      |
  help: you might have meant to use the associated type
      |
  279 |     type RuntimeEvent = Self::RuntimeEvent;
      |                         ++++++

  error[E0412]: cannot find type `RuntimeCall` in this scope
     --> /Users/deepak/Desktop/hybrid-consensus-v0/runtime/src/lib.rs:280:21
      |
  280 |     type RuntimeCall = RuntimeCall;
      |                        ^^^^^^^^^^^
      |
  help: you might have meant to use the associated type
      |
  280 |     type RuntimeCall = Self::RuntimeCall;
      |                        ++++++

  error[E0412]: cannot find type `Runtime` in this scope
     --> /Users/deepak/Desktop/hybrid-consensus-v0/runtime/src/lib.rs:281:58
      |
  281 |     type WeightInfo = pallet_sudo::weights::SubstrateWeight<Runtime>;
      |                                                             ^^^^^^^ not found in this scope
      |
  help: you might be missing a type parameter
      |
  278 | impl<Runtime> pallet_sudo::Config for Runtime {
      |     +++++++++

  error[E0412]: cannot find type `Runtime` in this scope
     --> /Users/deepak/Desktop/hybrid-consensus-v0/runtime/src/lib.rs:288:32
      |
  288 | impl validator_set::Config for Runtime {
      |                                ^^^^^^^ not found in this scope

  error[E0412]: cannot find type `RuntimeEvent` in this scope
     --> /Users/deepak/Desktop/hybrid-consensus-v0/runtime/src/lib.rs:289:22
      |
  289 |     type RuntimeEvent = RuntimeEvent;
      |                         ^^^^^^^^^^^^
      |
  help: you might have meant to use the associated type
      |
  289 |     type RuntimeEvent = Self::RuntimeEvent;
      |                         ++++++

  error[E0412]: cannot find type `Runtime` in this scope
     --> /Users/deepak/Desktop/hybrid-consensus-v0/runtime/src/lib.rs:300:33
      |
  300 | impl pallet_session::Config for Runtime {
      |                                 ^^^^^^^ not found in this scope

  error[E0412]: cannot find type `RuntimeEvent` in this scope
     --> /Users/deepak/Desktop/hybrid-consensus-v0/runtime/src/lib.rs:301:22
      |
  301 |     type RuntimeEvent = RuntimeEvent;
      |                         ^^^^^^^^^^^^
      |
  help: you might have meant to use the associated type
      |
  301 |     type RuntimeEvent = Self::RuntimeEvent;
      |                         ++++++

  error[E0412]: cannot find type `Runtime` in this scope
     --> /Users/deepak/Desktop/hybrid-consensus-v0/runtime/src/lib.rs:313:34
      |
  313 | impl pallet_template::Config for Runtime {
      |                                  ^^^^^^^ not found in this scope

  error[E0412]: cannot find type `RuntimeEvent` in this scope
     --> /Users/deepak/Desktop/hybrid-consensus-v0/runtime/src/lib.rs:315:22
      |
  315 |     type RuntimeEvent = RuntimeEvent;
      |                         ^^^^^^^^^^^^
      |
  help: you might have meant to use the associated type
      |
  315 |     type RuntimeEvent = Self::RuntimeEvent;
      |                         ++++++

  error[E0412]: cannot find type `Runtime` in this scope
     --> /Users/deepak/Desktop/hybrid-consensus-v0/runtime/src/lib.rs:320:32
      |
  320 | impl pallet_miners::Config for Runtime {
      |                                ^^^^^^^ not found in this scope

  error[E0412]: cannot find type `RuntimeEvent` in this scope
     --> /Users/deepak/Desktop/hybrid-consensus-v0/runtime/src/lib.rs:321:22
      |
  321 |     type RuntimeEvent = RuntimeEvent;
      |                         ^^^^^^^^^^^^
      |
  help: you might have meant to use the associated type
      |
  321 |     type RuntimeEvent = Self::RuntimeEvent;
      |                         ++++++

  error[E0412]: cannot find type `Runtime` in this scope
     --> /Users/deepak/Desktop/hybrid-consensus-v0/runtime/src/lib.rs:325:31
      |
  325 | impl block_author::Config for Runtime {
      |                               ^^^^^^^ not found in this scope

  error[E0412]: cannot find type `Runtime` in this scope
     --> /Users/deepak/Desktop/hybrid-consensus-v0/runtime/src/lib.rs:339:80
      |
  339 | impl<LocalCall> frame_system::offchain::CreateSignedTransaction<LocalCall> for Runtime
      |                                                                                ^^^^^^^ not found in this scope

  error[E0412]: cannot find type `RuntimeCall` in this scope
     --> /Users/deepak/Desktop/hybrid-consensus-v0/runtime/src/lib.rs:341:2
      |
  341 |     RuntimeCall: From<LocalCall>,
      |     ^^^^^^^^^^^ not found in this scope

  error[E0412]: cannot find type `RuntimeCall` in this scope
     --> /Users/deepak/Desktop/hybrid-consensus-v0/runtime/src/lib.rs:344:9
      |
  344 |         call: RuntimeCall,
      |               ^^^^^^^^^^^ not found in this scope

  error[E0412]: cannot find type `RuntimeCall` in this scope
     --> /Users/deepak/Desktop/hybrid-consensus-v0/runtime/src/lib.rs:349:3
      |
  349 |         RuntimeCall,
      |         ^^^^^^^^^^^ not found in this scope
      |
  help: you might be missing a type parameter
      |
  339 | impl<LocalCall, RuntimeCall> frame_system::offchain::CreateSignedTransaction<LocalCall> for Runtime
      |               +++++++++++++

  error[E0412]: cannot find type `Runtime` in this scope
     --> /Users/deepak/Desktop/hybrid-consensus-v0/runtime/src/lib.rs:363:39
      |
  363 |             frame_system::CheckNonZeroSender::<Runtime>::new(),
      |                                                ^^^^^^^ not found in this scope
      |
  help: you might be missing a type parameter
      |
  339 | impl<LocalCall, Runtime> frame_system::offchain::CreateSignedTransaction<LocalCall> for Runtime
      |               +++++++++

  error[E0412]: cannot find type `Runtime` in this scope
     --> /Users/deepak/Desktop/hybrid-consensus-v0/runtime/src/lib.rs:364:37
      |
  364 |             frame_system::CheckSpecVersion::<Runtime>::new(),
      |                                              ^^^^^^^ not found in this scope
      |
  help: you might be missing a type parameter
      |
  339 | impl<LocalCall, Runtime> frame_system::offchain::CreateSignedTransaction<LocalCall> for Runtime
      |               +++++++++

  error[E0412]: cannot find type `Runtime` in this scope
     --> /Users/deepak/Desktop/hybrid-consensus-v0/runtime/src/lib.rs:365:35
      |
  365 |             frame_system::CheckTxVersion::<Runtime>::new(),
      |                                            ^^^^^^^ not found in this scope
      |
  help: you might be missing a type parameter
      |
  339 | impl<LocalCall, Runtime> frame_system::offchain::CreateSignedTransaction<LocalCall> for Runtime
      |               +++++++++

  error[E0412]: cannot find type `Runtime` in this scope
     --> /Users/deepak/Desktop/hybrid-consensus-v0/runtime/src/lib.rs:366:33
      |
  366 |             frame_system::CheckGenesis::<Runtime>::new(),
      |                                          ^^^^^^^ not found in this scope
      |
  help: you might be missing a type parameter
      |
  339 | impl<LocalCall, Runtime> frame_system::offchain::CreateSignedTransaction<LocalCall> for Runtime
      |               +++++++++

  error[E0412]: cannot find type `Runtime` in this scope
     --> /Users/deepak/Desktop/hybrid-consensus-v0/runtime/src/lib.rs:367:29
      |
  367 |             frame_system::CheckEra::<Runtime>::from(era),
      |                                      ^^^^^^^ not found in this scope
      |
  help: you might be missing a type parameter
      |
  339 | impl<LocalCall, Runtime> frame_system::offchain::CreateSignedTransaction<LocalCall> for Runtime
      |               +++++++++

  error[E0412]: cannot find type `Runtime` in this scope
     --> /Users/deepak/Desktop/hybrid-consensus-v0/runtime/src/lib.rs:368:31
      |
  368 |             frame_system::CheckNonce::<Runtime>::from(nonce),
      |                                        ^^^^^^^ not found in this scope
      |
  help: you might be missing a type parameter
      |
  339 | impl<LocalCall, Runtime> frame_system::offchain::CreateSignedTransaction<LocalCall> for Runtime
      |               +++++++++

  error[E0412]: cannot find type `Runtime` in this scope
     --> /Users/deepak/Desktop/hybrid-consensus-v0/runtime/src/lib.rs:369:32
      |
  369 |             frame_system::CheckWeight::<Runtime>::new(),
      |                                         ^^^^^^^ not found in this scope
      |
  help: you might be missing a type parameter
      |
  339 | impl<LocalCall, Runtime> frame_system::offchain::CreateSignedTransaction<LocalCall> for Runtime
      |               +++++++++

  error[E0412]: cannot find type `Runtime` in this scope
     --> /Users/deepak/Desktop/hybrid-consensus-v0/runtime/src/lib.rs:370:59
      |
  370 |             pallet_transaction_payment::ChargeTransactionPayment::<Runtime>::from(tip),
      |                                                                    ^^^^^^^ not found in this scope
      |
  help: you might be missing a type parameter
      |
  339 | impl<LocalCall, Runtime> frame_system::offchain::CreateSignedTransaction<LocalCall> for Runtime
      |               +++++++++

  error[E0412]: cannot find type `Runtime` in this scope
     --> /Users/deepak/Desktop/hybrid-consensus-v0/runtime/src/lib.rs:384:47
      |
  384 | impl frame_system::offchain::SigningTypes for Runtime {
      |                                               ^^^^^^^ not found in this scope

  error[E0412]: cannot find type `Runtime` in this scope
     --> /Users/deepak/Desktop/hybrid-consensus-v0/runtime/src/lib.rs:389:61
      |
  389 | impl<C> frame_system::offchain::SendTransactionTypes<C> for Runtime
      |                                                             ^^^^^^^ not found in this scope

  error[E0412]: cannot find type `RuntimeCall` in this scope
     --> /Users/deepak/Desktop/hybrid-consensus-v0/runtime/src/lib.rs:391:2
      |
  391 |     RuntimeCall: From<C>,
      |     ^^^^^^^^^^^ not found in this scope

  error[E0412]: cannot find type `RuntimeCall` in this scope
     --> /Users/deepak/Desktop/hybrid-consensus-v0/runtime/src/lib.rs:394:25
      |
  394 |     type OverarchingCall = RuntimeCall;
      |                            ^^^^^^^^^^^ not found in this scope

  error[E0412]: cannot find type `Runtime` in this scope
     --> /Users/deepak/Desktop/hybrid-consensus-v0/runtime/src/lib.rs:432:35
      |
  432 |     frame_system::CheckNonZeroSender<Runtime>,
      |                                      ^^^^^^^ not found in this scope
      |
  help: you might be missing a type parameter
      |
  431 | pub type SignedExtra<Runtime> = (
      |                     +++++++++

  error[E0412]: cannot find type `Runtime` in this scope
     --> /Users/deepak/Desktop/hybrid-consensus-v0/runtime/src/lib.rs:433:33
      |
  433 |     frame_system::CheckSpecVersion<Runtime>,
      |                                    ^^^^^^^ not found in this scope
      |
  help: you might be missing a type parameter
      |
  431 | pub type SignedExtra<Runtime> = (
      |                     +++++++++

  error[E0412]: cannot find type `Runtime` in this scope
     --> /Users/deepak/Desktop/hybrid-consensus-v0/runtime/src/lib.rs:434:31
      |
  434 |     frame_system::CheckTxVersion<Runtime>,
      |                                  ^^^^^^^ not found in this scope
      |
  help: you might be missing a type parameter
      |
  431 | pub type SignedExtra<Runtime> = (
      |                     +++++++++

  error[E0412]: cannot find type `Runtime` in this scope
     --> /Users/deepak/Desktop/hybrid-consensus-v0/runtime/src/lib.rs:435:29
      |
  435 |     frame_system::CheckGenesis<Runtime>,
      |                                ^^^^^^^ not found in this scope
      |
  help: you might be missing a type parameter
      |
  431 | pub type SignedExtra<Runtime> = (
      |                     +++++++++

  error[E0412]: cannot find type `Runtime` in this scope
     --> /Users/deepak/Desktop/hybrid-consensus-v0/runtime/src/lib.rs:436:25
      |
  436 |     frame_system::CheckEra<Runtime>,
      |                            ^^^^^^^ not found in this scope
      |
  help: you might be missing a type parameter
      |
  431 | pub type SignedExtra<Runtime> = (
      |                     +++++++++

  error[E0412]: cannot find type `Runtime` in this scope
     --> /Users/deepak/Desktop/hybrid-consensus-v0/runtime/src/lib.rs:437:27
      |
  437 |     frame_system::CheckNonce<Runtime>,
      |                              ^^^^^^^ not found in this scope
      |
  help: you might be missing a type parameter
      |
  431 | pub type SignedExtra<Runtime> = (
      |                     +++++++++

  error[E0412]: cannot find type `Runtime` in this scope
     --> /Users/deepak/Desktop/hybrid-consensus-v0/runtime/src/lib.rs:438:28
      |
  438 |     frame_system::CheckWeight<Runtime>,
      |                               ^^^^^^^ not found in this scope
      |
  help: you might be missing a type parameter
      |
  431 | pub type SignedExtra<Runtime> = (
      |                     +++++++++

  error[E0412]: cannot find type `Runtime` in this scope
     --> /Users/deepak/Desktop/hybrid-consensus-v0/runtime/src/lib.rs:439:55
      |
  439 |     pallet_transaction_payment::ChargeTransactionPayment<Runtime>,
      |                                                          ^^^^^^^ not found in this scope
      |
  help: you might be missing a type parameter
      |
  431 | pub type SignedExtra<Runtime> = (
      |                     +++++++++

  error[E0412]: cannot find type `RuntimeCall` in this scope
     --> /Users/deepak/Desktop/hybrid-consensus-v0/runtime/src/lib.rs:444:39
      |
  444 |     generic::UncheckedExtrinsic<Address, RuntimeCall, Signature, SignedExtra>;
      |                                          ^^^^^^^^^^^ not found in this scope
      |
  help: you might be missing a type parameter
      |
  443 | pub type UncheckedExtrinsic<RuntimeCall> =
      |                            +++++++++++++

  error[E0412]: cannot find type `RuntimeCall` in this scope
     --> /Users/deepak/Desktop/hybrid-consensus-v0/runtime/src/lib.rs:446:49
      |
  446 | pub type SignedPayload = generic::SignedPayload<RuntimeCall, SignedExtra>;
      |                                                 ^^^^^^^^^^^ not found in this scope
      |
  help: you might be missing a type parameter
      |
  446 | pub type SignedPayload<RuntimeCall> = generic::SignedPayload<RuntimeCall, SignedExtra>;
      |                       +++++++++++++

  error[E0412]: cannot find type `Runtime` in this scope
     --> /Users/deepak/Desktop/hybrid-consensus-v0/runtime/src/lib.rs:449:2
      |
  449 |     Runtime,
      |     ^^^^^^^ not found in this scope
      |
  help: you might be missing a type parameter
      |
  448 | pub type Executive<Runtime> = frame_executive::Executive<
      |                   +++++++++

  error[E0412]: cannot find type `Runtime` in this scope
     --> /Users/deepak/Desktop/hybrid-consensus-v0/runtime/src/lib.rs:451:29
      |
  451 |     frame_system::ChainContext<Runtime>,
      |                                ^^^^^^^ not found in this scope
      |
  help: you might be missing a type parameter
      |
  448 | pub type Executive<Runtime> = frame_executive::Executive<
      |                   +++++++++

  error[E0412]: cannot find type `Runtime` in this scope
     --> /Users/deepak/Desktop/hybrid-consensus-v0/runtime/src/lib.rs:452:2
      |
  452 |     Runtime,
      |     ^^^^^^^ not found in this scope
      |
  help: you might be missing a type parameter
      |
  448 | pub type Executive<Runtime> = frame_executive::Executive<
      |                   +++++++++

  error[E0412]: cannot find type `AllPalletsWithSystem` in this scope
     --> /Users/deepak/Desktop/hybrid-consensus-v0/runtime/src/lib.rs:453:2
      |
  453 |     AllPalletsWithSystem,
      |     ^^^^^^^^^^^^^^^^^^^^ not found in this scope
      |
  help: you might be missing a type parameter
      |
  448 | pub type Executive<AllPalletsWithSystem> = frame_executive::Executive<
      |                   ++++++++++++++++++++++

  error[E0412]: cannot find type `Runtime` in this scope
     --> /Users/deepak/Desktop/hybrid-consensus-v0/runtime/src/lib.rs:473:31
      |
  473 |     impl sp_api::Core<Block> for Runtime {
      |                                  ^^^^^^^ not found in this scope

  error[E0412]: cannot find type `Runtime` in this scope
     --> /Users/deepak/Desktop/hybrid-consensus-v0/runtime/src/lib.rs:487:47
      |
  487 |     impl runtime_api::StorageQueryApi<Block> for Runtime {
      |                                                  ^^^^^^^ not found in this scope

  error[E0433]: failed to resolve: use of undeclared type `Miners`
     --> /Users/deepak/Desktop/hybrid-consensus-v0/runtime/src/lib.rs:490:4
      |
  490 |             Miners::get_all_miners()
      |             ^^^^^^ use of undeclared type `Miners`
      |
  help: consider importing this type alias
      |
  9   + use pallet_miners::Miners;
      |

  error[E0433]: failed to resolve: use of undeclared type `Miners`
     --> /Users/deepak/Desktop/hybrid-consensus-v0/runtime/src/lib.rs:493:4
      |
  493 |             Miners::get_discount_value(miner_id)
      |             ^^^^^^ use of undeclared type `Miners`
      |
  help: consider importing this type alias
      |
  9   + use pallet_miners::Miners;
      |

  error[E0412]: cannot find type `Runtime` in this scope
     --> /Users/deepak/Desktop/hybrid-consensus-v0/runtime/src/lib.rs:497:35
      |
  497 |     impl sp_api::Metadata<Block> for Runtime {
      |                                      ^^^^^^^ not found in this scope

  error[E0412]: cannot find type `Runtime` in this scope
     --> /Users/deepak/Desktop/hybrid-consensus-v0/runtime/src/lib.rs:511:49
      |
  511 |     impl sp_block_builder::BlockBuilder<Block> for Runtime {
      |                                                    ^^^^^^^ not found in this scope

  error[E0412]: cannot find type `Runtime` in this scope
     --> /Users/deepak/Desktop/hybrid-consensus-v0/runtime/src/lib.rs:532:75
      |
  532 |     impl sp_transaction_pool::runtime_api::TaggedTransactionQueue<Block> for Runtime {
      |                                                                              ^^^^^^^ not found in this scope

  error[E0412]: cannot find type `Runtime` in this scope
     --> /Users/deepak/Desktop/hybrid-consensus-v0/runtime/src/lib.rs:542:49
      |
  542 |     impl sp_offchain::OffchainWorkerApi<Block> for Runtime {
      |                                                    ^^^^^^^ not found in this scope

  error[E0412]: cannot find type `Runtime` in this scope
     --> /Users/deepak/Desktop/hybrid-consensus-v0/runtime/src/lib.rs:549:42
      |
  549 |     impl sp_session::SessionKeys<Block> for Runtime {
      |                                             ^^^^^^^ not found in this scope

  error[E0412]: cannot find type `Runtime` in this scope
     --> /Users/deepak/Desktop/hybrid-consensus-v0/runtime/src/lib.rs:562:56
      |
  562 |     impl sp_consensus_pow::DifficultyApi<Block, U256> for Runtime {
      |                                                           ^^^^^^^ not found in this scope

  error[E0412]: cannot find type `Runtime` in this scope
     --> /Users/deepak/Desktop/hybrid-consensus-v0/runtime/src/lib.rs:571:51
      |
  571 |     impl sp_consensus_grandpa::GrandpaApi<Block> for Runtime {
      |                                                      ^^^^^^^ not found in this scope

  error[E0412]: cannot find type `Runtime` in this scope
     --> /Users/deepak/Desktop/hybrid-consensus-v0/runtime/src/lib.rs:601:82
      |
  601 |     impl frame_system_rpc_runtime_api::AccountNonceApi<Block, AccountId, Nonce> for Runtime {
      |                                                                                     ^^^^^^^ not found in this scope

  error[E0412]: cannot find type `Runtime` in this scope
     --> /Users/deepak/Desktop/hybrid-consensus-v0/runtime/src/lib.rs:607:93
      |
  607 |     impl pallet_transaction_payment_rpc_runtime_api::TransactionPaymentApi<Block, Balance> for Runtime {
      |                                                                                                ^^^^^^^ not found in this scope

  error[E0412]: cannot find type `RuntimeCall` in this scope
     --> /Users/deepak/Desktop/hybrid-consensus-v0/runtime/src/lib.rs:628:93
      |
  628 |     impl pallet_transaction_payment_rpc_runtime_api::TransactionPaymentCallApi<Block, Balance, RuntimeCall>
      |                                                                                                ^^^^^^^^^^^ not found in this scope
      |
  help: you might be missing a type parameter
      |
  628 |     impl<RuntimeCall> pallet_transaction_payment_rpc_runtime_api::TransactionPaymentCallApi<Block, Balance, RuntimeCall>
      |         +++++++++++++

  error[E0412]: cannot find type `Runtime` in this scope
     --> /Users/deepak/Desktop/hybrid-consensus-v0/runtime/src/lib.rs:629:7
      |
  629 |         for Runtime
      |             ^^^^^^^ not found in this scope

  error[E0412]: cannot find type `RuntimeCall` in this scope
     --> /Users/deepak/Desktop/hybrid-consensus-v0/runtime/src/lib.rs:632:10
      |
  632 |             call: RuntimeCall,
      |                   ^^^^^^^^^^^ not found in this scope

  error[E0412]: cannot find type `RuntimeCall` in this scope
     --> /Users/deepak/Desktop/hybrid-consensus-v0/runtime/src/lib.rs:638:10
      |
  638 |             call: RuntimeCall,
      |                   ^^^^^^^^^^^ not found in this scope

  error[E0412]: cannot find type `RuntimeCall` in this scope
     --> /Users/deepak/Desktop/hybrid-consensus-v0/runtime/src/lib.rs:628:93
      |
  628 |     impl pallet_transaction_payment_rpc_runtime_api::TransactionPaymentCallApi<Block, Balance, RuntimeCall>
      |                                                                                                ^^^^^^^^^^^ not found in this scope

  error[E0152]: duplicate lang item in crate `sp_io` (which `frame_support` depends on): `panic_impl`.
    |
    = note: the lang item is first defined in crate `sp_io` (which `sp_application_crypto` depends on)
    = note: first definition in `sp_io` loaded from /Users/deepak/Desktop/hybrid-consensus-v0/target/release/wbuild/node-template-runtime/target/wasm32-unknown-unknown/release/deps/libsp_io-e0f97b9c4107d16e.rmeta
    = note: second definition in `sp_io` loaded from /Users/deepak/Desktop/hybrid-consexnsus-v0/target/release/wbuild/node-template-runtime/target/wasm32-unknown-unknown/release/deps/libsp_io-47f6c6b6be8c1faa.rmeta

  error[E0433]: failed to resolve: use of undeclared type `System`
     --> /Users/deepak/Desktop/x/runtime/src/lib.rs:356:23
      |
  356 |         let current_block = System::block_number()
      |                             ^^^^^^ use of undeclared type `System`

  error[E0433]: failed to resolve: use of undeclared type `Runtime`
     --> /Users/deepak/Desktop/x/runtime/src/lib.rs:499:24
      |
  499 |             OpaqueMetadata::new(Runtime::metadata().into())
      |                                 ^^^^^^^ use of undeclared type `Runtime`

  error[E0433]: failed to resolve: use of undeclared type `Runtime`
     --> /Users/deepak/Desktop/x/runtime/src/lib.rs:503:4
      |
  503 |             Runtime::metadata_at_version(version)
      |             ^^^^^^^ use of undeclared type `Runtime`

  error[E0433]: failed to resolve: use of undeclared type `Runtime`
     --> /Users/deepak/Desktop/x/runtime/src/lib.rs:507:4
      |
  507 |             Runtime::metadata_versions()
      |             ^^^^^^^ use of undeclared type `Runtime`

  error[E0433]: failed to resolve: use of undeclared type `DifficultyAdjustment`
     --> /Users/deepak/Desktop/x/runtime/src/lib.rs:565:4
      |
  565 |             DifficultyAdjustment::difficulty()
      |             ^^^^^^^^^^^^^^^^^^^^ use of undeclared type `DifficultyAdjustment`

  error[E0433]: failed to resolve: use of undeclared type `Grandpa`
     --> /Users/deepak/Desktop/x/runtime/src/lib.rs:573:4
      |
  573 |             Grandpa::grandpa_authorities()
      |             ^^^^^^^
      |             |
      |             use of undeclared type `Grandpa`
      |             help: a type alias with a similar name exists: `GrandpaId`

  error[E0433]: failed to resolve: use of undeclared type `Grandpa`
     --> /Users/deepak/Desktop/x/runtime/src/lib.rs:577:4
      |
  577 |             Grandpa::current_set_id()
      |             ^^^^^^^
      |             |
      |             use of undeclared type `Grandpa`
      |             help: a type alias with a similar name exists: `GrandpaId`

  error[E0433]: failed to resolve: use of undeclared type `System`
     --> /Users/deepak/Desktop/x/runtime/src/lib.rs:603:4
      |
  603 |             System::account_nonce(account)
      |             ^^^^^^ use of undeclared type `System`

  error[E0433]: failed to resolve: use of undeclared type `TransactionPayment`
     --> /Users/deepak/Desktop/x/runtime/src/lib.rs:612:4
      |
  612 |             TransactionPayment::query_info(uxt, len)
      |             ^^^^^^^^^^^^^^^^^^
      |             |
      |             use of undeclared type `TransactionPayment`
      |             help: a type alias with a similar name exists: `TransactionValidity`

  error[E0433]: failed to resolve: use of undeclared type `TransactionPayment`
     --> /Users/deepak/Desktop/x/runtime/src/lib.rs:618:4
      |
  618 |             TransactionPayment::query_fee_details(uxt, len)
      |             ^^^^^^^^^^^^^^^^^^
      |             |
      |             use of undeclared type `TransactionPayment`
      |             help: a type alias with a similar name exists: `TransactionValidity`

  error[E0433]: failed to resolve: use of undeclared type `TransactionPayment`
     --> /Users/deepak/Desktop/x/runtime/src/lib.rs:621:4
      |
  621 |             TransactionPayment::weight_to_fee(weight)
      |             ^^^^^^^^^^^^^^^^^^
      |             |
      |             use of undeclared type `TransactionPayment`
      |             help: a type alias with a similar name exists: `TransactionValidity`

  error[E0433]: failed to resolve: use of undeclared type `TransactionPayment`
     --> /Users/deepak/Desktop/x/runtime/src/lib.rs:624:4
      |
  624 |             TransactionPayment::length_to_fee(length)
      |             ^^^^^^^^^^^^^^^^^^
      |             |
      |             use of undeclared type `TransactionPayment`
      |             help: a type alias with a similar name exists: `TransactionValidity`

  error[E0433]: failed to resolve: use of undeclared type `TransactionPayment`
     --> /Users/deepak/Desktop/x/runtime/src/lib.rs:635:4
      |
  635 |             TransactionPayment::query_call_info(call, len)
      |             ^^^^^^^^^^^^^^^^^^
      |             |
      |             use of undeclared type `TransactionPayment`
      |             help: a type alias with a similar name exists: `TransactionValidity`

  error[E0433]: failed to resolve: use of undeclared type `TransactionPayment`
     --> /Users/deepak/Desktop/hybrid-consensus-v0/runtime/src/lib.rs:641:4
      |
  641 |             TransactionPayment::query_call_fee_details(call, len)
      |             ^^^^^^^^^^^^^^^^^^
      |             |
      |             use of undeclared type `TransactionPayment`
      |             help: a type alias with a similar name exists: `TransactionValidity`

  error[E0433]: failed to resolve: use of undeclared type `TransactionPayment`
     --> /Users/deepak/Desktop/hybrid-consensus-v0/runtime/src/lib.rs:644:4
      |
  644 |             TransactionPayment::weight_to_fee(weight)
      |             ^^^^^^^^^^^^^^^^^^
      |             |
      |             use of undeclared type `TransactionPayment`
      |             help: a type alias with a similar name exists: `TransactionValidity`

  error[E0433]: failed to resolve: use of undeclared type `TransactionPayment`
     --> /Users/deepak/Desktop/hybrid-consensus-v0/runtime/src/lib.rs:647:4
      |
  647 |             TransactionPayment::length_to_fee(length)
      |             ^^^^^^^^^^^^^^^^^^
      |             |
      |             use of undeclared type `TransactionPayment`
      |             help: a type alias with a similar name exists: `TransactionValidity`

  Some errors have detailed explanations: E0152, E0412, E0433.
  For more information about an error, try `rustc --explain E0152`.
  error: could not compile `node-template-runtime` (lib) due to 99 previous errors 

runtime/cargo.toml:

pallet-sudo = { version = "4.0.0-dev", default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v1.0.0" }
pallet-session = { default-features = false,git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v1.0.0" }
validator-set = {version = "1.0.0",package = "substrate-validator-set",default-features = false, git = "https://github.com/gautamdhameja/substrate-validator-set.git"}
.
.
"validator-set/std",
'pallet-session/std',

runtime/lib.rs

parameter_types! {
	pub const MinAuthorities: u32 = 2;
}

impl validator_set::Config for Runtime {
	type RuntimeEvent = RuntimeEvent;
	type AddRemoveOrigin = EnsureRoot<AccountId>;
	type MinAuthorities = MinAuthorities;
	type WeightInfo = validator_set::weights::SubstrateWeight<Runtime>;
}

parameter_types! {
	pub const Period: u32 = 2 * MINUTES;
	pub const Offset: u32 = 0;
}

impl pallet_session::Config for Runtime {
	type RuntimeEvent = RuntimeEvent;
	type ValidatorId = <Self as frame_system::Config>::AccountId;
	type ValidatorIdOf = validator_set::ValidatorOf<Self>;
	type ShouldEndSession = pallet_session::PeriodicSessions<Period, Offset>;
	type NextSessionRotation = pallet_session::PeriodicSessions<Period, Offset>;
	type SessionManager = ValidatorSet;
	type SessionHandler = <opaque::SessionKeys as OpaqueKeys>::KeyTypeIdProviders;
	type Keys = opaque::SessionKeys;
	type WeightInfo = ();
}
.
.
.
.
Sudo: pallet_sudo,
	ValidatorSet: validator_set,
		Session: pallet_session,

Version the pallet and name the branches the same way Substrate does

The problem

substrate-validator-set is versioned differently from Substrate pallets. As we know, Substrate follows polkadot releases and is versioned like polkadot-vX.Y.Z, whereas this pallet does not have the polkadot-v prefix present.

The solution

Please name the branches as polkadot-vX.Y.Z and replace the version in Cargo.toml with 4.0.0-dev until future releases.

Is it possible to start a substrate BABE blockchain with no Grandpa authorities and BABE validators?

Hello
I'm trying to implement a PoS network on substrate using substrate provided pallets - pallet_session, pallet_staking, pallet_babe, etc. The current Runtime and chain spec implementation is similar to what is found in the substrate repository. I've realized that I need to set Session keys for GenesisConfig before starting the blockchain. I also noticed that the Session keys set for SessionConfig are used to configure the grandpa authorities.

My questions are:

Is there a way to start the blockchain such that no session keys are set?

Do all grandpa authorities need to be hardcoded in the chain spec? If not, how are the authorities added after nodes have gone live?

failed to select a version for `parity-scale-codec`

Hi, I'm trying to install substrate-validator-set from substrate-node-template 3.0.0:
git clone -b v3.0.0 --depth 1 https://github.com/substrate-developer-hub/substrate-node-template

And I'm getting yhis error:

    Updating git repository `https://github.com/gautamdhameja/substrate-validator-set.git`
    Updating crates.io index
error: failed to select a version for `parity-scale-codec`.
    ... required by package `substrate-validator-set v3.0.0 (https://github.com/gautamdhameja/substrate-validator-set.git#04adbb93)`
    ... which is depended on by `node-template-runtime v3.0.0 (/substrate-node-template/runtime)`
    ... which is depended on by `node-template v3.0.0 (/substrate-node-template/node)`
versions that meet the requirements `^2.1.1` are: 2.1.3, 2.1.1

all possible versions conflict with previously selected packages.

  previously selected package `parity-scale-codec v2.0.0`
    ... which is depended on by `finality-grandpa v0.13.0`
    ... which is depended on by `sc-finality-grandpa v0.9.0`
    ... which is depended on by `node-template v3.0.0 (/substrate-node-template/node)`

failed to select a version for `parity-scale-codec` which could resolve this conflict

How can I fix it?

Edit: With the version of v3.0.0 monthly-2021-05 it trow diferent errors:

    Updating crates.io index
    Updating git repository `https://github.com/gautamdhameja/substrate-validator-set.git`
  Downloaded http v0.2.4
  Downloaded unicode-xid v0.2.2
  Downloaded pin-project-internal v0.4.28
  Downloaded js-sys v0.3.51
  Downloaded signal-hook v0.3.8
  Downloaded pin-project-internal v1.0.7
  Downloaded wasm-bindgen v0.2.74
  Downloaded addr2line v0.15.1
  Downloaded url v2.2.2
  Downloaded serde_derive v1.0.126
  Downloaded aho-corasick v0.7.18
  Downloaded curve25519-dalek v3.1.0
  Downloaded regex v1.5.4
  Downloaded wasm-bindgen-futures v0.4.24
  Downloaded trust-dns-proto v0.20.3
  Downloaded wast v35.0.2
  Downloaded wasmparser v0.76.0
  Downloaded tracing v0.1.26
  Downloaded async-trait v0.1.50
  Downloaded wasmtime-cache v0.24.0
  Downloaded wasm-bindgen-backend v0.2.74
  Downloaded syn v1.0.72
  Downloaded wasmtime-obj v0.24.0
  Downloaded pin-project v0.4.28
  Downloaded backtrace v0.3.59
  Downloaded cranelift-native v0.71.0
  Downloaded cpufeatures v0.1.4
  Downloaded async-executor v1.4.1
  Downloaded camino v1.0.4
  Downloaded cranelift-wasm v0.71.0
  Downloaded async-io v1.4.1
  Downloaded sct v0.6.1
  Downloaded nalgebra v0.25.4
  Downloaded libloading v0.7.0
  Downloaded trust-dns-resolver v0.20.3
  Downloaded wasmtime-debug v0.24.0
  Downloaded wasm-bindgen-shared v0.2.74
  Downloaded x25519-dalek v1.1.1
  Downloaded wat v1.0.37
  Downloaded which v4.1.0
  Downloaded serde v1.0.126
  Downloaded webpki-roots v0.21.1
  Downloaded memoffset v0.6.3
  Downloaded wasm-bindgen-macro-support v0.2.74
  Downloaded crossbeam-channel v0.5.1
  Downloaded cargo_metadata v0.13.1
  Downloaded async-process v1.1.0
  Downloaded zeroize_derive v1.1.0
  Downloaded zeroize v1.3.0
  Downloaded directories v3.0.2
  Downloaded minicbor v0.8.1
  Downloaded crossbeam-utils v0.8.4
  Downloaded wasmtime-profiling v0.24.0
  Downloaded fastrand v1.4.1
  Downloaded cranelift-frontend v0.71.0
  Downloaded clang-sys v1.2.0
  Downloaded bitvec v0.20.4
  Downloaded crossbeam-epoch v0.9.4
  Downloaded wasmtime v0.24.0
  Downloaded linregress v0.4.1
  Downloaded num-rational v0.3.2
  Downloaded cranelift-entity v0.71.0
  Downloaded async-std-resolver v0.20.3
  Downloaded bincode v1.3.3
  Downloaded wasmtime-fiber v0.24.0
  Downloaded httparse v1.4.1
  Downloaded rustc-demangle v0.1.19
  Downloaded ed25519 v1.1.1
  Downloaded minicbor-derive v0.6.3
  Downloaded wasm-bindgen-macro v0.2.74
  Downloaded rocksdb v0.16.0
  Downloaded unicode-bidi v0.3.5
  Downloaded tracing-core v0.1.18
  Downloaded pin-project v1.0.7
  Downloaded tinyvec v1.2.0
  Downloaded slab v0.4.3
  Downloaded sha-1 v0.9.6
  Downloaded openssl-probe v0.1.4
  Downloaded object v0.24.0
  Downloaded memchr v2.4.0
  Downloaded lock_api v0.4.4
  Downloaded jobserver v0.1.22
  Downloaded wasmtime-runtime v0.24.0
  Downloaded wasmtime-jit v0.24.0
  Downloaded statrs v0.13.0
  Downloaded wasmtime-cranelift v0.24.0
  Downloaded itertools v0.10.0
  Downloaded simba v0.4.0
  Downloaded libp2p-wasm-ext v0.28.2
  Downloaded num-complex v0.3.1
  Downloaded kvdb-rocksdb v0.11.1
  Downloaded libp2p-gossipsub v0.30.1
  Downloaded if-watch v0.2.2
  Downloaded approx v0.4.0
  Downloaded byteorder v1.4.3
  Downloaded async-lock v2.4.0
  Downloaded libp2p-mdns v0.30.2
  Downloaded memmap2 v0.2.2
  Downloaded regex-syntax v0.6.25
  Downloaded handlebars v3.5.5
  Downloaded sha2 v0.9.5
  Downloaded libp2p-core v0.28.3
  Downloaded wasmtime-environ v0.24.0
  Downloaded bstr v0.2.16
  Downloaded idna v0.2.3
  Downloaded libc v0.2.94
  Downloaded cranelift-bforest v0.71.0
  Downloaded gimli v0.24.0
  Downloaded quick-error v2.0.1
  Downloaded dirs-sys v0.3.6
  Downloaded cranelift-codegen-shared v0.71.0
  Downloaded matrixmultiply v0.3.1
  Downloaded cranelift-codegen-meta v0.71.0
  Downloaded cranelift-codegen v0.71.0
  Downloaded bindgen v0.57.0
  Downloaded libz-sys v1.1.3
  Downloaded nalgebra v0.19.0
  Downloaded librocksdb-sys v6.17.3
  Downloaded 118 crates (21.2 MB) in 3.06s (largest was `librocksdb-sys` at 10.4 MB)
   Compiling proc-macro2 v1.0.26
   Compiling unicode-xid v0.2.2
   Compiling syn v1.0.72
   Compiling libc v0.2.94
   Compiling autocfg v1.0.1
   Compiling cfg-if v1.0.0
   Compiling serde_derive v1.0.126
   Compiling serde v1.0.126
   Compiling value-bag v1.0.0-alpha.6
   Compiling log v0.4.14
   Compiling memchr v2.4.0
   Compiling scopeguard v1.1.0
   Compiling byteorder v1.4.3
   Compiling smallvec v1.6.1
   Compiling version_check v0.9.3
   Compiling lazy_static v1.4.0
   Compiling typenum v1.13.0
   Compiling futures v0.1.31
   Compiling slab v0.4.3
   Compiling getrandom v0.2.2
   Compiling cfg-if v0.1.10
   Compiling futures-core v0.3.15
   Compiling pin-project-lite v0.2.6
   Compiling ppv-lite86 v0.2.10
   Compiling anyhow v1.0.40
   Compiling futures-io v0.3.15
   Compiling getrandom v0.1.16
   Compiling futures-sink v0.3.15
   Compiling proc-macro-hack v0.5.19
   Compiling proc-macro-nested v0.1.7
   Compiling futures-task v0.3.15
   Compiling futures-channel v0.3.15
   Compiling pin-utils v0.1.0
   Compiling subtle v2.4.0
   Compiling opaque-debug v0.3.0
   Compiling static_assertions v1.1.0
   Compiling tinyvec_macros v0.1.0
   Compiling crunchy v0.2.2
   Compiling ahash v0.4.7
   Compiling block-padding v0.2.1
   Compiling either v1.6.1
   Compiling cpufeatures v0.1.4
   Compiling itoa v0.4.7
   Compiling libm v0.2.1
   Compiling arrayref v0.3.6
   Compiling byte-tools v0.3.1
   Compiling constant_time_eq v0.1.5
   Compiling arrayvec v0.5.2
   Compiling keccak v0.1.0
   Compiling ryu v1.0.5
   Compiling fake-simd v0.1.2
   Compiling opaque-debug v0.2.3
   Compiling subtle v1.0.0
   Compiling serde_json v1.0.64
   Compiling regex-syntax v0.6.25
   Compiling radium v0.6.2
   Compiling wyz v0.2.0
   Compiling funty v1.1.0
   Compiling signature v1.3.0
   Compiling tap v1.0.1
   Compiling arrayvec v0.7.0
   Compiling byte-slice-cast v1.0.0
   Compiling hex v0.4.3
   Compiling rustc-hash v1.1.0
   Compiling rustc-hex v2.1.0
   Compiling arrayvec v0.4.12
   Compiling ref-cast v1.0.6
   Compiling parity-wasm v0.41.0
   Compiling parity-util-mem v0.9.0
   Compiling ansi_term v0.12.1
   Compiling memory_units v0.3.0
   Compiling environmental v1.1.3
   Compiling adler v1.0.2
   Compiling nodrop v0.1.14
   Compiling hash-db v0.15.2
   Compiling tiny-keccak v2.0.2
   Compiling dyn-clone v1.0.4
   Compiling base58 v0.1.0
   Compiling gimli v0.24.0
   Compiling rustc-demangle v0.1.19
   Compiling object v0.24.0
   Compiling async-trait v0.1.50
   Compiling convert_case v0.4.0
   Compiling fnv v1.0.7
   Compiling unicode-segmentation v1.7.1
   Compiling sp-std v3.0.0 (https://github.com/paritytech/substrate.git?tag=monthly-2021-05#70ef0afc)
   Compiling paste v1.0.5
   Compiling remove_dir_all v0.5.3
   Compiling bytes v1.0.1
   Compiling fixedbitset v0.2.0
   Compiling multimap v0.8.3
   Compiling matches v0.1.8
   Compiling semver-parser v0.7.0
   Compiling untrusted v0.7.1
   Compiling spin v0.5.2
   Compiling percent-encoding v2.1.0
   Compiling bitflags v1.2.1
   Compiling data-encoding v2.3.2
   Compiling pin-project-internal v0.4.28
   Compiling futures-timer v3.0.2
   Compiling unsigned-varint v0.5.1
   Compiling bs58 v0.4.0
   Compiling void v1.0.2
   Compiling asn1_der v0.7.4
   Compiling cache-padded v1.1.1
   Compiling parking v2.0.0
   Compiling fastrand v1.4.1
   Compiling waker-fn v1.1.0
   Compiling crc32fast v1.2.1
   Compiling quick-error v1.2.3
   Compiling httparse v1.4.1
   Compiling event-listener v2.5.1
   Compiling bytes v0.5.6
   Compiling pin-project-lite v0.1.12
   Compiling signal-hook v0.3.8
   Compiling async-task v4.0.3
   Compiling wasm-bindgen-shared v0.2.74
   Compiling atomic-waker v1.0.0
   Compiling base64 v0.13.0
   Compiling bumpalo v3.6.1
   Compiling pkg-config v0.3.19
   Compiling ipnet v2.3.0
   Compiling cpuid-bool v0.2.0
   Compiling try-lock v0.2.3
   Compiling base64 v0.12.3
   Compiling wasm-bindgen v0.2.74
   Compiling stable_deref_trait v1.2.0
   Compiling match_cfg v0.1.0
   Compiling linked-hash-map v0.5.4
   Compiling prometheus v0.11.0
   Compiling glob v0.3.0
   Compiling zstd-safe v3.0.1+zstd.1.4.9
   Compiling fallible-iterator v0.2.0
   Compiling nohash-hasher v0.2.0
   Compiling target-lexicon v0.11.2
   Compiling tower-service v0.3.1
   Compiling httpdate v0.3.2
   Compiling parity-send-wrapper v0.1.0
   Compiling hex_fmt v0.3.0
   Compiling wasmparser v0.76.0
   Compiling more-asserts v0.2.1
   Compiling rayon-core v1.9.0
   Compiling termcolor v1.1.2
   Compiling leb128 v0.2.4
   Compiling wasmtime-cache v0.24.0
   Compiling maybe-uninit v2.0.0
   Compiling sp-std v3.0.0
   Compiling scoped-tls v1.0.0
   Compiling rawpointer v0.2.1
   Compiling ucd-trie v0.1.3
   Compiling failure_derive v0.1.8
   Compiling bindgen v0.57.0
   Compiling base-x v0.2.8
   Compiling peeking_take_while v0.1.2
   Compiling take_mut v0.2.2
   Compiling shlex v0.1.1
   Compiling percent-encoding v1.0.1
   Compiling lazycell v1.3.0
   Compiling ip_network v0.3.4
   Compiling winapi v0.3.9
   Compiling sc-consensus-slots v0.9.0 (https://github.com/paritytech/substrate.git?tag=monthly-2021-05#70ef0afc)
   Compiling mio-named-pipes v0.1.7
   Compiling camino v1.0.4
   Compiling retain_mut v0.1.3
   Compiling openssl-probe v0.1.4
   Compiling futures-timer v2.0.2
   Compiling unicode-width v0.1.8
   Compiling same-file v1.0.6
   Compiling platforms v1.1.0
   Compiling maplit v1.0.2
   Compiling pdqselect v0.1.0
   Compiling names v0.11.0
   Compiling strsim v0.8.0
   Compiling ansi_term v0.11.0
   Compiling vec_map v0.8.2
   Compiling quick-error v2.0.1
   Compiling safe-mix v1.0.1
   Compiling instant v0.1.9
   Compiling futures-macro v0.3.15
   Compiling futures-util v0.3.15
   Compiling num-traits v0.2.14
   Compiling num-integer v0.1.44
   Compiling num-bigint v0.2.6
   Compiling num-rational v0.2.4
   Compiling indexmap v1.6.2
   Compiling miniz_oxide v0.4.4
   Compiling crossbeam-utils v0.8.4
   Compiling atomic v0.5.0
   Compiling memoffset v0.6.3
   Compiling rayon v1.5.0
   Compiling crossbeam-utils v0.7.2
   Compiling num-complex v0.2.4
   Compiling memoffset v0.5.6
   Compiling num-rational v0.3.2
   Compiling crossbeam-epoch v0.8.2
   Compiling lock_api v0.4.4
   Compiling lock_api v0.3.4
   Compiling tracing-core v0.1.18
   Compiling sharded-slab v0.1.1
   Compiling generic-array v0.14.4
   Compiling proc-macro-error-attr v1.0.4
   Compiling proc-macro-error v1.0.4
   Compiling nom v5.1.2
   Compiling unicase v2.6.0
   Compiling tinyvec v1.2.0
   Compiling hashbrown v0.9.1
   Compiling itertools v0.10.0
   Compiling block-padding v0.1.5
   Compiling tokio-service v0.1.0
   Compiling blake2b_simd v0.5.11
   Compiling blake2s_simd v0.5.11
   Compiling ed25519 v1.1.1
   Compiling trie-root v0.16.0
   Compiling libloading v0.7.0
   Compiling regex-automata v0.1.9
   Compiling wasmi-validation v0.3.0
   Compiling tokio-sync v0.1.8
   Compiling heck v0.3.2
   Compiling itertools v0.9.0
   Compiling addr2line v0.15.1
   Compiling unicode-bidi v0.3.5
   Compiling semver v0.9.0
   Compiling semver v0.6.0
   Compiling http v0.2.4
   Compiling form_urlencoded v1.0.1
   Compiling concurrent-queue v1.2.2
   Compiling dns-parser v0.8.0
   Compiling humantime v1.3.0
   Compiling async-mutex v1.4.0
   Compiling async-lock v2.4.0
   Compiling owning_ref v0.4.1
   Compiling lru-cache v0.1.2
   Compiling linked_hash_set v0.1.4
   Compiling cpp_demangle v0.3.2
   Compiling clang-sys v1.2.0
   Compiling wast v35.0.2
   Compiling matrixmultiply v0.2.4
   Compiling matrixmultiply v0.3.1
   Compiling pest v2.1.3
   Compiling parity-wasm v0.32.0
   Compiling textwrap v0.11.0
   Compiling walkdir v2.3.2
   Compiling lru v0.6.5
   Compiling unicode-normalization v0.1.17
   Compiling matchers v0.0.1
   Compiling rustc_version v0.2.3
   Compiling build-helper v0.1.1
   Compiling http-body v0.3.1
   Compiling semver-parser v0.10.2
   Compiling pest_meta v2.1.3
   Compiling quote v1.0.9
   Compiling jobserver v0.1.22
   Compiling which v4.1.0
   Compiling atty v0.2.14
   Compiling wat v1.0.37
   Compiling parking_lot_core v0.8.3
   Compiling num_cpus v1.13.0
   Compiling time v0.1.44
   Compiling iovec v0.1.4
   Compiling net2 v0.2.37
   Compiling signal-hook-registry v1.3.0
   Compiling socket2 v0.4.0
   Compiling hostname v0.3.1
   Compiling socket2 v0.3.19
   Compiling dirs-sys-next v0.1.2
   Compiling errno v0.2.7
   Compiling parking_lot_core v0.7.2
   Compiling memmap2 v0.2.2
   Compiling fs2 v0.4.3
   Compiling fs-swap v0.2.6
   Compiling dirs-sys v0.3.6
   Compiling rand v0.4.6
   Compiling rpassword v5.0.1
   Compiling fdlimit v0.2.1
   Compiling aho-corasick v0.7.18
   Compiling bstr v0.2.16
   Compiling futures-lite v1.11.3
   Compiling async-channel v1.6.1
   Compiling quicksink v0.1.2
   Compiling uint v0.9.0
   Compiling hash256-std-hasher v0.15.2
   Compiling generic-array v0.12.4
   Compiling generic-array v0.13.3
   Compiling bitvec v0.20.4
   Compiling blake2-rfc v0.2.18
   Compiling region v2.2.0
   Compiling snow v0.7.2
   Compiling parking_lot_core v0.6.2
   Compiling parking_lot v0.9.0
   Compiling hyper v0.12.36
   Compiling smallvec v0.6.14
   Compiling idna v0.2.3
   Compiling idna v0.1.5
   Compiling miow v0.3.7
   Compiling substrate-build-script-utils v3.0.0 (https://github.com/paritytech/substrate.git?tag=monthly-2021-05#70ef0afc)
   Compiling cc v1.0.67
   Compiling rand_core v0.6.2
   Compiling prost-build v0.7.0
   Compiling futures-cpupool v0.1.8
   Compiling threadpool v1.8.1
   Compiling parking_lot v0.11.1
   Compiling rand_core v0.5.1
   Compiling bytes v0.4.12
   Compiling resolv-conf v0.7.0
   Compiling clap v2.33.3
   Compiling directories-next v2.0.0
   Compiling parking_lot v0.10.2
   Compiling directories v3.0.2
   Compiling crossbeam-epoch v0.9.4
   Compiling crossbeam-channel v0.5.1
   Compiling rand v0.3.23
   Compiling tokio-executor v0.1.10
   Compiling crossbeam-queue v0.2.3
   Compiling regex v1.5.4
   Compiling digest v0.9.0
   Compiling block-buffer v0.9.0
   Compiling crypto-mac v0.8.0
   Compiling block-cipher v0.8.0
   Compiling universal-hash v0.4.0
   Compiling aead v0.3.2
   Compiling cipher v0.2.5
   Compiling integer-sqrt v0.1.5
   Compiling approx v0.3.2
   Compiling num-complex v0.3.1
   Compiling approx v0.4.0
   Compiling digest v0.8.1
   Compiling block-buffer v0.7.3
   Compiling crypto-mac v0.7.0
   Compiling cexpr v0.4.0
   Compiling url v2.2.2
   Compiling url v1.7.2
   Compiling node-template v3.0.0 (/substrate-node-template/node)
   Compiling rand_chacha v0.3.0
   Compiling backtrace v0.3.59
   Compiling ring v0.16.20
   Compiling blake3 v0.3.7
   Compiling zstd-sys v1.4.20+zstd.1.4.9
   Compiling libz-sys v1.1.3
   Compiling psm v0.1.12
   Compiling wasmtime-runtime v0.24.0
   Compiling wasmtime-fiber v0.24.0
   Compiling once_cell v1.7.2
   Compiling rand_chacha v0.2.2
   Compiling rand_pcg v0.2.1
   Compiling http v0.1.21
   Compiling tokio-buf v0.1.1
   Compiling string v0.2.1
   Compiling synstructure v0.12.4
   Compiling pest_generator v2.1.3
   Compiling crossbeam-deque v0.8.0
   Compiling tokio-timer v0.2.13
   Compiling tokio-current-thread v0.1.7
   Compiling crossbeam-deque v0.7.3
   Compiling sha2 v0.9.5
   Compiling sha3 v0.9.1
   Compiling sha-1 v0.9.6
   Compiling aes-soft v0.5.0
   Compiling stream-cipher v0.7.1
   Compiling hmac v0.8.1
   Compiling pbkdf2 v0.4.0
   Compiling blake2 v0.9.1
   Compiling polyval v0.4.5
   Compiling poly1305 v0.6.2
   Compiling salsa20 v0.7.2
   Compiling Inflector v0.11.4
   Compiling chrono v0.4.19
   Compiling alga v0.9.3
   Compiling simba v0.4.0
   Compiling sha2 v0.8.2
   Compiling sha-1 v0.8.2
   Compiling hmac v0.7.1
   Compiling pbkdf2 v0.3.0
   Compiling ctor v0.1.20
   Compiling thiserror-impl v1.0.24
   Compiling tracing-attributes v0.1.15
   Compiling impl-trait-for-tuples v0.2.1
   Compiling ref-cast-impl v1.0.6
   Compiling dyn-clonable-impl v0.9.0
   Compiling derive_more v0.99.13
   Compiling sp-debug-derive v3.0.0 (https://github.com/paritytech/substrate.git?tag=monthly-2021-05#70ef0afc)
   Compiling prost-derive v0.7.0
   Compiling pin-project-internal v1.0.7
   Compiling enum-as-inner v0.3.3
   Compiling minicbor-derive v0.6.3
   Compiling libp2p-swarm-derive v0.23.0
   Compiling scroll_derive v0.10.5
   Compiling sp-debug-derive v3.0.0
   Compiling frame-support-procedural-tools-derive v3.0.0 (https://github.com/paritytech/substrate.git?tag=monthly-2021-05#70ef0afc)
   Compiling data-encoding-macro-internal v0.1.9
   Compiling frame-support-procedural-tools-derive v3.0.0
   Compiling strum_macros v0.20.1
   Compiling rand v0.8.3
   Compiling thread_local v1.1.3
   Compiling async-executor v1.4.1
   Compiling blocking v1.0.2
   Compiling rand v0.7.3
   Compiling structopt-derive v0.4.14
   Compiling http-body v0.1.0
   Compiling zeroize_derive v1.1.0
   Compiling parity-util-mem-derive v0.1.0
   Compiling pest_derive v2.1.0
   Compiling aes v0.5.0
   Compiling ghash v0.3.1
   Compiling hmac-drbg v0.2.0
   Compiling thiserror v1.0.24
   Compiling dyn-clonable v0.9.0
   Compiling librocksdb-sys v6.17.3
   Compiling prost v0.7.0
   Compiling pin-project v1.0.7
   Compiling pin-project v0.4.28
   Compiling scroll v0.10.2
   Compiling minicbor v0.8.1
   Compiling data-encoding-macro v0.1.10
   Compiling tempfile v3.2.0
   Compiling twox-hash v1.6.0
   Compiling cuckoofilter v0.5.0
   Compiling rand_distr v0.2.2
   Compiling strum v0.20.0
   Compiling fixed-hash v0.7.0
   Compiling zeroize v1.3.0
   Compiling aes-gcm v0.7.0
   Compiling libsecp256k1 v0.3.5
   Compiling wasmi v0.6.2
   Compiling structopt v0.3.21
   Compiling prost-types v0.7.0
   Compiling sp-panic-handler v3.0.0 (https://github.com/paritytech/substrate.git?tag=monthly-2021-05#70ef0afc)
   Compiling sp-panic-handler v3.0.0
   Compiling failure v0.1.8
   Compiling multibase v0.8.0
   Compiling futures-executor v0.3.15
   Compiling asynchronous-codec v0.6.0
   Compiling asynchronous-codec v0.5.0
   Compiling toml v0.5.8
   Compiling cranelift-entity v0.71.0
   Compiling cranelift-codegen-shared v0.71.0
   Compiling semver v0.11.0
   Compiling cargo-platform v0.1.1
   Compiling impl-serde v0.3.1
   Compiling tracing-serde v0.1.2
   Compiling bincode v1.3.3
   Compiling nalgebra v0.25.4
   Compiling erased-serde v0.3.13
   Compiling nalgebra v0.19.0
   Compiling curve25519-dalek v3.1.0
   Compiling merlin v2.0.1
   Compiling curve25519-dalek v2.1.2
   Compiling secrecy v0.7.0
   Compiling tiny-bip39 v0.8.0
   Compiling chacha20 v0.5.0
   Compiling tracing v0.1.26
   Compiling tracing-log v0.1.2
   Compiling trie-db v0.22.3
   Compiling mio v0.6.23
   Compiling polling v2.0.3
   Compiling kv-log-macro v1.0.7
   Compiling trust-dns-proto v0.20.3
   Compiling want v0.3.0
   Compiling regalloc v0.0.31
   Compiling env_logger v0.7.1
   Compiling pwasm-utils v0.14.0
   Compiling tokio-io v0.1.13
   Compiling tokio-threadpool v0.1.18
   Compiling globset v0.4.6
   Compiling want v0.2.0
   Compiling parity-db v0.2.3
   Compiling sct v0.6.1
   Compiling webpki v0.21.4
   Compiling wasm-bindgen-backend v0.2.74
   Compiling wasm-gc-api v0.1.11
   Compiling futures v0.3.15
   Compiling unsigned-varint v0.7.0
   Compiling unsigned-varint v0.6.0
   Compiling petgraph v0.5.1
   Compiling proc-macro-crate v0.1.5
   Compiling proc-macro-crate v1.0.0
   Compiling cranelift-codegen-meta v0.71.0
   Compiling cargo_metadata v0.13.1
   Compiling sp-serializer v3.0.0 (https://github.com/paritytech/substrate.git?tag=monthly-2021-05#70ef0afc)
   Compiling jsonrpc-core v15.1.0
   Compiling sp-chain-spec v3.0.0 (https://github.com/paritytech/substrate.git?tag=monthly-2021-05#70ef0afc)
   Compiling handlebars v3.5.5
   Compiling gimli v0.23.0
   Compiling object v0.23.0
   Compiling cranelift-bforest v0.71.0
   Compiling ed25519-dalek v1.0.1
   Compiling x25519-dalek v1.1.1
   Compiling schnorrkel v0.9.1
   Compiling chacha20poly1305 v0.6.0
   Compiling tracing-futures v0.2.5
   Compiling tracing-subscriber v0.2.18
   Compiling async-io v1.4.1
   Compiling mio-uds v0.6.8
   Compiling mio-extras v2.0.6
   Compiling file-per-thread-logger v0.1.4
   Compiling trust-dns-resolver v0.20.3
   Compiling statrs v0.13.0
   Compiling tokio-reactor v0.1.12
   Compiling tokio-codec v0.1.2
   Compiling h2 v0.1.26
   Compiling tokio-fs v0.1.7
   Compiling ct-logs v0.7.0
   Compiling rustls v0.19.1
   Compiling webpki-roots v0.21.1
   Compiling rustls v0.18.1
   Compiling wasm-bindgen-macro-support v0.2.74
   Compiling rw-stream-sink v0.2.1
   Compiling wasm-timer v0.2.5
   Compiling yamux v0.9.0
   Compiling libp2p-pnet v0.20.0
   Compiling sp-utils v3.0.0 (https://github.com/paritytech/substrate.git?tag=monthly-2021-05#70ef0afc)
   Compiling intervalier v0.4.0
   Compiling futures-diagnose v1.0.1
   Compiling exit-future v0.2.0
   Compiling multistream-select v0.10.2
   Compiling frame-support-procedural-tools v3.0.0
   Compiling parity-scale-codec-derive v2.1.0
   Compiling multihash-derive v0.7.1
   Compiling sp-runtime-interface-proc-macro v3.0.0
   Compiling sp-api-proc-macro v3.0.0
   Compiling jsonrpc-derive v15.1.0
   Compiling frame-support-procedural-tools v3.0.0 (https://github.com/paritytech/substrate.git?tag=monthly-2021-05#70ef0afc)
   Compiling sp-runtime-interface-proc-macro v3.0.0 (https://github.com/paritytech/substrate.git?tag=monthly-2021-05#70ef0afc)
   Compiling sp-api-proc-macro v3.0.0 (https://github.com/paritytech/substrate.git?tag=monthly-2021-05#70ef0afc)
   Compiling sc-tracing-proc-macro v3.0.0 (https://github.com/paritytech/substrate.git?tag=monthly-2021-05#70ef0afc)
   Compiling sc-chain-spec-derive v3.0.0 (https://github.com/paritytech/substrate.git?tag=monthly-2021-05#70ef0afc)
   Compiling jsonrpc-pubsub v15.1.0
   Compiling addr2line v0.14.1
   Compiling substrate-bip39 v0.4.2
   Compiling async-global-executor v2.0.2
   Compiling async-process v1.1.0
   Compiling if-watch v0.2.2
   Compiling cranelift-codegen v0.71.0
   Compiling tokio v0.2.25
   Compiling parity-ws v0.10.0
   Compiling tokio-tcp v0.1.4
   Compiling linregress v0.4.1
   Compiling tokio-uds v0.2.7
   Compiling tokio-udp v0.1.6
   Compiling wasm-bindgen-macro v0.2.74
   Compiling rustls-native-certs v0.4.0
   Compiling futures-rustls v0.21.1
   Compiling frame-support-procedural v3.0.0
   Compiling multihash v0.13.2
   Compiling parity-scale-codec v2.1.1
   Compiling frame-support-procedural v3.0.0 (https://github.com/paritytech/substrate.git?tag=monthly-2021-05#70ef0afc)
   Compiling libp2p-core v0.28.3
   Compiling libp2p-relay v0.2.0
   Compiling libp2p-plaintext v0.28.0
   Compiling libp2p-gossipsub v0.30.1
   Compiling libp2p-kad v0.30.0
   Compiling libp2p-noise v0.30.0
   Compiling libp2p-floodsub v0.29.0
   Compiling libp2p-identify v0.29.0
   Compiling sc-network v0.9.0 (https://github.com/paritytech/substrate.git?tag=monthly-2021-05#70ef0afc)
   Compiling jsonrpc-client-transports v15.1.0
   Compiling async-std v1.9.0
   Compiling tokio v0.1.22
   Compiling tokio-util v0.3.1
   Compiling tokio-rustls v0.14.1
   Compiling parity-multiaddr v0.11.2
   Compiling cid v0.6.1
   Compiling impl-codec v0.5.0
   Compiling sp-tracing v3.0.0 (https://github.com/paritytech/substrate.git?tag=monthly-2021-05#70ef0afc)
   Compiling sp-storage v3.0.0 (https://github.com/paritytech/substrate.git?tag=monthly-2021-05#70ef0afc)
   Compiling sp-wasm-interface v3.0.0 (https://github.com/paritytech/substrate.git?tag=monthly-2021-05#70ef0afc)
   Compiling sp-arithmetic v3.0.0 (https://github.com/paritytech/substrate.git?tag=monthly-2021-05#70ef0afc)
   Compiling sp-storage v3.0.0
   Compiling sp-wasm-interface v3.0.0
   Compiling sp-tracing v3.0.0
   Compiling sp-arithmetic v3.0.0
   Compiling fork-tree v3.0.0 (https://github.com/paritytech/substrate.git?tag=monthly-2021-05#70ef0afc)
   Compiling finality-grandpa v0.14.0
   Compiling jsonrpc-core-client v15.1.0
   Compiling jsonrpc-server-utils v15.1.0
   Compiling tokio-named-pipes v0.1.0
   Compiling h2 v0.2.7
   Compiling js-sys v0.3.51
   Compiling primitive-types v0.9.0
   Compiling sc-tracing v3.0.0 (https://github.com/paritytech/substrate.git?tag=monthly-2021-05#70ef0afc)
   Compiling sp-externalities v0.9.0 (https://github.com/paritytech/substrate.git?tag=monthly-2021-05#70ef0afc)
   Compiling async-std-resolver v0.20.3
   Compiling sp-externalities v0.9.0
   Compiling jsonrpc-ws-server v15.1.0
   Compiling parity-tokio-ipc v0.4.0
   Compiling jsonrpc-http-server v15.1.0
   Compiling sp-runtime-interface v3.0.0 (https://github.com/paritytech/substrate.git?tag=monthly-2021-05#70ef0afc)
   Compiling hyper v0.13.10
   Compiling wasm-bindgen-futures v0.4.24
   Compiling sp-runtime-interface v3.0.0
   Compiling libp2p-swarm v0.29.0
   Compiling libp2p-tcp v0.28.0
   Compiling libp2p-uds v0.28.0
   Compiling libp2p-mplex v0.28.0
   Compiling libp2p-yamux v0.32.0
   Compiling libp2p-dns v0.28.1
   Compiling jsonrpc-ipc-server v15.1.0
   Compiling memory-db v0.26.0
   Compiling kvdb v0.9.0
   Compiling libp2p-wasm-ext v0.28.2
   Compiling sp-core v3.0.0 (https://github.com/paritytech/substrate.git?tag=monthly-2021-05#70ef0afc)
   Compiling cranelift-frontend v0.71.0
   Compiling cranelift-native v0.71.0
   Compiling sp-core v3.0.0
   Compiling libp2p-mdns v0.30.2
   Compiling libp2p-ping v0.29.0
   Compiling libp2p-request-response v0.11.0
   Compiling substrate-prometheus-endpoint v0.9.0 (https://github.com/paritytech/substrate.git?tag=monthly-2021-05#70ef0afc)
   Compiling hyper-rustls v0.21.0
   Compiling sp-database v3.0.0 (https://github.com/paritytech/substrate.git?tag=monthly-2021-05#70ef0afc)
   Compiling kvdb-memorydb v0.9.0
   Compiling cranelift-wasm v0.71.0
   Compiling sp-trie v3.0.0 (https://github.com/paritytech/substrate.git?tag=monthly-2021-05#70ef0afc)
   Compiling sp-keystore v0.9.0 (https://github.com/paritytech/substrate.git?tag=monthly-2021-05#70ef0afc)
   Compiling sp-inherents v3.0.0 (https://github.com/paritytech/substrate.git?tag=monthly-2021-05#70ef0afc)
   Compiling sp-allocator v3.0.0 (https://github.com/paritytech/substrate.git?tag=monthly-2021-05#70ef0afc)
   Compiling frame-metadata v13.0.0 (https://github.com/paritytech/substrate.git?tag=monthly-2021-05#70ef0afc)
   Compiling sp-rpc v3.0.0 (https://github.com/paritytech/substrate.git?tag=monthly-2021-05#70ef0afc)
   Compiling sp-trie v3.0.0
   Compiling sp-keystore v0.9.0
   Compiling sp-inherents v3.0.0
   Compiling frame-metadata v13.0.0
   Compiling sc-proposer-metrics v0.9.0 (https://github.com/paritytech/substrate.git?tag=monthly-2021-05#70ef0afc)
   Compiling sp-state-machine v0.9.0 (https://github.com/paritytech/substrate.git?tag=monthly-2021-05#70ef0afc)
   Compiling sc-executor-common v0.9.0 (https://github.com/paritytech/substrate.git?tag=monthly-2021-05#70ef0afc)
   Compiling wasmtime-environ v0.24.0
   Compiling sp-state-machine v0.9.0
   Compiling sc-executor-wasmi v0.9.0 (https://github.com/paritytech/substrate.git?tag=monthly-2021-05#70ef0afc)
   Compiling sp-io v3.0.0 (https://github.com/paritytech/substrate.git?tag=monthly-2021-05#70ef0afc)
   Compiling wasmtime-debug v0.24.0
   Compiling wasmtime-cranelift v0.24.0
   Compiling sp-io v3.0.0
   Compiling sp-application-crypto v3.0.0 (https://github.com/paritytech/substrate.git?tag=monthly-2021-05#70ef0afc)
   Compiling sp-tasks v3.0.0 (https://github.com/paritytech/substrate.git?tag=monthly-2021-05#70ef0afc)
   Compiling wasmtime-profiling v0.24.0
   Compiling wasmtime-obj v0.24.0
   Compiling sp-application-crypto v3.0.0
   Compiling sp-runtime v3.0.0 (https://github.com/paritytech/substrate.git?tag=monthly-2021-05#70ef0afc)
   Compiling sc-keystore v3.0.0 (https://github.com/paritytech/substrate.git?tag=monthly-2021-05#70ef0afc)
   Compiling wasmtime-jit v0.24.0
   Compiling sp-runtime v3.0.0
   Compiling sp-version v3.0.0 (https://github.com/paritytech/substrate.git?tag=monthly-2021-05#70ef0afc)
   Compiling sp-staking v3.0.0 (https://github.com/paritytech/substrate.git?tag=monthly-2021-05#70ef0afc)
   Compiling sp-consensus-slots v0.9.0 (https://github.com/paritytech/substrate.git?tag=monthly-2021-05#70ef0afc)
   Compiling sp-authorship v3.0.0 (https://github.com/paritytech/substrate.git?tag=monthly-2021-05#70ef0afc)
   Compiling sp-consensus-vrf v0.9.0 (https://github.com/paritytech/substrate.git?tag=monthly-2021-05#70ef0afc)
   Compiling sc-rpc-server v3.0.0 (https://github.com/paritytech/substrate.git?tag=monthly-2021-05#70ef0afc)
   Compiling sp-keyring v3.0.0 (https://github.com/paritytech/substrate.git?tag=monthly-2021-05#70ef0afc)
   Compiling sp-api v3.0.0 (https://github.com/paritytech/substrate.git?tag=monthly-2021-05#70ef0afc)
   Compiling frame-support v3.0.0 (https://github.com/paritytech/substrate.git?tag=monthly-2021-05#70ef0afc)
   Compiling sp-version v3.0.0
   Compiling sp-staking v3.0.0
   Compiling sp-block-builder v3.0.0 (https://github.com/paritytech/substrate.git?tag=monthly-2021-05#70ef0afc)
   Compiling sp-timestamp v3.0.0 (https://github.com/paritytech/substrate.git?tag=monthly-2021-05#70ef0afc)
   Compiling sp-session v3.0.0 (https://github.com/paritytech/substrate.git?tag=monthly-2021-05#70ef0afc)
   Compiling sp-finality-grandpa v3.0.0 (https://github.com/paritytech/substrate.git?tag=monthly-2021-05#70ef0afc)
   Compiling sp-offchain v3.0.0 (https://github.com/paritytech/substrate.git?tag=monthly-2021-05#70ef0afc)
   Compiling frame-system-rpc-runtime-api v3.0.0 (https://github.com/paritytech/substrate.git?tag=monthly-2021-05#70ef0afc)
   Compiling sp-api v3.0.0
   Compiling frame-support v3.0.0
   Compiling sp-timestamp v3.0.0
   Compiling sp-session v3.0.0
   Compiling flate2 v1.0.20
   Compiling soketto v0.4.2
   Compiling libp2p-deflate v0.28.0
   Compiling frame-system v3.0.0 (https://github.com/paritytech/substrate.git?tag=monthly-2021-05#70ef0afc)
   Compiling libp2p-websocket v0.29.0
   Compiling frame-system v3.0.0
   Compiling frame-benchmarking v3.1.0 (https://github.com/paritytech/substrate.git?tag=monthly-2021-05#70ef0afc)
   Compiling pallet-transaction-payment v3.0.0 (https://github.com/paritytech/substrate.git?tag=monthly-2021-05#70ef0afc)
   Compiling pallet-authorship v3.0.0 (https://github.com/paritytech/substrate.git?tag=monthly-2021-05#70ef0afc)
   Compiling frame-executive v3.0.0 (https://github.com/paritytech/substrate.git?tag=monthly-2021-05#70ef0afc)
   Compiling pallet-randomness-collective-flip v3.0.0 (https://github.com/paritytech/substrate.git?tag=monthly-2021-05#70ef0afc)
   Compiling pallet-sudo v3.0.0 (https://github.com/paritytech/substrate.git?tag=monthly-2021-05#70ef0afc)
   Compiling libp2p v0.37.1
   Compiling pallet-timestamp v3.0.0 (https://github.com/paritytech/substrate.git?tag=monthly-2021-05#70ef0afc)
   Compiling pallet-balances v3.0.0 (https://github.com/paritytech/substrate.git?tag=monthly-2021-05#70ef0afc)
   Compiling pallet-template v3.0.0 (/substrate-node-template/pallets/template)
   Compiling frame-benchmarking v3.1.0
   Compiling pallet-transaction-payment-rpc-runtime-api v3.0.0 (https://github.com/paritytech/substrate.git?tag=monthly-2021-05#70ef0afc)
   Compiling sp-consensus v0.9.0 (https://github.com/paritytech/substrate.git?tag=monthly-2021-05#70ef0afc)
   Compiling sc-telemetry v3.0.0 (https://github.com/paritytech/substrate.git?tag=monthly-2021-05#70ef0afc)
   Compiling sc-peerset v3.0.0 (https://github.com/paritytech/substrate.git?tag=monthly-2021-05#70ef0afc)
   Compiling pallet-session v3.0.0 (https://github.com/paritytech/substrate.git?tag=monthly-2021-05#70ef0afc)
   Compiling pallet-timestamp v3.0.0
   Compiling sp-blockchain v3.0.0 (https://github.com/paritytech/substrate.git?tag=monthly-2021-05#70ef0afc)
   Compiling sp-consensus-babe v0.9.0 (https://github.com/paritytech/substrate.git?tag=monthly-2021-05#70ef0afc)
   Compiling sp-consensus-aura v0.9.0 (https://github.com/paritytech/substrate.git?tag=monthly-2021-05#70ef0afc)
   Compiling pallet-session v3.0.0
   Compiling sp-transaction-pool v3.0.0 (https://github.com/paritytech/substrate.git?tag=monthly-2021-05#70ef0afc)
   Compiling pallet-transaction-payment-rpc v3.0.0 (https://github.com/paritytech/substrate.git?tag=monthly-2021-05#70ef0afc)
   Compiling sc-rpc-api v0.9.0 (https://github.com/paritytech/substrate.git?tag=monthly-2021-05#70ef0afc)
   Compiling sc-transaction-graph v3.0.0 (https://github.com/paritytech/substrate.git?tag=monthly-2021-05#70ef0afc)
   Compiling pallet-aura v3.0.0 (https://github.com/paritytech/substrate.git?tag=monthly-2021-05#70ef0afc)
   Compiling pallet-grandpa v3.0.0 (https://github.com/paritytech/substrate.git?tag=monthly-2021-05#70ef0afc)
   Compiling substrate-validator-set v3.0.0 (https://github.com/gautamdhameja/substrate-validator-set.git#04adbb93)
   Compiling zstd v0.6.1+zstd.1.4.9
   Compiling sp-maybe-compressed-blob v3.0.0 (https://github.com/paritytech/substrate.git?tag=monthly-2021-05#70ef0afc)
   Compiling substrate-wasm-builder v4.0.0 (https://github.com/paritytech/substrate.git?tag=monthly-2021-05#70ef0afc)
   Compiling node-template-runtime v3.0.0 (/substrate-node-template/runtime)
   Compiling wasmtime v0.24.0
   Compiling sc-executor-wasmtime v0.9.0 (https://github.com/paritytech/substrate.git?tag=monthly-2021-05#70ef0afc)
   Compiling sc-executor v0.9.0 (https://github.com/paritytech/substrate.git?tag=monthly-2021-05#70ef0afc)
   Compiling sc-client-api v3.0.0 (https://github.com/paritytech/substrate.git?tag=monthly-2021-05#70ef0afc)
   Compiling sc-block-builder v0.9.0 (https://github.com/paritytech/substrate.git?tag=monthly-2021-05#70ef0afc)
   Compiling sc-consensus v0.9.0 (https://github.com/paritytech/substrate.git?tag=monthly-2021-05#70ef0afc)
   Compiling sc-consensus-uncles v0.9.0 (https://github.com/paritytech/substrate.git?tag=monthly-2021-05#70ef0afc)
   Compiling sc-state-db v0.9.0 (https://github.com/paritytech/substrate.git?tag=monthly-2021-05#70ef0afc)
   Compiling sc-light v3.0.0 (https://github.com/paritytech/substrate.git?tag=monthly-2021-05#70ef0afc)
   Compiling sc-transaction-pool v3.0.0 (https://github.com/paritytech/substrate.git?tag=monthly-2021-05#70ef0afc)
   Compiling substrate-frame-rpc-system v3.0.0 (https://github.com/paritytech/substrate.git?tag=monthly-2021-05#70ef0afc)
   Compiling sc-rpc v3.0.0 (https://github.com/paritytech/substrate.git?tag=monthly-2021-05#70ef0afc)
   Compiling sc-basic-authorship v0.9.0 (https://github.com/paritytech/substrate.git?tag=monthly-2021-05#70ef0afc)
   Compiling sc-consensus-epochs v0.9.0 (https://github.com/paritytech/substrate.git?tag=monthly-2021-05#70ef0afc)
   Compiling sc-consensus-aura v0.9.0 (https://github.com/paritytech/substrate.git?tag=monthly-2021-05#70ef0afc)
   Compiling sc-consensus-babe v0.9.0 (https://github.com/paritytech/substrate.git?tag=monthly-2021-05#70ef0afc)
   Compiling sc-network-gossip v0.9.0 (https://github.com/paritytech/substrate.git?tag=monthly-2021-05#70ef0afc)
   Compiling sc-offchain v3.0.0 (https://github.com/paritytech/substrate.git?tag=monthly-2021-05#70ef0afc)
   Compiling sc-informant v0.9.0 (https://github.com/paritytech/substrate.git?tag=monthly-2021-05#70ef0afc)
   Compiling sc-finality-grandpa v0.9.0 (https://github.com/paritytech/substrate.git?tag=monthly-2021-05#70ef0afc)
   Compiling sc-chain-spec v3.0.0 (https://github.com/paritytech/substrate.git?tag=monthly-2021-05#70ef0afc)
error: failed to run custom build command for `node-template-runtime v3.0.0 (/substrate-node-template/runtime)`

Caused by:
  process didn't exit successfully: `/substrate-node-template/target/release/build/node-template-runtime-611aae1c441ca72d/build-script-build` (exit code: 1)
  --- stdout
  Information that should be included in a bug report.
  Executing build command: "rustup" "run" "nightly" "cargo" "rustc" "--target=wasm32-unknown-unknown" "--manifest-path=/substrate-node-template/target/release/wbuild/node-template-runtime/Cargo.toml" "--color=always" "--release"
  Using rustc version: rustc 1.54.0-nightly (625d5a693 2021-06-01)


  --- stderr
     Compiling proc-macro2 v1.0.26
     Compiling unicode-xid v0.2.2
     Compiling syn v1.0.72
     Compiling serde_derive v1.0.126
     Compiling serde v1.0.126
     Compiling byte-slice-cast v1.0.0
     Compiling arrayvec v0.7.0
     Compiling autocfg v1.0.1
     Compiling memchr v2.4.0
     Compiling pin-project-lite v0.2.6
     Compiling log v0.4.14
     Compiling regex-syntax v0.6.25
     Compiling crunchy v0.2.2
     Compiling static_assertions v1.1.0
     Compiling lazy_static v1.4.0
     Compiling cfg-if v1.0.0
     Compiling ref-cast v1.0.6
     Compiling hex v0.4.3
     Compiling tracing-core v0.1.18
     Compiling byteorder v1.4.3
     Compiling parity-util-mem v0.9.0
     Compiling zeroize v1.3.0
     Compiling hash-db v0.15.2
     Compiling either v1.6.1
     Compiling paste v1.0.5
     Compiling sp-std v3.0.0 (https://github.com/paritytech/substrate.git?tag=monthly-2021-05#70ef0afc)
     Compiling arrayvec v0.4.12
     Compiling nodrop v0.1.14
     Compiling constant_time_eq v0.1.5
     Compiling sp-std v3.0.0
     Compiling bitflags v1.2.1
     Compiling libc v0.2.94
     Compiling smallvec v1.6.1
     Compiling getrandom v0.2.2
     Compiling futures-core v0.3.15
     Compiling ucd-trie v0.1.3
     Compiling ryu v1.0.5
     Compiling futures-task v0.3.15
     Compiling zstd-safe v3.0.1+zstd.1.4.9
     Compiling camino v1.0.4
     Compiling futures-sink v0.3.15
     Compiling futures-channel v0.3.15
     Compiling ppv-lite86 v0.2.10
     Compiling serde_json v1.0.64
     Compiling pin-utils v0.1.0
     Compiling semver-parser v0.7.0
     Compiling itoa v0.4.7
     Compiling same-file v1.0.6
     Compiling rustc-demangle v0.1.19
     Compiling futures-io v0.3.15
     Compiling remove_dir_all v0.5.3
     Compiling ansi_term v0.12.1
     Compiling safe-mix v1.0.1
     Compiling fixed-hash v0.7.0
     Compiling num-traits v0.2.14
     Compiling futures-util v0.3.15
     Compiling tracing v0.1.26
     Compiling secrecy v0.7.0
     Compiling pest v2.1.3
     Compiling semver v0.6.0
     Compiling parity-wasm v0.32.0
     Compiling walkdir v2.3.2
     Compiling build-helper v0.1.1
     Compiling quote v1.0.9
     Compiling uint v0.9.0
     Compiling hash256-std-hasher v0.15.2
     Compiling aho-corasick v0.7.18
     Compiling semver-parser v0.10.2
     Compiling blake2-rfc v0.2.18
     Compiling wasm-gc-api v0.1.11
     Compiling jobserver v0.1.22
     Compiling atty v0.2.14
     Compiling integer-sqrt v0.1.5
     Compiling regex v1.5.4
     Compiling cc v1.0.67
     Compiling rand_core v0.6.2
     Compiling rand_chacha v0.3.0
     Compiling futures v0.3.15
     Compiling rand v0.8.3
     Compiling Inflector v0.11.4
     Compiling tempfile v3.2.0
     Compiling zstd-sys v1.4.20+zstd.1.4.9
     Compiling synstructure v0.12.4
     Compiling ref-cast-impl v1.0.6
     Compiling impl-trait-for-tuples v0.2.1
     Compiling parity-util-mem-derive v0.1.0
     Compiling thiserror-impl v1.0.24
     Compiling sp-debug-derive v3.0.0 (https://github.com/paritytech/substrate.git?tag=monthly-2021-05#70ef0afc)
     Compiling sp-debug-derive v3.0.0
     Compiling frame-support-procedural-tools-derive v3.0.0 (https://github.com/paritytech/substrate.git?tag=monthly-2021-05#70ef0afc)
     Compiling frame-support-procedural-tools-derive v3.0.0
     Compiling thiserror v1.0.24
     Compiling toml v0.5.8
     Compiling cargo-platform v0.1.1
     Compiling semver v0.11.0
     Compiling proc-macro-crate v0.1.5
     Compiling proc-macro-crate v1.0.0
     Compiling frame-support-procedural-tools v3.0.0
     Compiling frame-support-procedural-tools v3.0.0 (https://github.com/paritytech/substrate.git?tag=monthly-2021-05#70ef0afc)
     Compiling cargo_metadata v0.13.1
     Compiling sp-runtime-interface-proc-macro v3.0.0 (https://github.com/paritytech/substrate.git?tag=monthly-2021-05#70ef0afc)
     Compiling sp-api-proc-macro v3.0.0 (https://github.com/paritytech/substrate.git?tag=monthly-2021-05#70ef0afc)
     Compiling parity-scale-codec-derive v2.1.0
     Compiling sp-runtime-interface-proc-macro v3.0.0
     Compiling sp-api-proc-macro v3.0.0
     Compiling frame-support-procedural v3.0.0
     Compiling frame-support-procedural v3.0.0 (https://github.com/paritytech/substrate.git?tag=monthly-2021-05#70ef0afc)
     Compiling parity-scale-codec v2.1.1
     Compiling impl-codec v0.5.0
     Compiling sp-tracing v3.0.0 (https://github.com/paritytech/substrate.git?tag=monthly-2021-05#70ef0afc)
     Compiling sp-storage v3.0.0 (https://github.com/paritytech/substrate.git?tag=monthly-2021-05#70ef0afc)
     Compiling sp-wasm-interface v3.0.0 (https://github.com/paritytech/substrate.git?tag=monthly-2021-05#70ef0afc)
     Compiling sp-arithmetic v3.0.0 (https://github.com/paritytech/substrate.git?tag=monthly-2021-05#70ef0afc)
     Compiling sp-wasm-interface v3.0.0
     Compiling sp-tracing v3.0.0
     Compiling sp-storage v3.0.0
     Compiling sp-arithmetic v3.0.0
     Compiling finality-grandpa v0.14.0
     Compiling primitive-types v0.9.0
     Compiling sp-runtime-interface v3.0.0 (https://github.com/paritytech/substrate.git?tag=monthly-2021-05#70ef0afc)
     Compiling sp-runtime-interface v3.0.0
     Compiling sp-core v3.0.0 (https://github.com/paritytech/substrate.git?tag=monthly-2021-05#70ef0afc)
     Compiling sp-core v3.0.0
     Compiling sp-io v3.0.0 (https://github.com/paritytech/substrate.git?tag=monthly-2021-05#70ef0afc)
     Compiling sp-inherents v3.0.0 (https://github.com/paritytech/substrate.git?tag=monthly-2021-05#70ef0afc)
     Compiling frame-metadata v13.0.0 (https://github.com/paritytech/substrate.git?tag=monthly-2021-05#70ef0afc)
     Compiling sp-io v3.0.0
     Compiling sp-inherents v3.0.0
     Compiling frame-metadata v13.0.0
     Compiling sp-application-crypto v3.0.0 (https://github.com/paritytech/substrate.git?tag=monthly-2021-05#70ef0afc)
     Compiling sp-runtime v3.0.0 (https://github.com/paritytech/substrate.git?tag=monthly-2021-05#70ef0afc)
     Compiling sp-application-crypto v3.0.0
     Compiling sp-runtime v3.0.0
     Compiling sp-version v3.0.0 (https://github.com/paritytech/substrate.git?tag=monthly-2021-05#70ef0afc)
     Compiling sp-staking v3.0.0 (https://github.com/paritytech/substrate.git?tag=monthly-2021-05#70ef0afc)
     Compiling sp-consensus-slots v0.9.0 (https://github.com/paritytech/substrate.git?tag=monthly-2021-05#70ef0afc)
     Compiling sp-authorship v3.0.0 (https://github.com/paritytech/substrate.git?tag=monthly-2021-05#70ef0afc)
     Compiling sp-api v3.0.0 (https://github.com/paritytech/substrate.git?tag=monthly-2021-05#70ef0afc)
     Compiling frame-support v3.0.0 (https://github.com/paritytech/substrate.git?tag=monthly-2021-05#70ef0afc)
     Compiling sp-version v3.0.0
     Compiling sp-staking v3.0.0
     Compiling sp-timestamp v3.0.0 (https://github.com/paritytech/substrate.git?tag=monthly-2021-05#70ef0afc)
     Compiling sp-session v3.0.0 (https://github.com/paritytech/substrate.git?tag=monthly-2021-05#70ef0afc)
     Compiling sp-finality-grandpa v3.0.0 (https://github.com/paritytech/substrate.git?tag=monthly-2021-05#70ef0afc)
     Compiling frame-system-rpc-runtime-api v3.0.0 (https://github.com/paritytech/substrate.git?tag=monthly-2021-05#70ef0afc)
     Compiling sp-block-builder v3.0.0 (https://github.com/paritytech/substrate.git?tag=monthly-2021-05#70ef0afc)
     Compiling sp-offchain v3.0.0 (https://github.com/paritytech/substrate.git?tag=monthly-2021-05#70ef0afc)
     Compiling sp-transaction-pool v3.0.0 (https://github.com/paritytech/substrate.git?tag=monthly-2021-05#70ef0afc)
     Compiling sp-api v3.0.0
     Compiling frame-support v3.0.0
     Compiling sp-consensus-aura v0.9.0 (https://github.com/paritytech/substrate.git?tag=monthly-2021-05#70ef0afc)
     Compiling sp-timestamp v3.0.0
     Compiling sp-session v3.0.0
     Compiling frame-system v3.0.0
     Compiling frame-system v3.0.0 (https://github.com/paritytech/substrate.git?tag=monthly-2021-05#70ef0afc)
     Compiling pallet-timestamp v3.0.0
     Compiling pallet-timestamp v3.0.0 (https://github.com/paritytech/substrate.git?tag=monthly-2021-05#70ef0afc)
     Compiling pallet-transaction-payment v3.0.0 (https://github.com/paritytech/substrate.git?tag=monthly-2021-05#70ef0afc)
     Compiling pallet-authorship v3.0.0 (https://github.com/paritytech/substrate.git?tag=monthly-2021-05#70ef0afc)
     Compiling pallet-randomness-collective-flip v3.0.0 (https://github.com/paritytech/substrate.git?tag=monthly-2021-05#70ef0afc)
     Compiling pallet-sudo v3.0.0 (https://github.com/paritytech/substrate.git?tag=monthly-2021-05#70ef0afc)
     Compiling pallet-template v3.0.0 (/substrate-node-template/pallets/template)
     Compiling pallet-balances v3.0.0 (https://github.com/paritytech/substrate.git?tag=monthly-2021-05#70ef0afc)
     Compiling frame-executive v3.0.0 (https://github.com/paritytech/substrate.git?tag=monthly-2021-05#70ef0afc)
     Compiling pallet-session v3.0.0
     Compiling pallet-session v3.0.0 (https://github.com/paritytech/substrate.git?tag=monthly-2021-05#70ef0afc)
     Compiling pallet-transaction-payment-rpc-runtime-api v3.0.0 (https://github.com/paritytech/substrate.git?tag=monthly-2021-05#70ef0afc)
     Compiling substrate-validator-set v3.0.0 (https://github.com/gautamdhameja/substrate-validator-set.git#04adbb93)
     Compiling pallet-grandpa v3.0.0 (https://github.com/paritytech/substrate.git?tag=monthly-2021-05#70ef0afc)
     Compiling pallet-aura v3.0.0 (https://github.com/paritytech/substrate.git?tag=monthly-2021-05#70ef0afc)
     Compiling zstd v0.6.1+zstd.1.4.9
     Compiling sp-maybe-compressed-blob v3.0.0 (https://github.com/paritytech/substrate.git?tag=monthly-2021-05#70ef0afc)
     Compiling substrate-wasm-builder v4.0.0 (https://github.com/paritytech/substrate.git?tag=monthly-2021-05#70ef0afc)
     Compiling node-template-runtime v3.0.0 (/substrate-node-template/runtime)
  error[E0252]: the name `AccountIdLookup` is defined multiple times
    --> /substrate-node-template/runtime/src/lib.rs:26:2
     |
  16 |     BlakeTwo256, Block as BlockT, AccountIdLookup, Verify, IdentifyAccount, NumberFor,
     |                                   --------------- previous import of the type `AccountIdLookup` here
  ...
  26 |     AccountIdLookup, BlakeTwo256, Block as BlockT, Verify, IdentifyAccount, NumberFor, OpaqueKeys
     |     ^^^^^^^^^^^^^^^--
     |     |
     |     `AccountIdLookup` reimported here
     |     help: remove unnecessary import
     |
     = note: `AccountIdLookup` must be defined only once in the type namespace of this module

  error[E0252]: the name `BlakeTwo256` is defined multiple times
    --> /substrate-node-template/runtime/src/lib.rs:26:19
     |
  16 |     BlakeTwo256, Block as BlockT, AccountIdLookup, Verify, IdentifyAccount, NumberFor,
     |     ----------- previous import of the type `BlakeTwo256` here
  ...
  26 |     AccountIdLookup, BlakeTwo256, Block as BlockT, Verify, IdentifyAccount, NumberFor, OpaqueKeys
     |                      ^^^^^^^^^^^--
     |                      |
     |                      `BlakeTwo256` reimported here
     |                      help: remove unnecessary import
     |
     = note: `BlakeTwo256` must be defined only once in the type namespace of this module

  error[E0252]: the name `BlockT` is defined multiple times
    --> /substrate-node-template/runtime/src/lib.rs:26:32
     |
  16 |     BlakeTwo256, Block as BlockT, AccountIdLookup, Verify, IdentifyAccount, NumberFor,
     |                  --------------- previous import of the trait `BlockT` here
  ...
  26 |     AccountIdLookup, BlakeTwo256, Block as BlockT, Verify, IdentifyAccount, NumberFor, OpaqueKeys
     |                                   ^^^^^^^^^^^^^^^--
     |                                   |
     |                                   `BlockT` reimported here
     |                                   help: remove unnecessary import
     |
     = note: `BlockT` must be defined only once in the type namespace of this module

  error[E0252]: the name `Verify` is defined multiple times
    --> /substrate-node-template/runtime/src/lib.rs:26:49
     |
  16 |     BlakeTwo256, Block as BlockT, AccountIdLookup, Verify, IdentifyAccount, NumberFor,
     |                                                    ------ previous import of the trait `Verify` here
  ...
  26 |     AccountIdLookup, BlakeTwo256, Block as BlockT, Verify, IdentifyAccount, NumberFor, OpaqueKeys
     |                                                    ^^^^^^--
     |                                                    |
     |                                                    `Verify` reimported here
     |                                                    help: remove unnecessary import
     |
     = note: `Verify` must be defined only once in the type namespace of this module

  error[E0252]: the name `IdentifyAccount` is defined multiple times
    --> /substrate-node-template/runtime/src/lib.rs:26:57
     |
  16 |     BlakeTwo256, Block as BlockT, AccountIdLookup, Verify, IdentifyAccount, NumberFor,
     |                                                            --------------- previous import of the trait `IdentifyAccount` here
  ...
  26 |     AccountIdLookup, BlakeTwo256, Block as BlockT, Verify, IdentifyAccount, NumberFor, OpaqueKeys
     |                                                            ^^^^^^^^^^^^^^^--
     |                                                            |
     |                                                            `IdentifyAccount` reimported here
     |                                                            help: remove unnecessary import
     |
     = note: `IdentifyAccount` must be defined only once in the type namespace of this module

  error[E0252]: the name `NumberFor` is defined multiple times
    --> /substrate-node-template/runtime/src/lib.rs:26:74
     |
  16 |     BlakeTwo256, Block as BlockT, AccountIdLookup, Verify, IdentifyAccount, NumberFor,
     |                                                                             --------- previous import of the type `NumberFor` here
  ...
  26 |     AccountIdLookup, BlakeTwo256, Block as BlockT, Verify, IdentifyAccount, NumberFor, OpaqueKeys
     |                                                                             ^^^^^^^^^--
     |                                                                             |
     |                                                                             `NumberFor` reimported here
     |                                                                             help: remove unnecessary import
     |
     = note: `NumberFor` must be defined only once in the type namespace of this module

  error: expected one of: `Pallet`, `Call`, `Storage`, `Event`, `Config`, `Origin`, `Inherent`, `ValidateUnsigned`
     --> /substrate-node-template/runtime/src/lib.rs:306:29
      |
  306 |         Session: pallet_session::{Module, Call, Storage, Event, Config<T>},
      |                                   ^^^^^^

  error[E0433]: failed to resolve: use of undeclared type `Runtime`
     --> /substrate-node-template/runtime/src/lib.rs:368:4
      |
  368 |             Runtime::metadata().into()
      |             ^^^^^^^ use of undeclared type `Runtime`

  error[E0433]: failed to resolve: use of undeclared type `RandomnessCollectiveFlip`
     --> /substrate-node-template/runtime/src/lib.rs:393:4
      |
  393 |             RandomnessCollectiveFlip::random_seed().0
      |             ^^^^^^^^^^^^^^^^^^^^^^^^ use of undeclared type `RandomnessCollectiveFlip`

  error[E0433]: failed to resolve: use of undeclared type `Aura`
     --> /substrate-node-template/runtime/src/lib.rs:414:49
      |
  414 |             sp_consensus_aura::SlotDuration::from_millis(Aura::slot_duration())
      |                                                          ^^^^ use of undeclared type `Aura`

  error[E0433]: failed to resolve: use of undeclared type `Aura`
     --> /substrate-node-template/runtime/src/lib.rs:418:4
      |
  418 |             Aura::authorities()
      |             ^^^^ use of undeclared type `Aura`

  error[E0433]: failed to resolve: use of undeclared type `Grandpa`
     --> /substrate-node-template/runtime/src/lib.rs:436:4
      |
  436 |             Grandpa::grandpa_authorities()
      |             ^^^^^^^ use of undeclared type `Grandpa`

  error[E0433]: failed to resolve: use of undeclared type `System`
     --> /substrate-node-template/runtime/src/lib.rs:462:4
      |
  462 |             System::account_nonce(account)
      |             ^^^^^^ use of undeclared type `System`

  error[E0433]: failed to resolve: use of undeclared type `TransactionPayment`
     --> /substrate-node-template/runtime/src/lib.rs:471:4
      |
  471 |             TransactionPayment::query_info(uxt, len)
      |             ^^^^^^^^^^^^^^^^^^ use of undeclared type `TransactionPayment`

  error[E0433]: failed to resolve: use of undeclared type `TransactionPayment`
     --> /substrate-node-template/runtime/src/lib.rs:477:4
      |
  477 |             TransactionPayment::query_fee_details(uxt, len)
      |             ^^^^^^^^^^^^^^^^^^ use of undeclared type `TransactionPayment`

  error[E0412]: cannot find type `Aura` in this scope
    --> /substrate-node-template/runtime/src/lib.rs:91:14
     |
  91 |             pub aura: Aura,
     |                       ^^^^ not found in this scope

  error[E0412]: cannot find type `Grandpa` in this scope
    --> /substrate-node-template/runtime/src/lib.rs:92:17
     |
  92 |             pub grandpa: Grandpa,
     |                          ^^^^^^^ help: a type alias with a similar name exists: `GrandpaId`
     |
    ::: /root/.cargo/git/checkouts/substrate-7e08433d4c370a21/70ef0af/primitives/finality-grandpa/src/lib.rs:52:1
     |
  52 | pub type AuthorityId = app::Public;
     | ----------------------------------- similarly named type alias `GrandpaId` defined here

  error[E0412]: cannot find type `Runtime` in this scope
     --> /substrate-node-template/runtime/src/lib.rs:155:31
      |
  155 | impl frame_system::Config for Runtime {
      |                               ^^^^^^^ not found in this scope

  error[E0412]: cannot find type `Call` in this scope
     --> /substrate-node-template/runtime/src/lib.rs:165:14
      |
  165 |     type Call = Call;
      |                 ^^^^
      |
  help: you might have meant to use the associated type
      |
  165 |     type Call = Self::Call;
      |                 ^^^^^^^^^^
  help: consider importing one of these items
      |
  9   | use crate::pallet_template::Call;
      |
  9   | use frame_system::Call;
      |
  9   | use pallet_aura::Call;
      |
  9   | use pallet_balances::Call;
      |
        and 8 other candidates

  error[E0412]: cannot find type `Event` in this scope
     --> /substrate-node-template/runtime/src/lib.rs:179:15
      |
  179 |     type Event = Event;
      |                  ^^^^^
      |
  help: you might have meant to use the associated type
      |
  179 |     type Event = Self::Event;
      |                  ^^^^^^^^^^^
  help: consider importing one of these items
      |
  9   | use crate::pallet_template::Event;
      |
  9   | use frame_system::Event;
      |
  9   | use pallet_balances::Event;
      |
  9   | use pallet_grandpa::Event;
      |
        and 4 other candidates

  error[E0412]: cannot find type `Origin` in this scope
     --> /substrate-node-template/runtime/src/lib.rs:181:16
      |
  181 |     type Origin = Origin;
      |                   ^^^^^^
      |
  help: you might have meant to use the associated type
      |
  181 |     type Origin = Self::Origin;
      |                   ^^^^^^^^^^^^
  help: consider importing this type alias
      |
  9   | use frame_system::Origin;
      |

  error[E0412]: cannot find type `PalletInfo` in this scope
     --> /substrate-node-template/runtime/src/lib.rs:191:20
      |
  191 |     type PalletInfo = PalletInfo;
      |                       ^^^^^^^^^^
      |
  help: you might have meant to use the associated type
      |
  191 |     type PalletInfo = Self::PalletInfo;
      |                       ^^^^^^^^^^^^^^^^
  help: consider importing this trait
      |
  9   | use frame_support::traits::PalletInfo;
      |

  error[E0412]: cannot find type `Runtime` in this scope
     --> /substrate-node-template/runtime/src/lib.rs:205:31
      |
  205 | impl validatorset::Config for Runtime {
      |                               ^^^^^^^ not found in this scope

  error[E0412]: cannot find type `Event` in this scope
     --> /substrate-node-template/runtime/src/lib.rs:206:15
      |
  206 |     type Event = Event;
      |                  ^^^^^
      |
  help: you might have meant to use the associated type
      |
  206 |     type Event = Self::Event;
      |                  ^^^^^^^^^^^
  help: consider importing one of these items
      |
  9   | use crate::pallet_template::Event;
      |
  9   | use frame_system::Event;
      |
  9   | use pallet_balances::Event;
      |
  9   | use pallet_grandpa::Event;
      |
        and 4 other candidates

  error[E0412]: cannot find type `Runtime` in this scope
     --> /substrate-node-template/runtime/src/lib.rs:209:30
      |
  209 | impl pallet_aura::Config for Runtime {
      |                              ^^^^^^^ not found in this scope

  error[E0412]: cannot find type `Runtime` in this scope
     --> /substrate-node-template/runtime/src/lib.rs:213:33
      |
  213 | impl pallet_grandpa::Config for Runtime {
      |                                 ^^^^^^^ not found in this scope

  error[E0412]: cannot find type `Event` in this scope
     --> /substrate-node-template/runtime/src/lib.rs:214:15
      |
  214 |     type Event = Event;
      |                  ^^^^^
      |
  help: you might have meant to use the associated type
      |
  214 |     type Event = Self::Event;
      |                  ^^^^^^^^^^^
  help: consider importing one of these items
      |
  9   | use crate::pallet_template::Event;
      |
  9   | use frame_system::Event;
      |
  9   | use pallet_balances::Event;
      |
  9   | use pallet_grandpa::Event;
      |
        and 4 other candidates

  error[E0412]: cannot find type `Call` in this scope
     --> /substrate-node-template/runtime/src/lib.rs:215:14
      |
  215 |     type Call = Call;
      |                 ^^^^
      |
  help: you might have meant to use the associated type
      |
  215 |     type Call = Self::Call;
      |                 ^^^^^^^^^^
  help: consider importing one of these items
      |
  9   | use crate::pallet_template::Call;
      |
  9   | use frame_system::Call;
      |
  9   | use pallet_aura::Call;
      |
  9   | use pallet_balances::Call;
      |
        and 8 other candidates

  error[E0412]: cannot find type `Runtime` in this scope
     --> /substrate-node-template/runtime/src/lib.rs:236:35
      |
  236 | impl pallet_timestamp::Config for Runtime {
      |                                   ^^^^^^^ not found in this scope

  error[E0412]: cannot find type `Aura` in this scope
     --> /substrate-node-template/runtime/src/lib.rs:239:24
      |
  239 |     type OnTimestampSet = Aura;
      |                           ^^^^ not found in this scope

  error[E0412]: cannot find type `Runtime` in this scope
     --> /substrate-node-template/runtime/src/lib.rs:249:34
      |
  249 | impl pallet_balances::Config for Runtime {
      |                                  ^^^^^^^ not found in this scope

  error[E0412]: cannot find type `Event` in this scope
     --> /substrate-node-template/runtime/src/lib.rs:254:15
      |
  254 |     type Event = Event;
      |                  ^^^^^
      |
  help: you might have meant to use the associated type
      |
  254 |     type Event = Self::Event;
      |                  ^^^^^^^^^^^
  help: consider importing one of these items
      |
  9   | use crate::pallet_template::Event;
      |
  9   | use frame_system::Event;
      |
  9   | use pallet_balances::Event;
      |
  9   | use pallet_grandpa::Event;
      |
        and 4 other candidates

  error[E0412]: cannot find type `System` in this scope
     --> /substrate-node-template/runtime/src/lib.rs:257:22
      |
  257 |     type AccountStore = System;
      |                         ^^^^^^ not found in this scope

  error[E0412]: cannot find type `Runtime` in this scope
     --> /substrate-node-template/runtime/src/lib.rs:258:62
      |
  249 | impl pallet_balances::Config for Runtime {
      |     - help: you might be missing a type parameter: `<Runtime>`
  ...
  258 |     type WeightInfo = pallet_balances::weights::SubstrateWeight<Runtime>;
      |                                                                 ^^^^^^^ not found in this scope

  error[E0412]: cannot find type `Runtime` in this scope
     --> /substrate-node-template/runtime/src/lib.rs:261:33
      |
  261 | impl pallet_session::Config for Runtime {
      |                                 ^^^^^^^ not found in this scope

  error[E0412]: cannot find type `ValidatorSet` in this scope
     --> /substrate-node-template/runtime/src/lib.rs:263:26
      |
  263 |     type ShouldEndSession = ValidatorSet;
      |                             ^^^^^^^^^^^^ not found in this scope
      |
  help: consider importing this trait
      |
  9   | use frame_support::traits::ValidatorSet;
      |

  error[E0412]: cannot find type `ValidatorSet` in this scope
     --> /substrate-node-template/runtime/src/lib.rs:264:24
      |
  264 |     type SessionManager = ValidatorSet;
      |                           ^^^^^^^^^^^^ not found in this scope
      |
  help: consider importing this trait
      |
  9   | use frame_support::traits::ValidatorSet;
      |

  error[E0412]: cannot find type `Event` in this scope
     --> /substrate-node-template/runtime/src/lib.rs:265:15
      |
  265 |     type Event = Event;
      |                  ^^^^^
      |
  help: you might have meant to use the associated type
      |
  265 |     type Event = Self::Event;
      |                  ^^^^^^^^^^^
  help: consider importing one of these items
      |
  9   | use crate::pallet_template::Event;
      |
  9   | use frame_system::Event;
      |
  9   | use pallet_balances::Event;
      |
  9   | use pallet_grandpa::Event;
      |
        and 4 other candidates

  error[E0412]: cannot find type `ValidatorSet` in this scope
     --> /substrate-node-template/runtime/src/lib.rs:267:29
      |
  267 |     type NextSessionRotation = ValidatorSet;
      |                                ^^^^^^^^^^^^ not found in this scope
      |
  help: consider importing this trait
      |
  9   | use frame_support::traits::ValidatorSet;
      |

  error[E0412]: cannot find type `Runtime` in this scope
     --> /substrate-node-template/runtime/src/lib.rs:278:45
      |
  278 | impl pallet_transaction_payment::Config for Runtime {
      |                                             ^^^^^^^ not found in this scope

  error[E0412]: cannot find type `Balances` in this scope
     --> /substrate-node-template/runtime/src/lib.rs:279:45
      |
  62  | pub type Balance = u128;
      | ------------------------ similarly named type alias `Balance` defined here
  ...
  279 |     type OnChargeTransaction = CurrencyAdapter<Balances, ()>;
      |                                                ^^^^^^^^
      |
  help: a type alias with a similar name exists
      |
  279 |     type OnChargeTransaction = CurrencyAdapter<Balance, ()>;
      |                                                ^^^^^^^
  help: you might be missing a type parameter
      |
  278 | impl<Balances> pallet_transaction_payment::Config for Runtime {
      |     ^^^^^^^^^^

  error[E0412]: cannot find type `Runtime` in this scope
     --> /substrate-node-template/runtime/src/lib.rs:285:30
      |
  285 | impl pallet_sudo::Config for Runtime {
      |                              ^^^^^^^ not found in this scope

  error[E0412]: cannot find type `Event` in this scope
     --> /substrate-node-template/runtime/src/lib.rs:286:15
      |
  286 |     type Event = Event;
      |                  ^^^^^
      |
  help: you might have meant to use the associated type
      |
  286 |     type Event = Self::Event;
      |                  ^^^^^^^^^^^
  help: consider importing one of these items
      |
  9   | use crate::pallet_template::Event;
      |
  9   | use frame_system::Event;
      |
  9   | use pallet_balances::Event;
      |
  9   | use pallet_grandpa::Event;
      |
        and 4 other candidates

  error[E0412]: cannot find type `Call` in this scope
     --> /substrate-node-template/runtime/src/lib.rs:287:14
      |
  287 |     type Call = Call;
      |                 ^^^^
      |
  help: you might have meant to use the associated type
      |
  287 |     type Call = Self::Call;
      |                 ^^^^^^^^^^
  help: consider importing one of these items
      |
  9   | use crate::pallet_template::Call;
      |
  9   | use frame_system::Call;
      |
  9   | use pallet_aura::Call;
      |
  9   | use pallet_balances::Call;
      |
        and 8 other candidates

  error[E0412]: cannot find type `Runtime` in this scope
     --> /substrate-node-template/runtime/src/lib.rs:291:34
      |
  291 | impl pallet_template::Config for Runtime {
      |                                  ^^^^^^^ not found in this scope

  error[E0412]: cannot find type `Event` in this scope
     --> /substrate-node-template/runtime/src/lib.rs:292:15
      |
  292 |     type Event = Event;
      |                  ^^^^^
      |
  help: you might have meant to use the associated type
      |
  292 |     type Event = Self::Event;
      |                  ^^^^^^^^^^^
  help: consider importing one of these items
      |
  9   | use crate::pallet_template::Event;
      |
  9   | use frame_system::Event;
      |
  9   | use pallet_balances::Event;
      |
  9   | use pallet_grandpa::Event;
      |
        and 4 other candidates

  error[E0412]: cannot find type `Runtime` in this scope
     --> /substrate-node-template/runtime/src/lib.rs:330:33
      |
  329 | pub type SignedExtra = (
      |                     - help: you might be missing a type parameter: `<Runtime>`
  330 |     frame_system::CheckSpecVersion<Runtime>,
      |                                    ^^^^^^^ not found in this scope

  error[E0412]: cannot find type `Runtime` in this scope
     --> /substrate-node-template/runtime/src/lib.rs:331:31
      |
  329 | pub type SignedExtra = (
      |                     - help: you might be missing a type parameter: `<Runtime>`
  330 |     frame_system::CheckSpecVersion<Runtime>,
  331 |     frame_system::CheckTxVersion<Runtime>,
      |                                  ^^^^^^^ not found in this scope

  error[E0412]: cannot find type `Runtime` in this scope
     --> /substrate-node-template/runtime/src/lib.rs:332:29
      |
  329 | pub type SignedExtra = (
      |                     - help: you might be missing a type parameter: `<Runtime>`
  ...
  332 |     frame_system::CheckGenesis<Runtime>,
      |                                ^^^^^^^ not found in this scope

  error[E0412]: cannot find type `Runtime` in this scope
     --> /substrate-node-template/runtime/src/lib.rs:333:25
      |
  329 | pub type SignedExtra = (
      |                     - help: you might be missing a type parameter: `<Runtime>`
  ...
  333 |     frame_system::CheckEra<Runtime>,
      |                            ^^^^^^^ not found in this scope

  error[E0412]: cannot find type `Runtime` in this scope
     --> /substrate-node-template/runtime/src/lib.rs:334:27
      |
  329 | pub type SignedExtra = (
      |                     - help: you might be missing a type parameter: `<Runtime>`
  ...
  334 |     frame_system::CheckNonce<Runtime>,
      |                              ^^^^^^^ not found in this scope

  error[E0412]: cannot find type `Runtime` in this scope
     --> /substrate-node-template/runtime/src/lib.rs:335:28
      |
  329 | pub type SignedExtra = (
      |                     - help: you might be missing a type parameter: `<Runtime>`
  ...
  335 |     frame_system::CheckWeight<Runtime>,
      |                               ^^^^^^^ not found in this scope

  error[E0412]: cannot find type `Runtime` in this scope
     --> /substrate-node-template/runtime/src/lib.rs:336:55
      |
  329 | pub type SignedExtra = (
      |                     - help: you might be missing a type parameter: `<Runtime>`
  ...
  336 |     pallet_transaction_payment::ChargeTransactionPayment<Runtime>
      |                                                          ^^^^^^^ not found in this scope

  error[E0412]: cannot find type `Call` in this scope
     --> /substrate-node-template/runtime/src/lib.rs:339:68
      |
  339 | pub type UncheckedExtrinsic = generic::UncheckedExtrinsic<Address, Call, Signature, SignedExtra>;
      |                                                                    ^^^^ not found in this scope
      |
  help: consider importing one of these items
      |
  9   | use crate::pallet_template::Call;
      |
  9   | use frame_system::Call;
      |
  9   | use pallet_aura::Call;
      |
  9   | use pallet_balances::Call;
      |
        and 8 other candidates

  error[E0412]: cannot find type `Call` in this scope
     --> /substrate-node-template/runtime/src/lib.rs:341:66
      |
  341 | pub type CheckedExtrinsic = generic::CheckedExtrinsic<AccountId, Call, SignedExtra>;
      |                                                                  ^^^^ not found in this scope
      |
  help: consider importing one of these items
      |
  9   | use crate::pallet_template::Call;
      |
  9   | use frame_system::Call;
      |
  9   | use pallet_aura::Call;
      |
  9   | use pallet_balances::Call;
      |
        and 8 other candidates

  error[E0412]: cannot find type `Runtime` in this scope
     --> /substrate-node-template/runtime/src/lib.rs:344:2
      |
  343 | pub type Executive = frame_executive::Executive<
      |                   - help: you might be missing a type parameter: `<Runtime>`
  344 |     Runtime,
      |     ^^^^^^^ not found in this scope

  error[E0412]: cannot find type `Runtime` in this scope
     --> /substrate-node-template/runtime/src/lib.rs:346:29
      |
  343 | pub type Executive = frame_executive::Executive<
      |                   - help: you might be missing a type parameter: `<Runtime>`
  ...
  346 |     frame_system::ChainContext<Runtime>,
      |                                ^^^^^^^ not found in this scope

  error[E0412]: cannot find type `Runtime` in this scope
     --> /substrate-node-template/runtime/src/lib.rs:347:2
      |
  343 | pub type Executive = frame_executive::Executive<
      |                   - help: you might be missing a type parameter: `<Runtime>`
  ...
  347 |     Runtime,
      |     ^^^^^^^ not found in this scope

  error[E0412]: cannot find type `AllPallets` in this scope
     --> /substrate-node-template/runtime/src/lib.rs:348:2
      |
  343 | pub type Executive = frame_executive::Executive<
      |                   - help: you might be missing a type parameter: `<AllPallets>`
  ...
  348 |     AllPallets,
      |     ^^^^^^^^^^ not found in this scope

  error[E0412]: cannot find type `Runtime` in this scope
     --> /substrate-node-template/runtime/src/lib.rs:352:31
      |
  352 |     impl sp_api::Core<Block> for Runtime {
      |                                  ^^^^^^^ not found in this scope

  error[E0412]: cannot find type `Runtime` in this scope
     --> /substrate-node-template/runtime/src/lib.rs:366:35
      |
  366 |     impl sp_api::Metadata<Block> for Runtime {
      |                                      ^^^^^^^ not found in this scope

  error[E0412]: cannot find type `Runtime` in this scope
     --> /substrate-node-template/runtime/src/lib.rs:372:49
      |
  372 |     impl sp_block_builder::BlockBuilder<Block> for Runtime {
      |                                                    ^^^^^^^ not found in this scope

  error[E0412]: cannot find type `Runtime` in this scope
     --> /substrate-node-template/runtime/src/lib.rs:397:75
      |
  397 |     impl sp_transaction_pool::runtime_api::TaggedTransactionQueue<Block> for Runtime {
      |                                                                              ^^^^^^^ not found in this scope

  error[E0412]: cannot find type `Runtime` in this scope
     --> /substrate-node-template/runtime/src/lib.rs:406:49
      |
  406 |     impl sp_offchain::OffchainWorkerApi<Block> for Runtime {
      |                                                    ^^^^^^^ not found in this scope

  error[E0412]: cannot find type `Runtime` in this scope
     --> /substrate-node-template/runtime/src/lib.rs:412:53
      |
  412 |     impl sp_consensus_aura::AuraApi<Block, AuraId> for Runtime {
      |                                                        ^^^^^^^ not found in this scope

  error[E0412]: cannot find type `Runtime` in this scope
     --> /substrate-node-template/runtime/src/lib.rs:422:42
      |
  422 |     impl sp_session::SessionKeys<Block> for Runtime {
      |                                             ^^^^^^^ not found in this scope

  error[E0412]: cannot find type `Runtime` in this scope
     --> /substrate-node-template/runtime/src/lib.rs:434:44
      |
  434 |     impl fg_primitives::GrandpaApi<Block> for Runtime {
      |                                               ^^^^^^^ not found in this scope

  error[E0412]: cannot find type `Runtime` in this scope
     --> /substrate-node-template/runtime/src/lib.rs:460:82
      |
  460 |     impl frame_system_rpc_runtime_api::AccountNonceApi<Block, AccountId, Index> for Runtime {
      |                                                                                     ^^^^^^^ not found in this scope

  error[E0412]: cannot find type `Runtime` in this scope
     --> /substrate-node-template/runtime/src/lib.rs:466:93
      |
  466 |     impl pallet_transaction_payment_rpc_runtime_api::TransactionPaymentApi<Block, Balance> for Runtime {
      |                                                                                                ^^^^^^^ not found in this scope

  warning: unused imports: `AccountIdLookup`, `BlakeTwo256`, `Block as BlockT`, `IdentifyAccount`, `NumberFor`, `Verify`
    --> /substrate-node-template/runtime/src/lib.rs:26:2
     |
  26 |     AccountIdLookup, BlakeTwo256, Block as BlockT, Verify, IdentifyAccount, NumberFor, OpaqueKeys
     |     ^^^^^^^^^^^^^^^  ^^^^^^^^^^^  ^^^^^^^^^^^^^^^  ^^^^^^  ^^^^^^^^^^^^^^^  ^^^^^^^^^
     |
     = note: `#[warn(unused_imports)]` on by default

  error: duplicate lang item in crate `sp_io` (which `sp_application_crypto` depends on): `panic_impl`.
    |
    = note: the lang item is first defined in crate `sp_io` (which `sp_application_crypto` depends on)
    = note: first definition in `sp_io` loaded from /substrate-node-template/target/release/wbuild/node-template-runtime/target/wasm32-unknown-unknown/release/deps/libsp_io-22a9eebc1df948ae.rmeta
    = note: second definition in `sp_io` loaded from /substrate-node-template/target/release/wbuild/node-template-runtime/target/wasm32-unknown-unknown/release/deps/libsp_io-17efdc862cba2dc7.rmeta

  error: duplicate lang item in crate `sp_io` (which `sp_application_crypto` depends on): `oom`.
    |
    = note: the lang item is first defined in crate `sp_io` (which `sp_application_crypto` depends on)
    = note: first definition in `sp_io` loaded from /substrate-node-template/target/release/wbuild/node-template-runtime/target/wasm32-unknown-unknown/release/deps/libsp_io-22a9eebc1df948ae.rmeta
    = note: second definition in `sp_io` loaded from /substrate-node-template/target/release/wbuild/node-template-runtime/target/wasm32-unknown-unknown/release/deps/libsp_io-17efdc862cba2dc7.rmeta

  error[E0599]: no method named `create_extrinsics` found for struct `InherentData` in the current scope
     --> /substrate-node-template/runtime/src/lib.rs:382:9
      |
  382 |             data.create_extrinsics()
      |                  ^^^^^^^^^^^^^^^^^ method not found in `InherentData`

  error[E0599]: no method named `check_extrinsics` found for struct `InherentData` in the current scope
     --> /substrate-node-template/runtime/src/lib.rs:389:9
      |
  389 |             data.check_extrinsics(&block)
      |                  ^^^^^^^^^^^^^^^^ method not found in `InherentData`

  error[E0283]: type annotations needed
    --> /substrate-node-template/runtime/src/lib.rs:89:2
     |
  89 | /     impl_opaque_keys! {
  90 | |         pub struct SessionKeys {
  91 | |             pub aura: Aura,
  92 | |             pub grandpa: Grandpa,
  93 | |         }
  94 | |     }
     | |_____^ cannot infer type
     |
     = note: cannot satisfy `_: core::default::Default`
     = note: required by `core::default::Default::default`
     = note: this error originates in the derive macro `Default` (in Nightly builds, run with -Z macro-backtrace for more info)

  error: aborting due to 74 previous errors; 1 warning emitted

  Some errors have detailed explanations: E0252, E0283, E0412, E0433, E0599.
  For more information about an error, try `rustc --explain E0252`.
  error: could not compile `node-template-runtime`

  To learn more, run the command again with --verbose.
warning: build failed, waiting for other jobs to finish...
error: build failed

Make sure we don't run out of validators when reporting offences.

Currently, if the ImOnline pallet reports validators offline it can lead to 0 validators in the active set.

This is impossible to recover from without a hard fork.

It would be nice to have a way around this. For example - don't remove validators beyond MinValidators.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.