Select Git revision
weights-benchmarking.md
-
Éloïs authored
* add base block weights * db weights licence * remove unused import * fix base weights computation * force skip some warnings in weights module * force skip fmt on weights module * add storage benchmarks
Éloïs authored* add base block weights * db weights licence * remove unused import * fix base weights computation * force skip some warnings in weights module * force skip fmt on weights module * add storage benchmarks
data.rs 400 B
use crate::endpoint_gossip::rpc::state::PeeringWithId;
use jsonrpsee::core::Serialize;
use serde::Deserialize;
#[derive(PartialEq, Eq, Clone, Serialize, Deserialize)]
#[cfg_attr(test, derive(Debug))]
pub struct DuniterPeeringsData {
pub peerings: Vec<PeeringWithId>,
}
impl DuniterPeeringsData {
pub fn push(&mut self, peering: PeeringWithId) {
self.peerings.push(peering);
}
}