Updated some dependencies, got rid of Bitcoin stuff which wasn't in use
This commit is contained in:
@@ -139,12 +139,12 @@ impl OracleNode {
|
||||
}
|
||||
|
||||
fn submit_price(&self) {
|
||||
let mut rng = rand::thread_rng();
|
||||
let mut rng = rand::rng();
|
||||
|
||||
let price = if self.is_byzantine {
|
||||
self.base_price * 1.2 // Try to manipulate 20% higher
|
||||
} else {
|
||||
self.base_price * (1.0 + rng.gen_range(-0.01..0.01))
|
||||
self.base_price * (1.0 + rng.random_range(-0.01..0.01))
|
||||
};
|
||||
|
||||
let attestation = PriceAttestation {
|
||||
|
||||
Reference in New Issue
Block a user