Constant lightning::chain::channelmonitor::ANTI_REORG_DELAY
source · [−]pub const ANTI_REORG_DELAY: u32 = 6;
Expand description
Number of blocks we wait on seeing a HTLC output being solved before we fail corresponding inbound HTLCs. This prevents us from failing backwards and then getting a reorg resulting in us losing money.
Note that this is a library-wide security assumption. If a reorg deeper than this number of
blocks occurs, counterparties may be able to steal funds or claims made by and balances exposed
by a ChannelMonitor
may be incorrect.