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

Commit

Permalink
Merge pull request #106 from tnull/2024-02-upgrade-to-LDK-v0.0.122
Browse files Browse the repository at this point in the history
Upgrade to LDK v0.0.123
  • Loading branch information
tnull authored May 13, 2024
2 parents 783d5bd + 13ed60e commit 06219b4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
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

0 comments on commit 06219b4

Please sign in to comment.