Skip to content

Commit

Permalink
blockdata: constants: Use wildcard import in unit tests
Browse files Browse the repository at this point in the history
Import with wildcard is applicable in unit tests, use it.
  • Loading branch information
tcharding committed Mar 20, 2022
1 parent db54a27 commit d2615ed
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/blockdata/constants.rs
Expand Up @@ -178,13 +178,13 @@ pub fn genesis_block(network: Network) -> Block {

#[cfg(test)]
mod test {
use super::*;

use core::default::Default;
use hashes::hex::FromHex;

use network::constants::Network;
use consensus::encode::serialize;
use blockdata::constants::{genesis_block, bitcoin_genesis_tx};
use blockdata::constants::{MAX_SEQUENCE, COIN_VALUE};

#[test]
fn bitcoin_genesis_first_transaction() {
Expand Down

0 comments on commit d2615ed

Please sign in to comment.