Reformat and tick config docs
[rust-lightning] / lightning-block-sync / src / test_utils.rs
index b6fa6617c846e2d57f5288b0a6ecab975425081a..84c65f244f00e2c2d3fb81ebf976e535c06f8ac7 100644 (file)
@@ -5,8 +5,9 @@ use bitcoin::blockdata::block::{Block, Header, Version};
 use bitcoin::blockdata::constants::genesis_block;
 use bitcoin::blockdata::locktime::absolute::LockTime;
 use bitcoin::hash_types::{BlockHash, TxMerkleNode};
-use bitcoin::network::constants::Network;
+use bitcoin::network::Network;
 use bitcoin::Transaction;
+use bitcoin::transaction;
 
 use lightning::chain;
 
@@ -44,7 +45,7 @@ impl Blockchain {
                        // Note that elsewhere in tests we assume that the merkle root of an empty block is all zeros,
                        // but that's OK because those tests don't trigger the check.
                        let coinbase = Transaction {
-                               version: 0,
+                               version: transaction::Version(0),
                                lock_time: LockTime::ZERO,
                                input: vec![],
                                output: vec![]