mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-13 19:51:05 +00:00
MMR: impl TypeInfo for some structures (#12423)
* BEEFY client: avoid unnecessary clone * MMR: impl TypeInfo for some structures
This commit is contained in:
@@ -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",
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user