1- use backtrace:: Backtrace ;
2- use serde:: { Deserialize , Serialize } ;
3- use std:: {
4- borrow:: { Borrow , Cow } ,
5- collections:: { hash_map:: Entry , BTreeMap , BTreeSet , HashMap , HashSet , VecDeque } ,
6- } ;
7-
8- use itertools:: Itertools ;
9- use mina_core:: { bug_condition, consensus:: ConsensusConstants } ;
10- use mina_curves:: pasta:: Fp ;
11- use mina_p2p_messages:: { bigint:: BigInt , v2} ;
12-
131use crate :: {
142 scan_state:: {
153 currency:: { Amount , Balance , BlockTime , Fee , Magnitude , Nonce , Slot } ,
@@ -27,6 +15,16 @@ use crate::{
2715 verifier:: { Verifier , VerifierError } ,
2816 Account , AccountId , BaseLedger , Mask , TokenId , VerificationKey , VerificationKeyWire ,
2917} ;
18+ use backtrace:: Backtrace ;
19+ use itertools:: Itertools ;
20+ use mina_core:: { bug_condition, consensus:: ConsensusConstants } ;
21+ use mina_curves:: pasta:: Fp ;
22+ use mina_p2p_messages:: { bigint:: BigInt , v2} ;
23+ use serde:: { Deserialize , Serialize } ;
24+ use std:: {
25+ borrow:: { Borrow , Cow } ,
26+ collections:: { hash_map:: Entry , BTreeMap , BTreeSet , HashMap , HashSet , VecDeque } ,
27+ } ;
3028
3129#[ derive( Debug , thiserror:: Error ) ]
3230pub enum TransactionPoolErrors {
@@ -589,16 +587,6 @@ pub struct IndexedPoolConfig {
589587 slot_tx_end : Option < Slot > ,
590588}
591589
592- // module Config = struct
593- // type t =
594- // { constraint_constants : Genesis_constants.Constraint_constants.t
595- // ; consensus_constants : Consensus.Constants.t
596- // ; time_controller : Block_time.Controller.t
597- // ; slot_tx_end : Mina_numbers.Global_slot_since_hard_fork.t option
598- // }
599- // [@@deriving sexp_of, equal, compare]
600- // end
601-
602590#[ derive( Clone , Debug , Serialize , Deserialize ) ]
603591pub struct IndexedPool {
604592 /// Transactions valid against the current ledger, indexed by fee per
0 commit comments