loop/staticaddr/deposit/deposit_test.go
Slyghtning 1abe617991
staticaddr/deposit: track unconfirmed deposits
Retain static-address deposits as soon as lnd reports the UTXO, even
when the output is still unconfirmed. Store the first confirmation
height once the output confirms.

Derive confirmation heights from the current wallet view because lnd
reports confirmation counts instead of first-confirmation heights.
2026-07-12 09:14:31 +02:00

17 lines
345 B
Go

package deposit
import (
"testing"
"github.com/stretchr/testify/require"
)
// TestDepositIsExpiredUnconfirmed verifies that unconfirmed deposits do not
// expire because their CSV timeout has not started yet.
func TestDepositIsExpiredUnconfirmed(t *testing.T) {
t.Parallel()
d := &Deposit{}
require.False(t, d.IsExpired(1_000, 144))
}