|
|
|
@ -15,7 +15,6 @@ Pane { |
|
|
|
|
|
|
|
|
|
|
|
property string txid |
|
|
|
property string txid |
|
|
|
property string rawtx |
|
|
|
property string rawtx |
|
|
|
|
|
|
|
|
|
|
|
property alias label: txdetails.label |
|
|
|
property alias label: txdetails.label |
|
|
|
|
|
|
|
|
|
|
|
signal detailsChanged |
|
|
|
signal detailsChanged |
|
|
|
@ -311,9 +310,9 @@ Pane { |
|
|
|
visible: txdetails.canBump || txdetails.canCpfp |
|
|
|
visible: txdetails.canBump || txdetails.canCpfp |
|
|
|
onClicked: { |
|
|
|
onClicked: { |
|
|
|
if (txdetails.canBump) { |
|
|
|
if (txdetails.canBump) { |
|
|
|
var dialog = rbfBumpFeeDialog.createObject(root, { txid: root.txid }) |
|
|
|
var dialog = rbfBumpFeeDialog.createObject(root, { txid: txdetails.txid }) |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
var dialog = cpfpBumpFeeDialog.createObject(root, { txid: root.txid }) |
|
|
|
var dialog = cpfpBumpFeeDialog.createObject(root, { txid: txdetails.txid }) |
|
|
|
} |
|
|
|
} |
|
|
|
dialog.open() |
|
|
|
dialog.open() |
|
|
|
} |
|
|
|
} |
|
|
|
@ -326,7 +325,7 @@ Pane { |
|
|
|
text: qsTr('Cancel Tx') |
|
|
|
text: qsTr('Cancel Tx') |
|
|
|
visible: txdetails.canCancel |
|
|
|
visible: txdetails.canCancel |
|
|
|
onClicked: { |
|
|
|
onClicked: { |
|
|
|
var dialog = rbfCancelDialog.createObject(root, { txid: root.txid }) |
|
|
|
var dialog = rbfCancelDialog.createObject(root, { txid: txdetails.txid }) |
|
|
|
dialog.open() |
|
|
|
dialog.open() |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
@ -400,8 +399,6 @@ Pane { |
|
|
|
TxDetails { |
|
|
|
TxDetails { |
|
|
|
id: txdetails |
|
|
|
id: txdetails |
|
|
|
wallet: Daemon.currentWallet |
|
|
|
wallet: Daemon.currentWallet |
|
|
|
txid: root.txid |
|
|
|
|
|
|
|
rawtx: root.rawtx |
|
|
|
|
|
|
|
onLabelChanged: root.detailsChanged() |
|
|
|
onLabelChanged: root.detailsChanged() |
|
|
|
onConfirmRemoveLocalTx: { |
|
|
|
onConfirmRemoveLocalTx: { |
|
|
|
var dialog = app.messageDialog.createObject(app, { text: message, yesno: true }) |
|
|
|
var dialog = app.messageDialog.createObject(app, { text: message, yesno: true }) |
|
|
|
@ -411,6 +408,13 @@ Pane { |
|
|
|
}) |
|
|
|
}) |
|
|
|
dialog.open() |
|
|
|
dialog.open() |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
Component.onCompleted: { |
|
|
|
|
|
|
|
if (root.txid) { |
|
|
|
|
|
|
|
txdetails.txid = root.txid |
|
|
|
|
|
|
|
} else if (root.rawtx) { |
|
|
|
|
|
|
|
txdetails.rawtx = root.rawtx |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
Connections { |
|
|
|
Connections { |
|
|
|
@ -440,13 +444,14 @@ Pane { |
|
|
|
id: rbfBumpFeeDialog |
|
|
|
id: rbfBumpFeeDialog |
|
|
|
RbfBumpFeeDialog { |
|
|
|
RbfBumpFeeDialog { |
|
|
|
id: dialog |
|
|
|
id: dialog |
|
|
|
|
|
|
|
required property string txid |
|
|
|
rbffeebumper: TxRbfFeeBumper { |
|
|
|
rbffeebumper: TxRbfFeeBumper { |
|
|
|
id: rbffeebumper |
|
|
|
id: rbffeebumper |
|
|
|
wallet: Daemon.currentWallet |
|
|
|
wallet: Daemon.currentWallet |
|
|
|
txid: dialog.txid |
|
|
|
txid: dialog.txid |
|
|
|
} |
|
|
|
} |
|
|
|
onAccepted: { |
|
|
|
onAccepted: { |
|
|
|
root.rawtx = rbffeebumper.getNewTx() |
|
|
|
txdetails.rawtx = rbffeebumper.getNewTx() |
|
|
|
if (txdetails.wallet.canSignWithoutCosigner) { |
|
|
|
if (txdetails.wallet.canSignWithoutCosigner) { |
|
|
|
txdetails.signAndBroadcast() |
|
|
|
txdetails.signAndBroadcast() |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
@ -465,6 +470,7 @@ Pane { |
|
|
|
id: cpfpBumpFeeDialog |
|
|
|
id: cpfpBumpFeeDialog |
|
|
|
CpfpBumpFeeDialog { |
|
|
|
CpfpBumpFeeDialog { |
|
|
|
id: dialog |
|
|
|
id: dialog |
|
|
|
|
|
|
|
required property string txid |
|
|
|
cpfpfeebumper: TxCpfpFeeBumper { |
|
|
|
cpfpfeebumper: TxCpfpFeeBumper { |
|
|
|
id: cpfpfeebumper |
|
|
|
id: cpfpfeebumper |
|
|
|
wallet: Daemon.currentWallet |
|
|
|
wallet: Daemon.currentWallet |
|
|
|
@ -473,7 +479,7 @@ Pane { |
|
|
|
|
|
|
|
|
|
|
|
onAccepted: { |
|
|
|
onAccepted: { |
|
|
|
// replaces parent tx with cpfp tx |
|
|
|
// replaces parent tx with cpfp tx |
|
|
|
root.rawtx = cpfpfeebumper.getNewTx() |
|
|
|
txdetails.rawtx = cpfpfeebumper.getNewTx() |
|
|
|
if (txdetails.wallet.canSignWithoutCosigner) { |
|
|
|
if (txdetails.wallet.canSignWithoutCosigner) { |
|
|
|
txdetails.signAndBroadcast() |
|
|
|
txdetails.signAndBroadcast() |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
@ -492,6 +498,7 @@ Pane { |
|
|
|
id: rbfCancelDialog |
|
|
|
id: rbfCancelDialog |
|
|
|
RbfCancelDialog { |
|
|
|
RbfCancelDialog { |
|
|
|
id: dialog |
|
|
|
id: dialog |
|
|
|
|
|
|
|
required property string txid |
|
|
|
txcanceller: TxCanceller { |
|
|
|
txcanceller: TxCanceller { |
|
|
|
id: txcanceller |
|
|
|
id: txcanceller |
|
|
|
wallet: Daemon.currentWallet |
|
|
|
wallet: Daemon.currentWallet |
|
|
|
@ -499,7 +506,7 @@ Pane { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
onAccepted: { |
|
|
|
onAccepted: { |
|
|
|
root.rawtx = txcanceller.getNewTx() |
|
|
|
txdetails.rawtx = txcanceller.getNewTx() |
|
|
|
if (txdetails.wallet.canSignWithoutCosigner) { |
|
|
|
if (txdetails.wallet.canSignWithoutCosigner) { |
|
|
|
txdetails.signAndBroadcast() |
|
|
|
txdetails.signAndBroadcast() |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
|