mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-08-29 15:11:09 +02:00
contractcourt: return htlcResolution when currentHeight has reached expiry
Only create the sweep tx when the height has reached, otherwise we will get a broadcast error. Previously it wasn't caught by itest due to the blocks were mined very fast, so the lock time was always reached.
This commit is contained in:
@@ -33,7 +33,7 @@ func TestHtlcOutgoingResolverTimeout(t *testing.T) {
|
||||
|
||||
// Notify arrival of the block after which the timeout path of the htlc
|
||||
// unlocks.
|
||||
ctx.notifyEpoch(outgoingContestHtlcExpiry - 1)
|
||||
ctx.notifyEpoch(outgoingContestHtlcExpiry)
|
||||
|
||||
// Assert that the resolver finishes without error and transforms in a
|
||||
// timeout resolver.
|
||||
|
Reference in New Issue
Block a user