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

Upgrade to LDK v0.0.123 #106

Merged
merged 1 commit into from
May 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ std = ["lightning/std", "bitcoin/std", "lightning-invoice/std"]
no-std = ["hashbrown", "lightning/no-std", "lightning-invoice/no-std", "bitcoin/no-std", "core2/alloc"]

[dependencies]
lightning = { version = "0.0.121", default-features = false, features = ["max_level_trace"] }
lightning-invoice = { version = "0.29.0", default-features = false, features = ["serde"] }
lightning = { version = "0.0.123", default-features = false, features = ["max_level_trace"] }
lightning-invoice = { version = "0.31.0", default-features = false, features = ["serde"] }
bitcoin = { version = "0.30.2", default-features = false, features = ["serde"] }
hashbrown = { version = "0.8", optional = true }
core2 = { version = "0.3.0", optional = true, default-features = false }
Expand Down
8 changes: 4 additions & 4 deletions src/manager.rs
Original file line number Diff line number Diff line change
Expand Up @@ -583,9 +583,9 @@ where
) {
if let Some(best_block) = &self.best_block {
let best_block = best_block.read().unwrap();
assert_eq!(best_block.block_hash(), header.prev_blockhash,
assert_eq!(best_block.block_hash, header.prev_blockhash,
"Blocks must be connected in chain-order - the connected header must build on the last connected header");
assert_eq!(best_block.height(), height - 1,
assert_eq!(best_block.height, height - 1,
"Blocks must be connected in chain-order - the connected block height must be one greater than the previous height");
}

Expand All @@ -597,9 +597,9 @@ where
let new_height = height - 1;
if let Some(best_block) = &self.best_block {
let mut best_block = best_block.write().unwrap();
assert_eq!(best_block.block_hash(), header.block_hash(),
assert_eq!(best_block.block_hash, header.block_hash(),
"Blocks must be disconnected in chain-order - the disconnected header must be the last connected header");
assert_eq!(best_block.height(), height,
assert_eq!(best_block.height, height,
"Blocks must be disconnected in chain-order - the disconnected block must have the correct height");
*best_block = BestBlock::new(header.prev_blockhash, new_height)
}
Expand Down
Loading