]> git.bitcoin.ninja Git - rust-lightning/commit
Return only `Some(block_hash)` in CM rel. txids
authorElias Rohrer <ero@tnull.de>
Tue, 31 Jan 2023 23:07:31 +0000 (17:07 -0600)
committerElias Rohrer <ero@tnull.de>
Tue, 31 Jan 2023 23:07:31 +0000 (17:07 -0600)
commit041c3e615fb2d4db8fcff7a9e5c864bbb3656502
tree31f4a8d2cbe2bf5690a930c4ea64e66f156354f4
parentc59150a3793937f25d88cc11bcf8ba6e030f5709
Return only `Some(block_hash)` in CM rel. txids

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 for `ChannelManager`, we only return values for which we had
registered a confirmation block hash before.
lightning/src/ln/channelmanager.rs