]> git.bitcoin.ninja Git - rust-lightning/commit
Check P2WPKH script against expected before gen'ing an output event 2018-11-230-ext
authorMatt Corallo <git@bluematt.me>
Tue, 20 Nov 2018 20:09:47 +0000 (15:09 -0500)
committerMatt Corallo <git@bluematt.me>
Wed, 21 Nov 2018 00:03:57 +0000 (19:03 -0500)
commit3af20fd507d0e0a62aadb855169e7b066e3f4b39
tree912b71d024bac3149f244e291b8886e741f4f963
parent90b0ed937e32c31efb219d4cb19a613aa104a412
Check P2WPKH script against expected before gen'ing an output event

This fixes a bug in 3518f1f85d8a3daff451b3fe56cc7854b833e2bd where
we may generate an output event for a P2WPKH output which is not
ours if the transaction has a sequence/lock_time combination which
false-positives our remote tx detection.

Also note that the TODO is removed as this should already be
covered without issue if the client properly replays the chain on
restart.
src/ln/channelmonitor.rs