mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-27 08:07:58 +00:00
Support the subscription of every imported block (#13372)
* Support the subscription of every import block Close #13315 * Clean up any closed block import notification sinks * Apply review suggestions * Nit * `every_block_import_notification_sinks` -> `every_import_notification_sinks` * Apply review suggestions
This commit is contained in:
@@ -59,10 +59,16 @@ pub trait BlockOf {
|
||||
|
||||
/// A source of blockchain events.
|
||||
pub trait BlockchainEvents<Block: BlockT> {
|
||||
/// Get block import event stream. Not guaranteed to be fired for every
|
||||
/// imported block.
|
||||
/// Get block import event stream.
|
||||
///
|
||||
/// Not guaranteed to be fired for every imported block, only fired when the node
|
||||
/// has synced to the tip or there is a re-org. Use `every_import_notification_stream()`
|
||||
/// if you want a notification of every imported block regardless.
|
||||
fn import_notification_stream(&self) -> ImportNotifications<Block>;
|
||||
|
||||
/// Get a stream of every imported block.
|
||||
fn every_import_notification_stream(&self) -> ImportNotifications<Block>;
|
||||
|
||||
/// Get a stream of finality notifications. Not guaranteed to be fired for every
|
||||
/// finalized block.
|
||||
fn finality_notification_stream(&self) -> FinalityNotifications<Block>;
|
||||
|
||||
Reference in New Issue
Block a user