Renamed prefix on oracle network

This commit is contained in:
Dave
2025-06-12 15:50:42 -04:00
parent e2d50144ca
commit 97711e2ecf
3 changed files with 7 additions and 9 deletions

View File

@@ -3,12 +3,12 @@ use std::collections::HashMap;
use crate::{utils, AssetPair, OracleId, PriceAttestation};
#[derive(Clone)]
pub(crate) struct OracleNetworkCRDT {
pub(crate) struct NetworkCRDT {
pub(crate) attestations: HashMap<String, PriceAttestation>,
pub(crate) oracle_scores: HashMap<OracleId, f64>,
}
impl OracleNetworkCRDT {
impl NetworkCRDT {
pub(crate) fn new() -> Self {
Self {
attestations: HashMap::new(),