mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-12 13:31:10 +00:00
committed by
Bastian Köcher
parent
849e824652
commit
6679c8b051
@@ -28,7 +28,7 @@ use crate::config::build_multiaddr;
|
||||
use log::trace;
|
||||
use crate::chain::FinalityProofProvider;
|
||||
use client::{
|
||||
self, ClientInfo, BlockchainEvents, BlockImportNotification, FinalityNotifications,
|
||||
self, ClientInfo, BlockchainEvents, BlockImportNotification, FinalityNotifications, ImportNotifications,
|
||||
FinalityNotification, LongestChain
|
||||
};
|
||||
use client::error::Result as ClientResult;
|
||||
@@ -189,6 +189,13 @@ impl PeersClient {
|
||||
}
|
||||
}
|
||||
|
||||
pub fn import_notification_stream(&self) -> ImportNotifications<Block>{
|
||||
match *self {
|
||||
PeersClient::Full(ref client, ref _backend) => client.import_notification_stream(),
|
||||
PeersClient::Light(ref client, ref _backend) => client.import_notification_stream(),
|
||||
}
|
||||
}
|
||||
|
||||
pub fn finalize_block(
|
||||
&self,
|
||||
id: BlockId<Block>,
|
||||
|
||||
Reference in New Issue
Block a user