From eceaf4043041ce4e4ed413178384a19660bf58e4 Mon Sep 17 00:00:00 2001 From: Craig Raw Date: Thu, 28 Apr 2022 11:22:24 +0200 Subject: [PATCH] update confirmation status for opened unconfirmed wallet txes when mined --- .../sparrow/transaction/HeadersController.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/main/java/com/sparrowwallet/sparrow/transaction/HeadersController.java b/src/main/java/com/sparrowwallet/sparrow/transaction/HeadersController.java index b816f578..c5149979 100644 --- a/src/main/java/com/sparrowwallet/sparrow/transaction/HeadersController.java +++ b/src/main/java/com/sparrowwallet/sparrow/transaction/HeadersController.java @@ -1387,6 +1387,12 @@ public class HeadersController extends TransactionFormController implements Init if(!changedLabelEntries.isEmpty()) { Platform.runLater(() -> EventManager.get().post(new WalletEntryLabelsChangedEvent(event.getWallet(), changedLabelEntries))); } + } else if(headersForm.getBlockTransaction() != null && headersForm.getBlockTransaction().getHeight() <= 0) { + BlockTransaction walletTransaction = event.getWallet().getWalletTransaction(headersForm.getBlockTransaction().getHash()); + if(walletTransaction != null && walletTransaction.getHeight() > 0) { + headersForm.setBlockTransaction(walletTransaction); + updateBlockchainForm(headersForm.getBlockTransaction(), AppServices.getCurrentBlockHeight()); + } } }