Only return previously confirmed Txids from CM's get_relevant_txids()
#1998
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
As of now the
Confirm::get_relevant_txids()
docs state that it won't return any transactions for which we hadn't previously seen a confirmation. To align its functionality a bit more with the docs, at least forChannelManager
, we only return values for which we had registered a confirmation block hash before.While now
ChannelManager
will only return previously confirmed transactions, we can't ensure the same forChainMonitor
, as we need to maintain backwards compatibility with version prior to 0.0.113, at which we started tracking the block hash inChannelMonitor
s. We therefore add a note to the docs stating that users need to track confirmations on their own for channels created prior to 0.0.113.