mirror of
https://github.com/lightningnetwork/lnd.git
synced 2024-11-19 18:10:34 +01:00
556c38fefd
This commit extends the current htlc timeout resolver to also watch for preimage spend in mempool for a full node backend. If mempool enabled, the resolver will watch the spend of the htlc output in mempool and blocks **concurrently**, as if they are independent. Ideally, a transaction will first appear in mempool then in a block. However, there's no guarantee it will appear in **our** mempool since there's no global mempool, thus we need to watch the spend in two places in case it doesn't go through our mempool. The current design favors the spend event found in blocks, that is, when the tx is confirmed, we'd abort the monitoring and conitnue since the outpoint cannot be double spent and re-appear in mempool again. This is not true in the rare case of reorg, and we will handle reorg seperately. |
||
---|---|---|
.. | ||
anchor_resolver.go | ||
breach_resolver.go | ||
breacharbiter_test.go | ||
breacharbiter.go | ||
briefcase_test.go | ||
briefcase.go | ||
chain_arbitrator_test.go | ||
chain_arbitrator.go | ||
chain_watcher_test.go | ||
chain_watcher.go | ||
channel_arbitrator_test.go | ||
channel_arbitrator.go | ||
commit_sweep_resolver_test.go | ||
commit_sweep_resolver.go | ||
contract_resolvers.go | ||
htlc_incoming_contest_resolver.go | ||
htlc_incoming_resolver_test.go | ||
htlc_lease_resolver.go | ||
htlc_outgoing_contest_resolver_test.go | ||
htlc_outgoing_contest_resolver.go | ||
htlc_success_resolver_test.go | ||
htlc_success_resolver.go | ||
htlc_timeout_resolver_test.go | ||
htlc_timeout_resolver.go | ||
interfaces.go | ||
log.go | ||
mock_htlcnotifier_test.go | ||
mock_registry_test.go | ||
nursery_store_test.go | ||
nursery_store.go | ||
setup_test.go | ||
utils_test.go | ||
utxonursery_test.go | ||
utxonursery.go |