Skip to content
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
a0a8dc0
Attempt to point to new dependencies. Weird compile errors. Will revi…
JoshOrndorff May 3, 2021
b37ecb1
geting closer
JoshOrndorff May 4, 2021
0a04b63
More updates to Cargo.lock. Back to weird compile errors.
JoshOrndorff May 4, 2021
c6c3ac8
patch author inherent (even though it will be pruned soon)
JoshOrndorff May 4, 2021
ac7405c
EVM to right version
JoshOrndorff May 4, 2021
c2d1699
Temporarily disable author inherent, to work around some errors.
JoshOrndorff May 4, 2021
f0d2dcf
change scale codec dep made a difference
JoshOrndorff May 4, 2021
345efc2
Moar progress (reenable author inherent)
JoshOrndorff May 4, 2021
8c03178
tiny comment improvement
JoshOrndorff May 4, 2021
c2ef3ec
Fix pallet mocks
JoshOrndorff May 4, 2021
cb4697d
Fix long-standing sudo omission - no noticeable differente though. weird
JoshOrndorff May 4, 2021
4467989
It was ParachainSystem that needed Event<T> Thanks @thiolliere
JoshOrndorff May 4, 2021
432ad4d
runtime compiles
JoshOrndorff May 4, 2021
0201056
everything compiles (still some cleanup)
JoshOrndorff May 4, 2021
7a22bfb
Author inherent from nimbus
JoshOrndorff May 4, 2021
114d10d
bump cumulonimbus
JoshOrndorff May 4, 2021
a43fb57
🎵 bumpity-bump-bump ⛄
JoshOrndorff May 4, 2021
c76f23f
remove rand hack
JoshOrndorff May 4, 2021
66f9093
Author slot filter from nimbus
JoshOrndorff May 5, 2021
b5d8c5e
Oops, update client-side too
JoshOrndorff May 5, 2021
5da1a77
prune dead code and dealias
JoshOrndorff May 5, 2021
7a6b95e
Bump some versions and update types so we don't get confused.
JoshOrndorff May 5, 2021
acb46f0
Implement runtime api (but don't call it yet)
JoshOrndorff May 5, 2021
818eba1
s/author_inherent/pallet_author_inherent/
notlesh May 5, 2021
cae4326
checkpoint: nimbus poc worker.
JoshOrndorff May 5, 2021
a445342
finish temporary nimbus poc worker (got some wacky naming going on th…
JoshOrndorff May 5, 2021
4b77cd4
Hack command.rs to work with polkadot launch
JoshOrndorff May 5, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Moar progress (reenable author inherent)
  • Loading branch information
JoshOrndorff committed May 4, 2021
commit 345efc2a5001d8ab7fd0fe88bc98c98bec888116
2 changes: 2 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions pallets/author-filter/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ parity-scale-codec = { version = "2.0.0", default-features = false, features = [
frame-support = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "rococo-v1" }
frame-system = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "rococo-v1" }
sp-core = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "rococo-v1" }
sp-std = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "rococo-v1" }
sp-runtime = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "rococo-v1" }
author-inherent = { path = "../author-inherent", default-features = false }
parachain-staking = { path = "../parachain-staking", default-features = false }
Expand Down
3 changes: 1 addition & 2 deletions pallets/author-filter/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,10 @@ pub mod pallet {
use frame_support::log;
use frame_support::pallet_prelude::*;
use frame_support::traits::Randomness;
use frame_support::traits::Vec;
use frame_system::pallet_prelude::*;
use sp_core::H256;
use sp_runtime::Percent;

use sp_std::vec::Vec;
/// The Author Filter pallet
#[pallet::pallet]
pub struct Pallet<T>(PhantomData<T>);
Expand Down
6 changes: 3 additions & 3 deletions runtime/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ precompiles = { path = "precompiles/", default-features = false }
account = { path = "account/", default-features = false }
pallet-ethereum-chain-id = { path = "../pallets/ethereum-chain-id", default-features = false }
parachain-staking = { path = "../pallets/parachain-staking", default-features = false }
# author-inherent = { path = "../pallets/author-inherent", default-features = false }
author-inherent = { path = "../pallets/author-inherent", default-features = false }
pallet-author-filter = { path = "../pallets/author-filter", default-features = false }

# Substrate dependencies
Expand Down Expand Up @@ -109,15 +109,15 @@ std = [
"pallet-democracy/std",
"pallet-scheduler/std",
"pallet-collective/std",

"author-inherent/std",
"moonbeam-extensions-evm/std",
"parachain-info/std",
"cumulus-pallet-parachain-system/std",
"cumulus-primitives-core/std",
"account/std",
"parachain-staking/std",
"pallet-author-filter/std",
] # "author-inherent/std",
]

# Will be enabled by the `wasm-builder` when building the runtime for WASM.
runtime-wasm = [] # "cumulus-upward-message/runtime-wasm",
Expand Down
25 changes: 9 additions & 16 deletions runtime/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -443,7 +443,6 @@ impl cumulus_pallet_parachain_system::Config for Runtime {
type OnValidationData = ();
type SelfParaId = ParachainInfo;
type DownwardMessageHandlers = ();
type HrmpMessageHandlers = ();
}

impl parachain_info::Config for Runtime {}
Expand Down Expand Up @@ -487,16 +486,14 @@ impl parachain_staking::Config for Runtime {
type MinNominatorStk = MinNominatorStk;
}

// Try to disable this pallet to make the runtime compile.

// impl author_inherent::Config for Runtime {
// type EventHandler = ParachainStaking;
// // We cannot run the full filtered author checking logic in the preliminary check because it
// // depends on entropy from the relay chain. Instead we just make sure that the author is staked
// // in the preliminary check. The final check including the filtering happens during execution.
// type PreliminaryCanAuthor = ParachainStaking;
// type FinalCanAuthor = AuthorFilter;
// }
impl author_inherent::Config for Runtime {
type EventHandler = ParachainStaking;
// We cannot run the full filtered author checking logic in the preliminary check because it
// depends on entropy from the relay chain. Instead we just make sure that the author is staked
// in the preliminary check. The final check including the filtering happens during execution.
type PreliminaryCanAuthor = ParachainStaking;
type FinalCanAuthor = AuthorFilter;
}

impl pallet_author_filter::Config for Runtime {
type Event = Event;
Expand Down Expand Up @@ -531,7 +528,7 @@ construct_runtime! {
// The order matters here. Inherents will be included in the order specified here.
// Concretely we need the author inherent to come after the parachain_upgrade inherent.
AuthorInherent: author_inherent::{Pallet, Call, Storage, Inherent},
// AuthorFilter: pallet_author_filter::{Pallet, Call, Storage, Event<T>,}
AuthorFilter: pallet_author_filter::{Pallet, Call, Storage, Event<T>,}
}
}

Expand Down Expand Up @@ -1027,10 +1024,6 @@ impl_runtime_apis! {
Ethereum::current_transaction_statuses()
)
}

fn current_block_gas_limit() -> U256 {
<Runtime as pallet_evm::Config>::BlockGasLimit::get()
}
}

impl pallet_transaction_payment_rpc_runtime_api::TransactionPaymentApi<Block, Balance>
Expand Down