Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions loopd/swapclient_server.go
Original file line number Diff line number Diff line change
Expand Up @@ -1505,6 +1505,11 @@ func validateLoopOutRequest(ctx context.Context, lnd lndclient.LightningClient,
req.MaxSwapRoutingFee)
}

if req.MaxSwapRoutingFee <= 0 {
return 0, fmt.Errorf("maximum swap routing fee must be " +
"greater than zero")
}

return validateConfTarget(
req.SweepConfTarget, loop.DefaultSweepConfTarget,
)
Expand Down
Loading