]> git.bitcoin.ninja Git - rust-lightning/commit
[fuzz] Test chanmon_consistency payment-send errors are sane
authorMatt Corallo <git@bluematt.me>
Tue, 17 Nov 2020 20:22:59 +0000 (15:22 -0500)
committerMatt Corallo <git@bluematt.me>
Sat, 21 Nov 2020 17:10:24 +0000 (12:10 -0500)
commitacf68eddefef0ffabdadc0d9d61655c6e63685e1
tree47d08ff6843b49ec24af45d9d91865d59a62a9a1
parent4e82003261e11ece5d5fb3b13f686c9f7a0d2aaf
[fuzz] Test chanmon_consistency payment-send errors are sane

Instead of simply always considering a payment-send failure as
acceptable (and aborting fuzzing), we check that a payment send
failure is from a list of errors that we know we can hit, mostly
around maxing out our channel balance.

Critically, we keep going after hitting an error, as there's no
reason channels should get out of sync even if a send fails.
fuzz/src/chanmon_consistency.rs