Skip to content
Open
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
6 changes: 6 additions & 0 deletions cmd/loop/instantout.go
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,12 @@ func instantOut(ctx context.Context, cmd *cli.Command) error {
fmt.Printf("Available reservations: \n\n")
for _, res := range confirmedReservations {
idx++
if len(res.ReservationId) != reservation.IdLength {
return fmt.Errorf("invalid reservation id length: "+
"got %d, expected %d", len(res.ReservationId),
reservation.IdLength)
}
Comment thread
Olexandr88 marked this conversation as resolved.

fmt.Printf("Reservation %v: shortid %x, amt %v, expiry "+
"height %v \n", idx, res.ReservationId[:3], res.Amount,
res.Expiry)
Expand Down
Loading