|
|
@ -176,7 +176,7 @@ func TestCustomSweepConfTarget(t *testing.T) {
|
|
|
|
// Notify the confirmation notification for the HTLC.
|
|
|
|
// Notify the confirmation notification for the HTLC.
|
|
|
|
ctx.AssertRegisterConf()
|
|
|
|
ctx.AssertRegisterConf()
|
|
|
|
|
|
|
|
|
|
|
|
blockEpochChan <- int32(ctx.Lnd.Height + 1)
|
|
|
|
blockEpochChan <- ctx.Lnd.Height + 1
|
|
|
|
|
|
|
|
|
|
|
|
htlcTx := wire.NewMsgTx(2)
|
|
|
|
htlcTx := wire.NewMsgTx(2)
|
|
|
|
htlcTx.AddTxOut(&wire.TxOut{
|
|
|
|
htlcTx.AddTxOut(&wire.TxOut{
|
|
|
@ -238,7 +238,7 @@ func TestCustomSweepConfTarget(t *testing.T) {
|
|
|
|
|
|
|
|
|
|
|
|
// The sweep should have a fee that corresponds to the custom
|
|
|
|
// The sweep should have a fee that corresponds to the custom
|
|
|
|
// confirmation target.
|
|
|
|
// confirmation target.
|
|
|
|
sweepTx := assertSweepTx(testRequest.SweepConfTarget)
|
|
|
|
_ = assertSweepTx(testRequest.SweepConfTarget)
|
|
|
|
|
|
|
|
|
|
|
|
// We'll then notify the height at which we begin using the default
|
|
|
|
// We'll then notify the height at which we begin using the default
|
|
|
|
// confirmation target.
|
|
|
|
// confirmation target.
|
|
|
@ -249,7 +249,7 @@ func TestCustomSweepConfTarget(t *testing.T) {
|
|
|
|
|
|
|
|
|
|
|
|
// We should expect to see another sweep using the higher fee since the
|
|
|
|
// We should expect to see another sweep using the higher fee since the
|
|
|
|
// spend hasn't been confirmed yet.
|
|
|
|
// spend hasn't been confirmed yet.
|
|
|
|
sweepTx = assertSweepTx(DefaultSweepConfTarget)
|
|
|
|
sweepTx := assertSweepTx(DefaultSweepConfTarget)
|
|
|
|
|
|
|
|
|
|
|
|
// Notify the spend so that the swap reaches its final state.
|
|
|
|
// Notify the spend so that the swap reaches its final state.
|
|
|
|
ctx.NotifySpend(sweepTx, 0)
|
|
|
|
ctx.NotifySpend(sweepTx, 0)
|
|
|
|