Skip to content
This repository was archived by the owner on Jan 6, 2025. It is now read-only.

Commit 06219b4

Browse files
authored
Merge pull request #106 from tnull/2024-02-upgrade-to-LDK-v0.0.122
Upgrade to LDK v0.0.123
2 parents 783d5bd + 13ed60e commit 06219b4

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

Cargo.toml

+2-2
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ std = ["lightning/std", "bitcoin/std", "lightning-invoice/std"]
1919
no-std = ["hashbrown", "lightning/no-std", "lightning-invoice/no-std", "bitcoin/no-std", "core2/alloc"]
2020

2121
[dependencies]
22-
lightning = { version = "0.0.121", default-features = false, features = ["max_level_trace"] }
23-
lightning-invoice = { version = "0.29.0", default-features = false, features = ["serde"] }
22+
lightning = { version = "0.0.123", default-features = false, features = ["max_level_trace"] }
23+
lightning-invoice = { version = "0.31.0", default-features = false, features = ["serde"] }
2424
bitcoin = { version = "0.30.2", default-features = false, features = ["serde"] }
2525
hashbrown = { version = "0.8", optional = true }
2626
core2 = { version = "0.3.0", optional = true, default-features = false }

src/manager.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -583,9 +583,9 @@ where
583583
) {
584584
if let Some(best_block) = &self.best_block {
585585
let best_block = best_block.read().unwrap();
586-
assert_eq!(best_block.block_hash(), header.prev_blockhash,
586+
assert_eq!(best_block.block_hash, header.prev_blockhash,
587587
"Blocks must be connected in chain-order - the connected header must build on the last connected header");
588-
assert_eq!(best_block.height(), height - 1,
588+
assert_eq!(best_block.height, height - 1,
589589
"Blocks must be connected in chain-order - the connected block height must be one greater than the previous height");
590590
}
591591

@@ -597,9 +597,9 @@ where
597597
let new_height = height - 1;
598598
if let Some(best_block) = &self.best_block {
599599
let mut best_block = best_block.write().unwrap();
600-
assert_eq!(best_block.block_hash(), header.block_hash(),
600+
assert_eq!(best_block.block_hash, header.block_hash(),
601601
"Blocks must be disconnected in chain-order - the disconnected header must be the last connected header");
602-
assert_eq!(best_block.height(), height,
602+
assert_eq!(best_block.height, height,
603603
"Blocks must be disconnected in chain-order - the disconnected block must have the correct height");
604604
*best_block = BestBlock::new(header.prev_blockhash, new_height)
605605
}

0 commit comments

Comments
 (0)