pub fn peer_negotiated<T: BlockTree>(
        &mut self,
        id: PeerId,
        height: Height,
        services: ServiceFlags,
        link: Link,
        clock: &impl Clock,
        tree: &T,
    ) {
        if link.is_outbound() && !services.has(REQUIRED_SERVICES) {
            return;
        }
        self.register(id, height, link);
        self.upstream.negotiate(id);
        self.sync(clock.local_time(), tree);
    }
/// Called when a new peer was negotiated.
Called when a new peer was negotiated.
Called when a new peer was negotiated .
pub fn peer_negotiated<T: BlockTree>(
        &mut self,
        id: PeerId,
        height: Height,
        services: ServiceFlags,
        link: Link,
        clock: &impl Clock,
        tree: &T,
    ) {
        if link.is_outbound() && !services.has(REQUIRED_SERVICES) {
            return;
        }
        self.register(id, height, link);
        self.upstream.negotiate(id);
        self.sync(clock.local_time(), tree);
    }
pub fn peer_negotiated < T : BlockTree > ( & mut self , id : PeerId , height : Height , services : ServiceFlags , link : Link , clock : & impl Clock , tree : & T , ) { if link . is_outbound ( ) && ! services . has ( REQUIRED_SERVICES ) { return ; } self . register ( id , height , link ) ; self . upstream . negotiate ( id ) ; self . sync ( clock . local_time ( ) , tree ) ; }
Called when a new peer was negotiated.
Called when a new peer was negotiated .
&mut self
id
PeerId
height
Height
services
ServiceFlags
link
Link
clock
&impl Clock
tree
&T