MMR: impl TypeInfo for some structures (#12423)

* BEEFY client: avoid unnecessary clone

* MMR: impl TypeInfo for some structures
This commit is contained in:
Serban Iorga
2022-10-05 17:11:50 +03:00
committed by GitHub
parent b135a0fae4
commit 6f9ae78d30
6 changed files with 9 additions and 6 deletions
+1 -1
View File
@@ -84,7 +84,7 @@ impl From<Error> for JsonRpseeError {
// Provides RPC methods for interacting with BEEFY.
#[rpc(client, server)]
pub trait BeefyApi<Notification, Hash> {
/// Returns the block most recently finalized by BEEFY, alongside side its justification.
/// Returns the block most recently finalized by BEEFY, alongside its justification.
#[subscription(
name = "beefy_subscribeJustifications" => "beefy_justifications",
unsubscribe = "beefy_unsubscribeJustifications",
+1 -1
View File
@@ -508,7 +508,7 @@ where
if let Err(e) = self.backend.append_justification(
BlockId::Number(block_num),
(BEEFY_ENGINE_ID, finality_proof.clone().encode()),
(BEEFY_ENGINE_ID, finality_proof.encode()),
) {
error!(target: "beefy", "🥩 Error {:?} on appending justification: {:?}", e, finality_proof);
}