projects
/
rapid-gossip-sync-server
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge pull request #68 from johncantrell97/118
[rapid-gossip-sync-server]
/
src
/
tests
/
mod.rs
diff --git
a/src/tests/mod.rs
b/src/tests/mod.rs
index dfc7ce466ec7d5c7ce2634650b419125a7813e03..42de18a4fb63f7aea2ec4a3a19f34b393a26dc07 100644
(file)
--- a/
src/tests/mod.rs
+++ b/
src/tests/mod.rs
@@
-4,7
+4,8
@@
use std::cell::RefCell;
use std::sync::Arc;
use std::{fs, thread};
use std::time::{SystemTime, UNIX_EPOCH};
use std::sync::Arc;
use std::{fs, thread};
use std::time::{SystemTime, UNIX_EPOCH};
-use bitcoin::{BlockHash, Network};
+use bitcoin::blockdata::constants::ChainHash;
+use bitcoin::Network;
use bitcoin::secp256k1::ecdsa::Signature;
use bitcoin::secp256k1::{Secp256k1, SecretKey};
use bitcoin::hashes::Hash;
use bitcoin::secp256k1::ecdsa::Signature;
use bitcoin::secp256k1::{Secp256k1, SecretKey};
use bitcoin::hashes::Hash;
@@
-31,8
+32,8
@@
fn blank_signature() -> Signature {
Signature::from_compact(&[0u8; 64]).unwrap()
}
Signature::from_compact(&[0u8; 64]).unwrap()
}
-fn genesis_hash() ->
Block
Hash {
-
bitcoin::blockdata::constants::genesis_block(Network::Bitcoin).block_hash(
)
+fn genesis_hash() ->
Chain
Hash {
+
ChainHash::using_genesis_block(Network::Bitcoin
)
}
fn current_time() -> u32 {
}
fn current_time() -> u32 {