mirror of
https://github.com/sparrowwallet/sparrow.git
synced 2024-12-24 12:46:45 +00:00
allow external unconfirmed utxos to be spent
This commit is contained in:
parent
e9d0491b42
commit
e62b44bbbe
4 changed files with 6 additions and 5 deletions
2
drongo
2
drongo
|
@ -1 +1 @@
|
||||||
Subproject commit 85e8b97a8c8d21bfbb76096285eec95d28384090
|
Subproject commit a25dfa5c7671023b60d1773cf603b4d46885a546
|
|
@ -72,7 +72,7 @@ public class UtxosChart extends BarChart<String, Number> {
|
||||||
|
|
||||||
private String getCategoryName(Entry entry) {
|
private String getCategoryName(Entry entry) {
|
||||||
if(entry.getLabel() != null && !entry.getLabel().isEmpty()) {
|
if(entry.getLabel() != null && !entry.getLabel().isEmpty()) {
|
||||||
return entry.getLabel().length() > 15 ? entry.getLabel().substring(0, 15) + "..." : entry.getLabel();
|
return entry.getLabel().length() > 15 ? entry.getLabel().substring(0, 15) + "..." : entry.getLabel() + "\n" + ((UtxoEntry)entry).getDescription();
|
||||||
}
|
}
|
||||||
|
|
||||||
return ((UtxoEntry)entry).getDescription();
|
return ((UtxoEntry)entry).getDescription();
|
||||||
|
|
|
@ -8,6 +8,7 @@ import com.sparrowwallet.drongo.wallet.Wallet;
|
||||||
import com.sparrowwallet.sparrow.EventManager;
|
import com.sparrowwallet.sparrow.EventManager;
|
||||||
import com.sparrowwallet.sparrow.control.DateLabel;
|
import com.sparrowwallet.sparrow.control.DateLabel;
|
||||||
import com.sparrowwallet.sparrow.event.WalletEntryLabelChangedEvent;
|
import com.sparrowwallet.sparrow.event.WalletEntryLabelChangedEvent;
|
||||||
|
import com.sparrowwallet.sparrow.io.Config;
|
||||||
|
|
||||||
import java.util.Collections;
|
import java.util.Collections;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
@ -58,7 +59,7 @@ public class HashIndexEntry extends Entry implements Comparable<HashIndexEntry>
|
||||||
}
|
}
|
||||||
|
|
||||||
public boolean isSpendable() {
|
public boolean isSpendable() {
|
||||||
return !isSpent() && (hashIndex.getHeight() > 0 || getWallet().allInputsFromWallet(hashIndex.getHash())) && (hashIndex.getStatus() == null || hashIndex.getStatus() != Status.FROZEN);
|
return !isSpent() && (hashIndex.getHeight() > 0 || Config.get().isIncludeMempoolChange()) && (hashIndex.getStatus() == null || hashIndex.getStatus() != Status.FROZEN);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
|
@ -86,9 +86,9 @@
|
||||||
<UnlabeledToggleSwitch fx:id="groupByAddress" />
|
<UnlabeledToggleSwitch fx:id="groupByAddress" />
|
||||||
<HelpLabel helpText="Group UTXOs by address when sending to improve privacy by only sending from an address once."/>
|
<HelpLabel helpText="Group UTXOs by address when sending to improve privacy by only sending from an address once."/>
|
||||||
</Field>
|
</Field>
|
||||||
<Field text="Use mempool change:">
|
<Field text="Allow unconfirmed:">
|
||||||
<UnlabeledToggleSwitch fx:id="includeMempoolChange" />
|
<UnlabeledToggleSwitch fx:id="includeMempoolChange" />
|
||||||
<HelpLabel helpText="Allow a wallet to spend UTXOs that are still in the mempool where all their inputs are from that wallet."/>
|
<HelpLabel helpText="Allow a wallet to spend UTXOs that are still in the mempool."/>
|
||||||
</Field>
|
</Field>
|
||||||
</Fieldset>
|
</Fieldset>
|
||||||
<Fieldset inputGrow="SOMETIMES" text="Notifications" styleClass="wideLabelFieldSet">
|
<Fieldset inputGrow="SOMETIMES" text="Notifications" styleClass="wideLabelFieldSet">
|
||||||
|
|
Loading…
Reference in a new issue