/// Updates the `eth2` field of our local ENR.
Updates the `eth2` field of our local ENR.
Updates the ` eth2 ` field of our local ENR .
pub fn update_eth2_enr(&mut self, enr_fork_id: EnrForkId) {
        let _ = self
            .discv5
            .enr_insert(ETH2_ENR_KEY, enr_fork_id)
            .map_err(|e| {
                warn!(
                    self.log,
                    "Could not update eth2 ENR field";
                    "error" => format!("{:?}", e)
                )
            });
        // replace the global version with discovery version
        *self.network_globals.local_enr.write() = self.discv5.local_enr();
    }
pub fn update_eth2_enr ( & mut self , enr_fork_id : EnrForkId ) { let _ = self . discv5 . enr_insert ( ETH2_ENR_KEY , enr_fork_id ) . map_err ( | e | { warn ! ( self log " " " " format ( " " e ) ) } ) ; // replace the global version with discovery version * self . network_globals . local_enr . write ( ) = self . discv5 . local_enr ( ) ; }
Updates the `eth2` field of our local ENR.
Updates the ` eth2 ` field of our local ENR .
&mut self
enr_fork_id
EnrForkId