Skip to content

Commit

Permalink
Use #2190 fix
Browse files Browse the repository at this point in the history
  • Loading branch information
davxy committed Nov 8, 2023
1 parent 6ea2b14 commit bb16327
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 10 deletions.
9 changes: 8 additions & 1 deletion substrate/bin/node-template/node/src/chain_spec.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,14 @@ use sp_runtime::traits::{IdentifyAccount, Verify};
// const STAGING_TELEMETRY_URL: &str = "wss://telemetry.polkadot.io/submit/";

/// Specialized `ChainSpec`. This is a specialization of the general Substrate ChainSpec type.
pub type ChainSpec = sc_service::GenericChainSpec<RuntimeGenesisConfig>;
pub type ChainSpec = sc_service::GenericChainSpec<
RuntimeGenesisConfig,
Option<()>,
(
sp_crypto_ec_utils::bls12_381::host_calls::HostFunctions,
sp_crypto_ec_utils::ed_on_bls12_381_bandersnatch::host_calls::HostFunctions,
),
>;

/// Generate a crypto pair from seed.
pub fn get_from_seed<TPublic: Public>(seed: &str) -> <TPublic::Pair as Pair>::Public {
Expand Down
8 changes: 0 additions & 8 deletions substrate/frame/sassafras/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -327,14 +327,6 @@ pub mod pallet {
config: None,
};
Self::deposit_next_epoch_descriptor_digest(next_epoch);

// #[cfg(feature = "construct-dummy-ring-context")]
// {
// debug!(target: LOG_TARGET, "Constructing dummy ring context");
// let ring_ctx = vrf::RingContext::new_testing();
// RingContext::<T>::put(ring_ctx);
// Self::update_ring_verifier(&Self::next_authorities().into_inner());
// }
}

let randomness_output = claim
Expand Down
2 changes: 1 addition & 1 deletion substrate/frame/sassafras/src/mock.rs
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ pub fn new_test_ext_with_pairs(

if with_ring_context {
ext.execute_with(|| {
log::debug!(target: LOG_TARGET, "Building new testing ring context");
log::debug!(target: LOG_TARGET, "Building testing ring context");
let ring_ctx = vrf::RingContext::new_testing();
RingContext::<Test>::set(Some(ring_ctx.clone()));
Sassafras::update_ring_verifier(&authorities);
Expand Down

0 comments on commit bb16327

Please sign in to comment.