mirror of
https://github.com/lightninglabs/loop.git
synced 2026-08-13 12:33:03 +02:00
Merge pull request #710 from sputn1ck/instantout_ux
instantout: improve ux
This commit is contained in:
commit
c19781bd13
2 changed files with 5 additions and 2 deletions
|
|
@ -83,7 +83,10 @@ func instantOut(ctx *cli.Context) error {
|
|||
fmt.Printf("Available reservations: \n\n")
|
||||
for _, res := range confirmedReservations {
|
||||
idx++
|
||||
fmt.Printf("Reservation %v: %v \n", idx, res.Amount)
|
||||
fmt.Printf("Reservation %v: shortid %x, amt %v, expiry "+
|
||||
"height %v \n", idx, res.ReservationId[:3], res.Amount,
|
||||
res.Expiry)
|
||||
|
||||
totalAmt += int64(res.Amount)
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -107,7 +107,7 @@ func (f *FSM) InitInstantOutAction(eventCtx fsm.EventContext) fsm.EventType {
|
|||
if int32(res.Expiry) < initCtx.cltvExpiry+htlcExpiryDelta {
|
||||
return f.HandleError(fmt.Errorf("reservation %x has "+
|
||||
"expiry %v which is less than the swap expiry %v",
|
||||
resId, res.Expiry, initCtx.cltvExpiry))
|
||||
resId, res.Expiry, initCtx.cltvExpiry+htlcExpiryDelta))
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue