fn add(&mut self, height: u64, bhash: &'a C::Hash, weight: Weight) {
        self.0
            .entry(height)
            .and_modify(|tally| tally.add(bhash, weight))
            .or_insert_with(|| Tally::new(bhash, weight));
    }
/// Adds an entry to the tally at the specified `height`.
Adds an entry to the tally at the specified `height`.
Adds an entry to the tally at the specified ` height ` .
fn add(&mut self, height: u64, bhash: &'a C::Hash, weight: Weight) {
        self.0
            .entry(height)
            .and_modify(|tally| tally.add(bhash, weight))
            .or_insert_with(|| Tally::new(bhash, weight));
    }
fn add ( & mut self , height : u64 , bhash : & ' a C :: Hash , weight : Weight ) { self . 0 . entry ( height ) . and_modify ( | tally | tally . add ( bhash , weight ) ) . or_insert_with ( | | Tally :: new ( bhash , weight ) ) ; }
Adds an entry to the tally at the specified `height`.
Adds an entry to the tally at the specified ` height ` .
&mut self
height
u64
bhash
&'a C::Hash
weight
Weight
&mut self
height
u64
bhash
&'a C::Hash
weight
Weight