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::{
|
use proptest::{
|
||||||
arbitrary::{any, Arbitrary},
|
arbitrary::{any, Arbitrary},
|
||||||
prelude::*,
|
prelude::*,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
use chrono::{TimeZone, Utc};
|
||||||
|
use std::sync::Arc;
|
||||||
|
|
||||||
|
use crate::{
|
||||||
|
parameters::Network,
|
||||||
|
work::{difficulty::CompactDifficulty, equihash},
|
||||||
|
LedgerState,
|
||||||
|
};
|
||||||
|
|
||||||
|
use super::*;
|
||||||
|
|
||||||
impl Arbitrary for Block {
|
impl Arbitrary for Block {
|
||||||
type Parameters = LedgerState;
|
type Parameters = LedgerState;
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
use std::sync::Arc;
|
use std::sync::Arc;
|
||||||
|
|
||||||
use block::Height;
|
|
||||||
use chrono::{TimeZone, Utc};
|
use chrono::{TimeZone, Utc};
|
||||||
use futures::future::Either;
|
use futures::future::Either;
|
||||||
use proptest::{arbitrary::any, array, collection::vec, option, prelude::*};
|
use proptest::{arbitrary::any, array, collection::vec, option, prelude::*};
|
||||||
|
@ -247,7 +246,7 @@ impl Arbitrary for Transaction {
|
||||||
..
|
..
|
||||||
} = ledger_state;
|
} = ledger_state;
|
||||||
|
|
||||||
let height = Height(tip_height.0 + 1);
|
let height = block::Height(tip_height.0 + 1);
|
||||||
let network_upgrade = NetworkUpgrade::current(network, height);
|
let network_upgrade = NetworkUpgrade::current(network, height);
|
||||||
|
|
||||||
match network_upgrade {
|
match network_upgrade {
|
||||||
|
|
Loading…
Reference in New Issue