mohab metwally 3 лет назад
Родитель
Сommit
5f75013502

+ 3 - 4
src/consensus/ouroboros/mod.rs

@@ -8,7 +8,7 @@ use rand::rngs::OsRng;
 use std::{thread, time::Duration};
 
 use crate::zk::circuit::{BurnContract, LeadContract, MintContract};
-use incrementalmerkletree::{bridgetree::BridgeTree, Tree};
+use incrementalmerkletree::{bridgetree::BridgeTree};
 
 pub mod types;
 pub mod consts;
@@ -18,7 +18,7 @@ use crate::{
     blockchain::{Blockchain},
     consensus::{
         clock::{Clock, Ticks},
-        Block, BlockInfo, Header, Metadata,
+        Block, BlockInfo, Metadata,
         LeadProof,
         ouroboros::{
             types::{Float10},
@@ -33,13 +33,12 @@ use crate::{
         keypair::{PublicKey, SecretKey},
         leadcoin::LeadCoin,
         merkle_node::MerkleNode,
-        note::{EncryptedNote, Note},
         nullifier::Nullifier,
         proof::{Proof, ProvingKey, VerifyingKey},
         schnorr::{SchnorrSecret},
     },
     net::{MessageSubscription, P2p, Settings, SettingsPtr},
-    node::state::{state_transition, ProgramState, StateUpdate},
+    node::state::{state_transition, ProgramState},
     tx::{
         builder::{
             TransactionBuilder, TransactionBuilderClearInputInfo, TransactionBuilderOutputInfo,

+ 2 - 2
src/consensus/ouroboros/state.rs

@@ -8,10 +8,10 @@ use crate::{
         util::poseidon_hash,
         note::{EncryptedNote, Note},
         coin::OwnCoin,
-        proof::{ProvingKey, VerifyingKey},
+        proof::{VerifyingKey},
         keypair::{PublicKey, SecretKey},
     },
-    node::state::{state_transition, ProgramState, StateUpdate},
+    node::state::{state_transition, StateUpdate},
 };
 
 pub struct StakeholderState {

+ 1 - 4
src/consensus/ouroboros/workspace.rs

@@ -1,9 +1,6 @@
-use log::{debug, error, info};
-use std::fmt;
-
 use crate::{
     consensus::{
-        Block, BlockInfo, Header, Metadata,
+        BlockInfo, Header, Metadata,
     },
     tx::{
         Transaction,