Clean up use statements in `arbitrary` modules (#1984)
* Clean up use statements in `arbitrary` modules Co-authored-by: Deirdre Connolly <durumcrustulum@gmail.com>
This commit is contained in:
parent
db87a8410e
commit
2ace597da1
|
@ -1,17 +1,19 @@
|
|||
use std::sync::Arc;
|
||||
|
||||
use crate::parameters::Network;
|
||||
use crate::work::{difficulty::CompactDifficulty, equihash};
|
||||
|
||||
use super::*;
|
||||
|
||||
use crate::LedgerState;
|
||||
use chrono::{TimeZone, Utc};
|
||||
use proptest::{
|
||||
arbitrary::{any, Arbitrary},
|
||||
prelude::*,
|
||||
};
|
||||
|
||||
use chrono::{TimeZone, Utc};
|
||||
use std::sync::Arc;
|
||||
|
||||
use crate::{
|
||||
parameters::Network,
|
||||
work::{difficulty::CompactDifficulty, equihash},
|
||||
LedgerState,
|
||||
};
|
||||
|
||||
use super::*;
|
||||
|
||||
impl Arbitrary for Block {
|
||||
type Parameters = LedgerState;
|
||||
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
use std::sync::Arc;
|
||||
|
||||
use block::Height;
|
||||
use chrono::{TimeZone, Utc};
|
||||
use futures::future::Either;
|
||||
use proptest::{arbitrary::any, array, collection::vec, option, prelude::*};
|
||||
|
@ -247,7 +246,7 @@ impl Arbitrary for Transaction {
|
|||
..
|
||||
} = ledger_state;
|
||||
|
||||
let height = Height(tip_height.0 + 1);
|
||||
let height = block::Height(tip_height.0 + 1);
|
||||
let network_upgrade = NetworkUpgrade::current(network, height);
|
||||
|
||||
match network_upgrade {
|
||||
|
|
Loading…
Reference in New Issue