Unverified Commit 2c22f3c1 authored by Andreas Doerr's avatar Andreas Doerr Committed by GitHub
Browse files

Use BeefyParams (#3013)

parent 6437b7b1
Pipeline #137886 passed with stages
in 29 minutes and 46 seconds
...@@ -458,7 +458,7 @@ checksum = "6736e2428df2ca2848d846c43e88745121a6654696e349ce0054a420815a7409" ...@@ -458,7 +458,7 @@ checksum = "6736e2428df2ca2848d846c43e88745121a6654696e349ce0054a420815a7409"
[[package]] [[package]]
name = "beefy-gadget" name = "beefy-gadget"
version = "0.1.0" version = "0.1.0"
source = "git+https://github.com/paritytech/grandpa-bridge-gadget?branch=master#bbe388331d9e80ec282b53a15c2dce56b342cefd" source = "git+https://github.com/paritytech/grandpa-bridge-gadget?branch=master#6008d67f94262f955017fad3c1648e3206756a60"
dependencies = [ dependencies = [
"beefy-primitives", "beefy-primitives",
"futures 0.3.14", "futures 0.3.14",
...@@ -486,7 +486,7 @@ dependencies = [ ...@@ -486,7 +486,7 @@ dependencies = [
[[package]] [[package]]
name = "beefy-gadget-rpc" name = "beefy-gadget-rpc"
version = "0.1.0" version = "0.1.0"
source = "git+https://github.com/paritytech/grandpa-bridge-gadget?branch=master#bbe388331d9e80ec282b53a15c2dce56b342cefd" source = "git+https://github.com/paritytech/grandpa-bridge-gadget?branch=master#6008d67f94262f955017fad3c1648e3206756a60"
dependencies = [ dependencies = [
"beefy-gadget", "beefy-gadget",
"beefy-primitives", "beefy-primitives",
...@@ -507,7 +507,7 @@ dependencies = [ ...@@ -507,7 +507,7 @@ dependencies = [
[[package]] [[package]]
name = "beefy-primitives" name = "beefy-primitives"
version = "0.1.0" version = "0.1.0"
source = "git+https://github.com/paritytech/grandpa-bridge-gadget?branch=master#bbe388331d9e80ec282b53a15c2dce56b342cefd" source = "git+https://github.com/paritytech/grandpa-bridge-gadget?branch=master#6008d67f94262f955017fad3c1648e3206756a60"
dependencies = [ dependencies = [
"parity-scale-codec", "parity-scale-codec",
"sp-api", "sp-api",
...@@ -4535,7 +4535,7 @@ dependencies = [ ...@@ -4535,7 +4535,7 @@ dependencies = [
[[package]] [[package]]
name = "pallet-beefy" name = "pallet-beefy"
version = "0.1.0" version = "0.1.0"
source = "git+https://github.com/paritytech/grandpa-bridge-gadget?branch=master#bbe388331d9e80ec282b53a15c2dce56b342cefd" source = "git+https://github.com/paritytech/grandpa-bridge-gadget?branch=master#6008d67f94262f955017fad3c1648e3206756a60"
dependencies = [ dependencies = [
"beefy-primitives", "beefy-primitives",
"frame-support", "frame-support",
......
...@@ -974,14 +974,18 @@ pub fn new_full<RuntimeApi, Executor>( ...@@ -974,14 +974,18 @@ pub fn new_full<RuntimeApi, Executor>(
// We currently only run the BEEFY gadget on the Rococo and Wococo testnets. // We currently only run the BEEFY gadget on the Rococo and Wococo testnets.
if !disable_beefy && (chain_spec.is_rococo() || chain_spec.is_wococo()) { if !disable_beefy && (chain_spec.is_rococo() || chain_spec.is_wococo()) {
let gadget = beefy_gadget::start_beefy_gadget::<_, beefy_primitives::ecdsa::AuthorityPair, _, _, _, _>( let beefy_params = beefy_gadget::BeefyParams {
client.clone(), client: client.clone(),
keystore_opt.clone(), backend: backend.clone(),
network.clone(), key_store: keystore_opt.clone(),
beefy_link, network: network.clone(),
network.clone(), signed_commitment_sender: beefy_link,
if chain_spec.is_wococo() { 4 } else { 8 }, min_block_delta: if chain_spec.is_wococo() { 4 } else { 8 },
prometheus_registry.clone() prometheus_registry: prometheus_registry.clone(),
};
let gadget = beefy_gadget::start_beefy_gadget::<_, beefy_primitives::ecdsa::AuthorityPair, _, _, _>(
beefy_params
); );
// Wococo's purpose is to be a testbed for BEEFY, so if it fails we'll // Wococo's purpose is to be a testbed for BEEFY, so if it fails we'll
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment