mirror of
https://github.com/sparrowwallet/sparrow.git
synced 2024-12-25 05:06:45 +00:00
update confirmation status for opened unconfirmed wallet txes when mined
This commit is contained in:
parent
e565786bbc
commit
eceaf40430
1 changed files with 6 additions and 0 deletions
|
@ -1387,6 +1387,12 @@ public class HeadersController extends TransactionFormController implements Init
|
||||||
if(!changedLabelEntries.isEmpty()) {
|
if(!changedLabelEntries.isEmpty()) {
|
||||||
Platform.runLater(() -> EventManager.get().post(new WalletEntryLabelsChangedEvent(event.getWallet(), changedLabelEntries)));
|
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());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue