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

Potential fixes for MutinyChain #199

Merged
merged 1 commit into from
Dec 12, 2022
Merged

Potential fixes for MutinyChain #199

merged 1 commit into from
Dec 12, 2022

Conversation

benthecarman
Copy link
Collaborator

Copies some changes made in lightningdevkit/rust-lightning#1870

We still can't directly copy paste as we need some deps to update

Comment on lines +348 to +351
let mut locked_watched_transactions = self.watched_transactions.lock().unwrap();
for txid in to_watch {
locked_watched_transactions.insert(txid);
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we .clear() first or do we really need to just be inserting new ones to add to it? The old behavior did a replacement.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we are supposed to add, that's what is done in the ldk PR

@benthecarman benthecarman merged commit 7770102 into MutinyWallet:master Dec 12, 2022
@benthecarman benthecarman deleted the chain-updates branch December 12, 2022 03:02
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants