Updated some dependencies, got rid of Bitcoin stuff which wasn't in use

This commit is contained in:
Dave
2025-06-12 15:24:19 -04:00
parent 693ce3fafe
commit a8a5422ea8
12 changed files with 324 additions and 1455 deletions

View File

@@ -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 {