-
Notifications
You must be signed in to change notification settings - Fork 41
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Port back changes from lightning experiment branch #227
Conversation
84ce95b
to
a280669
Compare
watched_tx: HashMap<Txid, ChannelInfo>, | ||
pub(crate) watched_tx: HashMap<Txid, WatchState>, | ||
pub(crate) watched_txo: HashMap<OutPoint, WatchState>, | ||
pub(crate) last_height: u64, | ||
pub(crate) last_block_hashes: Vec<BlockHash>, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A reminder that this is a breaking change in case you want to communicate it somehow.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess there are a bunch of breaking changes with this PR anyway.
/// Check if any watched transactions are part of the block, confirming them if so. | ||
/// | ||
/// # Panics | ||
/// | ||
/// Panics if the new block's height is not exactly one more than the last processed height. | ||
pub(crate) fn process_block(&mut self, block: &Block, height: u64) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nevertheless, it might be worth looking at those changes after merging. I know you wanted to change how we monitor the blockchain anyway, so maybe only 1010f95 is relevant.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah I think better to take that later, but thanks for the pointers!
dlc-manager/src/channel_updater.rs
Outdated
counter_buffer_adaptor_signature: *accept_buffer_adaptor_signature, | ||
own_buffer_adaptor_signature: *offer_buffer_adaptor_signature, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We fixed this bug in our branch: 0191dc4.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks fixed!
a280669
to
4ff8528
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks!
4ff8528
to
a88ea41
Compare
This PR brings back many fixes and changes that were made for the lightning experimental branch to master.