handle csv export with mempool txes

This commit is contained in:
Craig Raw 2021-03-11 10:08:41 +02:00
parent e45fdc72a0
commit 4dd52eb9dd

View file

@ -114,7 +114,7 @@ public class TransactionsController extends WalletFormController implements Init
writer.writeRecord(new String[] {"Date", "Label", "Value", "Balance"}); writer.writeRecord(new String[] {"Date", "Label", "Value", "Balance"});
for(Entry entry : walletTransactionsEntry.getChildren()) { for(Entry entry : walletTransactionsEntry.getChildren()) {
TransactionEntry txEntry = (TransactionEntry)entry; TransactionEntry txEntry = (TransactionEntry)entry;
writer.write(EntryCell.DATE_FORMAT.format(txEntry.getBlockTransaction().getDate())); writer.write(txEntry.getBlockTransaction().getDate() == null ? "Unconfirmed" : EntryCell.DATE_FORMAT.format(txEntry.getBlockTransaction().getDate()));
writer.write(txEntry.getLabel()); writer.write(txEntry.getLabel());
writer.write(getCoinValue(txEntry.getValue())); writer.write(getCoinValue(txEntry.getValue()));
writer.write(getCoinValue(txEntry.getBalance())); writer.write(getCoinValue(txEntry.getBalance()));