mirror of
https://github.com/sparrowwallet/sparrow.git
synced 2026-08-11 09:08:02 +00:00
minor updates to handle psbtv2 as the default internal representation
This commit is contained in:
@@ -1911,11 +1911,6 @@ public class AppController implements Initializable {
|
||||
}
|
||||
|
||||
private void addTransactionTab(String name, File file, PSBT psbt) {
|
||||
//Convert to PSBTv0 first as the consistent internal representation
|
||||
if(psbt.getVersion() != null && psbt.getVersion() >= 2) {
|
||||
psbt.convertVersion(0);
|
||||
}
|
||||
|
||||
//Add any missing previous outputs if available in open wallets
|
||||
for(PSBTInput psbtInput : psbt.getPsbtInputs()) {
|
||||
if(psbtInput.getUtxo() == null) {
|
||||
@@ -2565,7 +2560,7 @@ public class AppController implements Initializable {
|
||||
if(event instanceof TransactionTabSelectedEvent) {
|
||||
TransactionTabSelectedEvent txTabEvent = (TransactionTabSelectedEvent)event;
|
||||
TransactionTabData transactionTabData = txTabEvent.getTransactionTabData();
|
||||
if(transactionTabData.getPsbt() == null || transactionTabData.getPsbt().getTransaction() != transactionTabData.getTransaction()) {
|
||||
if(transactionTabData.getPsbt() == null || !transactionTabData.getPsbt().getTransaction().getTxId().equals(transactionTabData.getTransaction().getTxId())) {
|
||||
saveTransaction.setVisible(true);
|
||||
saveTransaction.setDisable(false);
|
||||
} else {
|
||||
|
||||
@@ -67,7 +67,7 @@ public class Payjoin {
|
||||
}
|
||||
|
||||
try {
|
||||
String base64Psbt = psbt.getPublicCopy().toBase64String();
|
||||
String base64Psbt = psbt.getForExport().getPublicCopy().toBase64String();
|
||||
|
||||
String appendQuery = "v=1&minfeerate=" + AppServices.getMinimumRelayFeeRate();
|
||||
int changeOutputIndex = getChangeOutputIndex();
|
||||
|
||||
Reference in New Issue
Block a user