projects
/
rust-lightning
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Correctly update the last block hash on disconnect
[rust-lightning]
/
lightning
/
src
/
ln
/
channelmanager.rs
diff --git
a/lightning/src/ln/channelmanager.rs
b/lightning/src/ln/channelmanager.rs
index 30f745c3f14b2d6922576726732c17f82653ea8e..ded254d06f900c839cac2bf7a6411fc72946a69e 100644
(file)
--- a/
lightning/src/ln/channelmanager.rs
+++ b/
lightning/src/ln/channelmanager.rs
@@
-3327,7
+3327,7
@@
impl<Signer: Sign, M: Deref, T: Deref, K: Deref, F: Deref, L: Deref> ChannelMana
}
});
- *self.last_block_hash.lock().unwrap() = header.
block_hash()
;
+ *self.last_block_hash.lock().unwrap() = header.
prev_blockhash
;
self.latest_block_height.fetch_sub(1, Ordering::AcqRel);
}