Manual seal delayed finalize (#13999)

* up

* up

* added test

* remove unncessary dep

* cargo fmt

* cargo fmt

* up

* Update client/consensus/manual-seal/src/lib.rs

Co-authored-by: Bastian Köcher <git@kchr.de>

* fix test

* cargo fmt

* added docs

* updated doc

---------

Co-authored-by: Bastian Köcher <git@kchr.de>
Co-authored-by: parity-processbot <>
This commit is contained in:
Shunsuke Watanabe
2023-05-03 05:40:46 +09:00
committed by GitHub
parent 793f04fc05
commit 57f2468e31
4 changed files with 160 additions and 7 deletions
@@ -160,10 +160,11 @@ pub fn send_result<T: std::fmt::Debug>(
}
}
} else {
// instant seal doesn't report errors over rpc, simply log them.
// Sealing/Finalization with no RPC sender such as instant seal or delayed finalize doesn't
// report errors over rpc, simply log them.
match result {
Ok(r) => log::info!("Instant Seal success: {:?}", r),
Err(e) => log::error!("Instant Seal encountered an error: {}", e),
Ok(r) => log::info!("Consensus with no RPC sender success: {:?}", r),
Err(e) => log::error!("Consensus with no RPC sender encountered an error: {}", e),
}
}
}