]> git.bitcoin.ninja Git - rust-lightning/commit
Implement reorg-safety for SpendableOutputDescriptor detection
authorAntoine Riard <ariard@student.42.fr>
Thu, 19 Mar 2020 00:58:05 +0000 (20:58 -0400)
committerAntoine Riard <ariard@student.42.fr>
Fri, 20 Mar 2020 02:31:48 +0000 (22:31 -0400)
commitb7407b219d41f727f6967bd0cd046f15795367ab
tree2cfeb2970aa75b8d5ace93eb4776c00659156fde
parentaa84673cdb4ce3eb34e56204327c678100e31582
Implement reorg-safety for SpendableOutputDescriptor detection

We delay SpendableOutputDescriptor until reaching ANTI_REORG_DELAY
to avoid misleading user wallet in case of reorg and alternative
settlement on a channel output.

Fix tests in consequence.
lightning/src/chain/keysinterface.rs
lightning/src/ln/channelmonitor.rs
lightning/src/ln/functional_tests.rs