]> git.bitcoin.ninja Git - rust-lightning/commit
Add rescan logic to ChainMonitor::block_connected
authorJeffrey Czyz <jkczyz@gmail.com>
Wed, 10 Mar 2021 22:39:34 +0000 (14:39 -0800)
committerJeffrey Czyz <jkczyz@gmail.com>
Sat, 27 Mar 2021 22:20:55 +0000 (18:20 -0400)
commit6b14adebdbd6acc9a5abf36468e95eeebee75ba4
treeea1f3aa26146d2d161a7fb9e1f1c6fa100621093
parent02b85fabcdeb4c2128ca86e15f653c44dbef5df2
Add rescan logic to ChainMonitor::block_connected

Electrum clients will only provide transaction data for outputs that
have been explicitly registered. Hence, upon registering new outputs,
recursively register any outputs to watch contained within dependent
transactions from the same block.
lightning/src/chain/chainmonitor.rs