Skip to content
This repository has been archived by the owner on Jul 28, 2023. It is now read-only.

SBP M2 review #183

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
1 change: 1 addition & 0 deletions pallets/groupsign/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,7 @@ pub mod pallet {
));
post_info.actual_weight
}
// SPB review: shouldn't the error be returned (w/ groupsign call weight added) ?
Err(err) => err.post_info.actual_weight,
};

Expand Down
5 changes: 4 additions & 1 deletion runtime/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -515,6 +515,9 @@ impl pallet_author_mapping::Config for Runtime {
// Filter slots between collators (in nutshell author slot filter pallet chooses who's producer for each slot).
impl pallet_author_slot_filter::Config for Runtime {
type Event = Event;
// SBP review: pallet-randomness-collective-flip does not provide a safe source of randomness.
// PParachains will have a reliable source of randomness from the relay chain consensus (see https://github.com/paritytech/cumulus/issues/463).
//
type RandomnessSource = RandomnessCollectiveFlip;
type PotentialAuthors = ParachainStaking;
}
Expand Down Expand Up @@ -1020,7 +1023,7 @@ construct_runtime!(
NodeBlock = generic::Block<Header, sp_runtime::OpaqueExtrinsic>,
UncheckedExtrinsic = UncheckedExtrinsic
{

// SBP review: specify an enum value for all variant
System: frame_system::{Pallet, Call, Config, Storage, Event<T>},
RandomnessCollectiveFlip: pallet_randomness_collective_flip::{Pallet, Storage},
Timestamp: pallet_timestamp::{Pallet, Call, Storage, Inherent},
Expand Down