]> git.bitcoin.ninja Git - rust-lightning/commit
Include block hash for watched transaction output
authorJeffrey Czyz <jkczyz@gmail.com>
Tue, 16 Mar 2021 00:32:28 +0000 (17:32 -0700)
committerJeffrey Czyz <jkczyz@gmail.com>
Sat, 27 Mar 2021 22:20:13 +0000 (18:20 -0400)
commit02b85fabcdeb4c2128ca86e15f653c44dbef5df2
treebfeb3f3760dff6452e411000e7fb03c4e1d394dd
parentd70fdd3a5c7bb2f240ef9de0fa075494b3923fe5
Include block hash for watched transaction output

When registering a watched transaction output, any in-block descendant
transactions spending the output must be supplied. Give the block hash
when registering such outputs such that this is possible. Otherwise,
spends from other blocks may be returned inadvertently.
lightning/src/chain/chainmonitor.rs
lightning/src/chain/channelmonitor.rs
lightning/src/chain/mod.rs
lightning/src/util/test_utils.rs