companion for #10945 (#5012)

* companion for #10945

* fix build

* fix bad merge

* update lockfile for {"substrate"}

Co-authored-by: parity-processbot <>
This commit is contained in:
Niklas Adolfsson
2022-03-04 00:26:05 +01:00
committed by GitHub
parent 3d5e9b3c9c
commit 8ea9b676a9
8 changed files with 175 additions and 180 deletions
+2 -2
View File
@@ -165,7 +165,7 @@ macro_rules! monitor_cmd_for { ($runtime:tt) => { paste::paste! {
}
// mine a solution, and run feasibility check on it as well.
let (raw_solution, witness) = match crate::mine_with::<Runtime>(&config.solver, &mut ext, true) {
let raw_solution = match crate::mine_with::<Runtime>(&config.solver, &mut ext, true) {
Ok(r) => r,
Err(err) => {
let _ = tx.send(err.into());
@@ -197,7 +197,7 @@ macro_rules! monitor_cmd_for { ($runtime:tt) => { paste::paste! {
era.death(current_block.into()),
);
let extrinsic = ext.execute_with(|| create_uxt(raw_solution, witness, signer.clone(), nonce, tip, era));
let extrinsic = ext.execute_with(|| create_uxt(raw_solution, signer.clone(), nonce, tip, era));
let bytes = sp_core::Bytes(extrinsic.encode());
let mut tx_subscription = match rpc.watch_extrinsic(&bytes).await {