]> git.bitcoin.ninja Git - rust-lightning/commit
Drop return value from `Filter::register_output`
authorElias Rohrer <ero@tnull.de>
Thu, 11 Aug 2022 12:27:45 +0000 (14:27 +0200)
committerElias Rohrer <ero@tnull.de>
Mon, 15 Aug 2022 18:47:33 +0000 (20:47 +0200)
commit2f4457fd7e188587cdba04ce1651ecf2db0c9fbf
tree499026d7b28c2fce7379661c7b80637d41a84a25
parentd2191d9c6dd1c4de87115ad49eea283915df5d78
Drop return value from `Filter::register_output`

This commit removes the return value from `Filter::register_output` as
creating a suitable value almost always entails blocking operations
(e.g., lookups via network request), which however conflicts with the
requirement that user calls should avoid blocking calls at all cost.

Removing the return value also rendered quite a bit of test code for
dependent transaction handling superfluous, which is therefore also
removed with this commit.
lightning/src/chain/chainmonitor.rs
lightning/src/chain/mod.rs
lightning/src/util/test_utils.rs