Files
lnd/lnwallet/confscale_integration.go
T
Olaoluwa Osuntokun 09c813a61c lnwallet: define helper func to coop close conf scaling
We have two versions: for itests, we just use one conf, but in prod,
we'll scale the number of confirmations.
2026-01-15 16:22:26 -08:00

14 lines
391 B
Go

//go:build integration
// +build integration
package lnwallet
import "github.com/btcsuite/btcd/btcutil"
// CloseConfsForCapacity returns the number of confirmations to wait
// before signaling a cooperative close. Under integration tests, we
// always return 1 to keep tests fast and deterministic.
func CloseConfsForCapacity(capacity btcutil.Amount) uint32 { //nolint:revive
return 1
}