blockdata: constants: Use wildcard import in unit tests

Import with wildcard is applicable in unit tests, use it.
This commit is contained in:
Tobin Harding 2022-03-16 11:22:18 +11:00 committed by Tobin C. Harding
parent 71bf19621a
commit cd8f511fcb
1 changed files with 1 additions and 3 deletions

View File

@ -179,12 +179,10 @@ pub fn genesis_block(network: Network) -> Block {
#[cfg(test)] #[cfg(test)]
mod test { mod test {
use core::default::Default; use core::default::Default;
use super::*;
use crate::hashes::hex::FromHex; use crate::hashes::hex::FromHex;
use crate::network::constants::Network; use crate::network::constants::Network;
use crate::consensus::encode::serialize; use crate::consensus::encode::serialize;
use crate::blockdata::constants::{genesis_block, bitcoin_genesis_tx};
use crate::blockdata::constants::{MAX_SEQUENCE, COIN_VALUE};
#[test] #[test]
fn bitcoin_genesis_first_transaction() { fn bitcoin_genesis_first_transaction() {