mirror of
https://github.com/sparrowwallet/sparrow.git
synced 2024-11-04 21:36:45 +00:00
minor fix
This commit is contained in:
parent
800512ee5b
commit
e93ec08ba7
1 changed files with 6 additions and 2 deletions
|
@ -85,7 +85,7 @@ public class OutputController extends TransactionFormController implements Initi
|
||||||
|
|
||||||
if(outputForm.getPsbt() != null) {
|
if(outputForm.getPsbt() != null) {
|
||||||
spent.setText("Unspent");
|
spent.setText("Unspent");
|
||||||
} else if(outputForm.getOutputTransactions() != null && outputForm.getIndex() < outputForm.getMaxOutputFetched()) {
|
} else if(outputForm.getOutputTransactions() != null) {
|
||||||
updateSpent(outputForm.getOutputTransactions());
|
updateSpent(outputForm.getOutputTransactions());
|
||||||
} else {
|
} else {
|
||||||
spent.setText("Unknown");
|
spent.setText("Unknown");
|
||||||
|
@ -97,7 +97,11 @@ public class OutputController extends TransactionFormController implements Initi
|
||||||
|
|
||||||
private void updateSpent(List<BlockTransaction> outputTransactions) {
|
private void updateSpent(List<BlockTransaction> outputTransactions) {
|
||||||
int outputIndex = outputForm.getIndex();
|
int outputIndex = outputForm.getIndex();
|
||||||
|
if(outputIndex < outputForm.getMaxOutputFetched()) {
|
||||||
spent.setText("Unspent");
|
spent.setText("Unspent");
|
||||||
|
} else {
|
||||||
|
spent.setText("Unknown");
|
||||||
|
}
|
||||||
|
|
||||||
if(outputIndex >= 0 && outputIndex < outputTransactions.size()) {
|
if(outputIndex >= 0 && outputIndex < outputTransactions.size()) {
|
||||||
BlockTransaction outputBlockTransaction = outputTransactions.get(outputIndex);
|
BlockTransaction outputBlockTransaction = outputTransactions.get(outputIndex);
|
||||||
|
|
Loading…
Reference in a new issue