]> git.bitcoin.ninja Git - rust-lightning/commit
Gracefully handle fee-larger-than-claimed-value in ChannelMonitor 2019-06-fuzz-crash-fee-sub
authorMatt Corallo <git@bluematt.me>
Fri, 14 Jun 2019 22:45:38 +0000 (18:45 -0400)
committerMatt Corallo <git@bluematt.me>
Fri, 14 Jun 2019 22:50:55 +0000 (18:50 -0400)
commit98134c891cc92a8d13b81f07715b33d2fab3ff0d
treef6ad01bb2a634186eb6df6071f1f6ce762346678
parent02feaebc3c1bc8165c495b80bf1e5c5f4e97e5da
Gracefully handle fee-larger-than-claimed-value in ChannelMonitor

This resulted in a full_stack_target failure as we overflow during
subtraction otherwise.

Instead, we try lower and lower fee estimator confirmation targets
until we find one low enough, or discard the transaction. We should
be able to handle this much cleaner, but for now this at least gets
the fuzzer working again.
src/ln/channelmonitor.rs