Renamed prefix on oracle network
This commit is contained in:
@@ -1,12 +1,10 @@
|
||||
use std::sync::{Arc, Mutex};
|
||||
|
||||
use crate::{oracle, utils, AssetPair, OracleId, PriceAttestation};
|
||||
use rand::Rng;
|
||||
|
||||
use crate::{utils, AssetPair, OracleId, PriceAttestation};
|
||||
use std::sync::{Arc, Mutex};
|
||||
|
||||
pub(crate) struct OracleNode {
|
||||
pub(crate) id: OracleId,
|
||||
pub(crate) crdt: Arc<Mutex<super::OracleNetworkCRDT>>,
|
||||
pub(crate) crdt: Arc<Mutex<oracle::NetworkCRDT>>,
|
||||
pub(crate) is_byzantine: bool,
|
||||
pub(crate) base_price: f64,
|
||||
}
|
||||
@@ -15,7 +13,7 @@ impl OracleNode {
|
||||
pub(crate) fn new(id: String, is_byzantine: bool) -> Self {
|
||||
Self {
|
||||
id: OracleId(id),
|
||||
crdt: Arc::new(Mutex::new(super::OracleNetworkCRDT::new())),
|
||||
crdt: Arc::new(Mutex::new(oracle::NetworkCRDT::new())),
|
||||
is_byzantine,
|
||||
base_price: 2500.0,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user