]> git.bitcoin.ninja Git - rust-lightning/commit
Only yield DelayedPaymentOutput descriptors once their delay expires
authorWilmer Paulino <wilmer@wilmerpaulino.com>
Fri, 29 Sep 2023 16:40:34 +0000 (09:40 -0700)
committerWilmer Paulino <wilmer@wilmerpaulino.com>
Fri, 29 Sep 2023 17:56:48 +0000 (10:56 -0700)
commitf267a30cc7fe564d8f767c9c973e211f5bf64a82
tree6a4607afc03f8e65e597025ff71a408237fe1d97
parent6cf035146294119c75bab056715410e53369cced
Only yield DelayedPaymentOutput descriptors once their delay expires

Otherwise, we could give users a descriptor ahead of time that will
result in an invalid transaction spend/broadcast.
lightning/src/chain/channelmonitor.rs
lightning/src/ln/monitor_tests.rs