/// Add an ENR to the routing table of the discovery mechanism.
Add an ENR to the routing table of the discovery mechanism.
Add an ENR to the routing table of the discovery mechanism .
pub fn add_enr(&mut self, enr: Enr) {
        // add the enr to seen caches
        self.cached_enrs.put(enr.peer_id(), enr.clone());
        if let Err(e) = self.discv5.add_enr(enr) {
            debug!(
                self.log,
                "Could not add peer to the local routing table";
                "error" => e.to_string()
            )
        }
    }
pub fn add_enr ( & mut self , enr : Enr ) { // add the enr to seen caches self . cached_enrs . put ( enr . peer_id ( ) , enr . clone ( ) ) ; if let Err ( e ) = self . discv5 . add_enr ( enr ) { debug ! ( self log " " " " e to_string ( ) ) } }
Add an ENR to the routing table of the discovery mechanism.
Add an ENR to the routing table of the discovery mechanism .
&mut self
enr
Enr