]> git.bitcoin.ninja Git - rust-lightning/commit
Fix panic on reorg through the funding_locked-generating block
authorMatt Corallo <git@bluematt.me>
Thu, 2 Aug 2018 10:23:53 +0000 (06:23 -0400)
committerMatt Corallo <git@bluematt.me>
Fri, 3 Aug 2018 02:26:44 +0000 (22:26 -0400)
commita6161210e251ada6309f7bdeee560ed13ec15443
tree7d4e92fcaf580766305fbe176c0b21e533642139
parentbd01f4e0c31179ad341d30c0aa565995e795a6cc
Fix panic on reorg through the funding_locked-generating block

We had a TODO to handle "lost confirmation" in block_connected,
which we recently did in block_disconnected (calling force_shutdown
in case we get too many blocks disconnected) but didn't handle the
case where we had a simple reorg through the block that resulted in
us generating a funding_locked.
src/ln/channel.rs