From f8023e9a7217e07b4b02da33e07ca32379f2bf59 Mon Sep 17 00:00:00 2001 From: Craig Raw Date: Fri, 16 Apr 2021 14:05:53 +0200 Subject: [PATCH] add (non-final) suffix to fee rate field when tx is lacking signatures --- .../sparrowwallet/sparrow/transaction/HeadersController.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/sparrowwallet/sparrow/transaction/HeadersController.java b/src/main/java/com/sparrowwallet/sparrow/transaction/HeadersController.java index 380e081a..362f1292 100644 --- a/src/main/java/com/sparrowwallet/sparrow/transaction/HeadersController.java +++ b/src/main/java/com/sparrowwallet/sparrow/transaction/HeadersController.java @@ -489,7 +489,7 @@ public class HeadersController extends TransactionFormController implements Init private void updateFee(Long feeAmt) { fee.setValue(feeAmt); double feeRateAmt = feeAmt.doubleValue() / headersForm.getTransaction().getVirtualSize(); - feeRate.setText(String.format("%.2f", feeRateAmt) + " sats/vByte"); + feeRate.setText(String.format("%.2f", feeRateAmt) + " sats/vByte" + (headersForm.isTransactionFinalized() ? "" : " (non-final)")); } private void updateBlockchainForm(BlockTransaction blockTransaction, Integer currentHeight) {