]> git.bitcoin.ninja Git - rust-lightning/commit
Panic on txn with value > 21mill in ChannelMonitor::block_connected
authorMatt Corallo <git@bluematt.me>
Sun, 19 Jan 2020 21:03:25 +0000 (16:03 -0500)
committerMatt Corallo <git@bluematt.me>
Mon, 3 Feb 2020 02:38:53 +0000 (21:38 -0500)
commit222c840a83c7df66aaff3a52a3b2c291e6336954
treef65777b98e561f4862acaa165578cfb62302d6de
parent49a9a5e309d420f421421d1f8d39c045eb4df4ff
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