Skip to content

Commit 6b43d77

Browse files
committed
Update the fuzz and net-tokio crates
1 parent 8a17313 commit 6b43d77

File tree

3 files changed

+5
-7
lines changed

3 files changed

+5
-7
lines changed

fuzz/Cargo.toml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,10 @@ libfuzzer_fuzz = ["libfuzzer-sys"]
1818
[dependencies]
1919
afl = { version = "0.4", optional = true }
2020
lightning = { path = "..", features = ["fuzztarget"] }
21-
bitcoin = { version = "0.18", features = ["fuzztarget"] }
22-
bitcoin_hashes = { version = "0.3", features=["fuzztarget"] }
21+
bitcoin = { version = "0.20", features = ["fuzztarget"] }
2322
hex = "0.3"
2423
honggfuzz = { version = "0.5", optional = true }
25-
secp256k1 = { version = "0.12", features=["fuzztarget"] }
24+
secp256k1 = { version = "0.15", features=["fuzztarget"] }
2625
libfuzzer-sys = { git = "https://github.com/rust-fuzz/libfuzzer-sys.git", optional = true }
2726

2827
[build-dependencies]

fuzz/fuzz_targets/full_stack_target.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ impl KeysInterface for KeyProvider {
244244
fn get_destination_script(&self) -> Script {
245245
let secp_ctx = Secp256k1::signing_only();
246246
let channel_monitor_claim_key = SecretKey::from_slice(&hex::decode("0fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff").unwrap()[..]).unwrap();
247-
let our_channel_monitor_claim_key_hash = <Hash160 as bitcoin_hashes::Hash>::hash(&PublicKey::from_secret_key(&secp_ctx, &channel_monitor_claim_key).serialize());
247+
let our_channel_monitor_claim_key_hash = <Hash160 as bitcoin::hashes::Hash>::hash(&PublicKey::from_secret_key(&secp_ctx, &channel_monitor_claim_key).serialize());
248248
Builder::new().push_opcode(opcodes::all::OP_PUSHBYTES_0).push_slice(&our_channel_monitor_claim_key_hash[..]).into_script()
249249
}
250250

net-tokio/Cargo.toml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,9 @@ For Rust-Lightning clients which wish to make direct connections to Lightning P2
99
"""
1010

1111
[dependencies]
12-
bitcoin = "0.18"
13-
bitcoin_hashes = "0.3"
12+
bitcoin = "0.20"
1413
lightning = { version = "0.0.9", path = "../" }
15-
secp256k1 = "0.12"
14+
secp256k1 = "0.15"
1615
tokio-codec = "0.1"
1716
futures = "0.1"
1817
tokio = "0.1"

0 commit comments

Comments
 (0)