Panic on txn with value > 21mill in ChannelMonitor::block_connected 2020-01-fuzz-mega-value
authorMatt Corallo <git@bluematt.me>
Sun, 19 Jan 2020 21:03:25 +0000 (16:03 -0500)
committerMatt Corallo <git@bluematt.me>
Sun, 19 Jan 2020 21:13:47 +0000 (16:13 -0500)
commit04215c46582dff46db1b148d699753df32e90f78
tree38d871bfeffa4a45e95d8fefa009099f74d31b31
parenta343cf94368f33171f1c146ac79777cb4edea055
Panic on txn with value > 21mill in ChannelMonitor::block_connected

full_stack_target found a crash where we may overflow ruring fee
calculation if a transaction appears on-chain with massive value
available for us to claim. Since these transactions are clearly
bogus, we shouldn't allow full_stack_target to connect them, but
we also improve the error generated by explicitly panicing on them.
fuzz/src/full_stack.rs
lightning/src/ln/channelmonitor.rs