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:
teor 2021-04-07 18:08:02 +10:00 committed by GitHub
parent db87a8410e
commit 2ace597da1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 12 additions and 11 deletions

View File

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

View File

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