Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

companion for #11173 #5264

Merged
merged 3 commits into from
Apr 7, 2022
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion utils/staking-miner/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ edition = "2021"
codec = { package = "parity-scale-codec", version = "3.0.0" }
clap = { version = "3.1", features = ["derive", "env"] }
tracing-subscriber = { version = "0.3.10", features = ["env-filter"] }
jsonrpsee = { version = "0.8", features = ["ws-client", "macros"] }
jsonrpsee = { version = "0.10.1", features = ["ws-client", "macros"] }
log = "0.4.16"
paste = "1.0.7"
serde = "1.0.136"
Expand Down
7 changes: 4 additions & 3 deletions utils/staking-miner/src/rpc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -72,24 +72,25 @@ pub trait RpcApi {
///
/// See [`TransactionStatus`](sc_transaction_pool_api::TransactionStatus) for details on
/// transaction life cycle.
//
// TODO: https://github.com/paritytech/jsonrpsee/issues/698.
#[subscription(
name = "author_submitAndWatchExtrinsic" => "author_extrinsicUpdate",
item = TransactionStatus<Hash, Hash>,
unsubscribe = "author_unwatchExtrinsic",
item = TransactionStatus<Hash, Hash>
)]
fn watch_extrinsic(&self, bytes: &Bytes) -> RpcResult<()>;

/// New head subscription.
#[subscription(
name = "chain_subscribeNewHeads" => "newHead",
unsubscribe = "chain_unsubscribeNewHeads",
item = Header
)]
fn subscribe_new_heads(&self) -> RpcResult<()>;

/// Finalized head subscription.
#[subscription(
name = "chain_subscribeFinalizedHeads" => "chain_finalizedHead",
unsubscribe = "chain_unsubscribeFinalizedHeads",
item = Header
)]
fn subscribe_finalized_heads(&self) -> RpcResult<()>;
Expand Down