fn apply_updates(&mut self, from: PublicKey, update_index: u64, data: &[ReplicatedData]) {
        trace!("got updates {}", data.len());
        // TODO we need to punish/spam resist here
        // sig verify the whole update and slash anyone who sends a bad update
        for v in data {
            self.insert(v.clone());
        }
        *self.remote.entry(from).or_insert(update_index) = update_index;
    }
/// Apply updates that we received from the identity `from`
/// # Arguments
/// * `from` - identity of the sender of the updates
/// * `update_index` - the number of updates that `from` has completed and this set of `data` represents
/// * `data` - the update data
Apply updates that we received from the identity `from`
Apply updates that we received from the identity ` from `
fn apply_updates(&mut self, from: PublicKey, update_index: u64, data: &[ReplicatedData]) {
        trace!("got updates {}", data.len());
        // TODO we need to punish/spam resist here
        // sig verify the whole update and slash anyone who sends a bad update
        for v in data {
            self.insert(v.clone());
        }
        *self.remote.entry(from).or_insert(update_index) = update_index;
    }
fn apply_updates ( & mut self , from : PublicKey , update_index : u64 , data : & [ ReplicatedData ] ) { trace ! ( " " data len ( ) ) ; // TODO we need to punish/spam resist here // sig verify the whole update and slash anyone who sends a bad update for v in data { self . insert ( v . clone ( ) ) ; } * self . remote . entry ( from ) . or_insert ( update_index ) = update_index ; }
Apply updates that we received from the identity `from`
Apply updates that we received from the identity ` from `
&mut self
from
PublicKey
update_index
u64
data
&[ReplicatedData]
&mut self
from
PublicKey
update_index
u64
data
&[ReplicatedData]