Browse Source

sort listinvoices and listsendpays by order of creation.

nifty/pset-pre
fiatjaf 4 years ago
committed by Christian Decker
parent
commit
96452eafb7
  1. 3
      wallet/invoices.c
  2. 3
      wallet/wallet.c

3
wallet/invoices.c

@ -441,7 +441,8 @@ bool invoices_iterate(struct invoices *invoices,
", bolt11"
", description"
", features"
" FROM invoices;"));
" FROM invoices"
" ORDER BY id;"));
db_query_prepared(stmt);
it->p = stmt;
} else

3
wallet/wallet.c

@ -2797,7 +2797,8 @@ wallet_payment_list(const tal_t *ctx,
", failonionreply"
", total_msat"
", partid"
" FROM payments;"));
" FROM payments"
" ORDER BY id;"));
}
db_query_prepared(stmt);

Loading…
Cancel
Save