|
|
@ -116,9 +116,9 @@ Rectangle {
|
|
|
|
Layout.fillWidth: true
|
|
|
|
Layout.fillWidth: true
|
|
|
|
textFormat: Text.RichText
|
|
|
|
textFormat: Text.RichText
|
|
|
|
text: "<style type='text/css'>a {text-decoration: none; color: #FF6C3C; font-size: 14px;}</style>" +
|
|
|
|
text: "<style type='text/css'>a {text-decoration: none; color: #FF6C3C; font-size: 14px;}</style>" +
|
|
|
|
qsTr("Blackballed outputs") + " <a href='#'>" + qsTr("Help") + "</a>" + translationManager.emptyString
|
|
|
|
qsTr("Outputs marked as spent") + " <a href='#'>" + qsTr("Help") + "</a>" + translationManager.emptyString
|
|
|
|
onLinkActivated: {
|
|
|
|
onLinkActivated: {
|
|
|
|
sharedRingDBDialog.title = qsTr("Blackballed outputs") + translationManager.emptyString;
|
|
|
|
sharedRingDBDialog.title = qsTr("Outputs marked as spent") + translationManager.emptyString;
|
|
|
|
sharedRingDBDialog.text = qsTr(
|
|
|
|
sharedRingDBDialog.text = qsTr(
|
|
|
|
"In order to obscure which inputs in a Monero transaction are being spent, a third party should not be able " +
|
|
|
|
"In order to obscure which inputs in a Monero transaction are being spent, a third party should not be able " +
|
|
|
|
"to tell which inputs in a ring are already known to be spent. Being able to do so would weaken the protection " +
|
|
|
|
"to tell which inputs in a ring are already known to be spent. Being able to do so would weaken the protection " +
|
|
|
@ -129,7 +129,7 @@ Rectangle {
|
|
|
|
"transactions. Such a list is maintained by the Monero project and is available on the getmonero.org website, " +
|
|
|
|
"transactions. Such a list is maintained by the Monero project and is available on the getmonero.org website, " +
|
|
|
|
"and you can import this list here.<br>" +
|
|
|
|
"and you can import this list here.<br>" +
|
|
|
|
"Alternatively, you can scan the blockchain (and the blockchain of key-reusing Monero clones) yourself " +
|
|
|
|
"Alternatively, you can scan the blockchain (and the blockchain of key-reusing Monero clones) yourself " +
|
|
|
|
"using the monero-blockchain-blackball tool to create a list of known spent outputs.<br>"
|
|
|
|
"using the monero-blockchain-mark-spent-outputs tool to create a list of known spent outputs.<br>"
|
|
|
|
)
|
|
|
|
)
|
|
|
|
sharedRingDBDialog.icon = StandardIcon.Information
|
|
|
|
sharedRingDBDialog.icon = StandardIcon.Information
|
|
|
|
sharedRingDBDialog.open()
|
|
|
|
sharedRingDBDialog.open()
|
|
|
@ -153,7 +153,7 @@ Rectangle {
|
|
|
|
|
|
|
|
|
|
|
|
FileDialog {
|
|
|
|
FileDialog {
|
|
|
|
id: loadBlackballFileDialog
|
|
|
|
id: loadBlackballFileDialog
|
|
|
|
title: qsTr("Please choose a file to load blackballed outputs from") + translationManager.emptyString;
|
|
|
|
title: qsTr("Please choose a file from which to load outputs to mark as spent") + translationManager.emptyString;
|
|
|
|
folder: "file://"
|
|
|
|
folder: "file://"
|
|
|
|
nameFilters: [ "*"]
|
|
|
|
nameFilters: [ "*"]
|
|
|
|
|
|
|
|
|
|
|
@ -171,7 +171,7 @@ Rectangle {
|
|
|
|
fontSize: mainLayout.lineEditFontSize
|
|
|
|
fontSize: mainLayout.lineEditFontSize
|
|
|
|
placeholderText: qsTr("Path to file") + "..." + translationManager.emptyString
|
|
|
|
placeholderText: qsTr("Path to file") + "..." + translationManager.emptyString
|
|
|
|
labelFontSize: 14 * scaleRatio
|
|
|
|
labelFontSize: 14 * scaleRatio
|
|
|
|
labelText: qsTr("Filename with outputs to blackball") + ":" + translationManager.emptyString
|
|
|
|
labelText: qsTr("Filename with outputs to mark as spent") + ":" + translationManager.emptyString
|
|
|
|
copyButton: true
|
|
|
|
copyButton: true
|
|
|
|
readOnly: false
|
|
|
|
readOnly: false
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -211,7 +211,7 @@ Rectangle {
|
|
|
|
id: blackballOutputAmountLine
|
|
|
|
id: blackballOutputAmountLine
|
|
|
|
fontSize: mainLayout.lineEditFontSize
|
|
|
|
fontSize: mainLayout.lineEditFontSize
|
|
|
|
labelFontSize: 14 * scaleRatio
|
|
|
|
labelFontSize: 14 * scaleRatio
|
|
|
|
labelText: qsTr("Or manually blackball/unblackball a single output:") + translationManager.emptyString
|
|
|
|
labelText: qsTr("Or manually mark a single output as spent/unspent:") + translationManager.emptyString
|
|
|
|
placeholderText: qsTr("Paste output amount") + "..." + translationManager.emptyString
|
|
|
|
placeholderText: qsTr("Paste output amount") + "..." + translationManager.emptyString
|
|
|
|
readOnly: false
|
|
|
|
readOnly: false
|
|
|
|
width: mainLayout.editWidth / 2
|
|
|
|
width: mainLayout.editWidth / 2
|
|
|
@ -235,7 +235,7 @@ Rectangle {
|
|
|
|
|
|
|
|
|
|
|
|
StandardButton {
|
|
|
|
StandardButton {
|
|
|
|
id: blackballButton
|
|
|
|
id: blackballButton
|
|
|
|
text: qsTr("Blackball") + translationManager.emptyString
|
|
|
|
text: qsTr("Mark as spent") + translationManager.emptyString
|
|
|
|
small: true
|
|
|
|
small: true
|
|
|
|
enabled: !!appWindow.currentWallet && validUnsigned(blackballOutputAmountLine.text) && validUnsigned(blackballOutputOffsetLine.text)
|
|
|
|
enabled: !!appWindow.currentWallet && validUnsigned(blackballOutputAmountLine.text) && validUnsigned(blackballOutputOffsetLine.text)
|
|
|
|
onClicked: appWindow.currentWallet.blackballOutput(blackballOutputAmountLine.text, blackballOutputOffsetLine.text)
|
|
|
|
onClicked: appWindow.currentWallet.blackballOutput(blackballOutputAmountLine.text, blackballOutputOffsetLine.text)
|
|
|
@ -244,7 +244,7 @@ Rectangle {
|
|
|
|
StandardButton {
|
|
|
|
StandardButton {
|
|
|
|
id: unblackballButton
|
|
|
|
id: unblackballButton
|
|
|
|
anchors.right: parent.right
|
|
|
|
anchors.right: parent.right
|
|
|
|
text: qsTr("Unblackball") + translationManager.emptyString
|
|
|
|
text: qsTr("Mark as unspent") + translationManager.emptyString
|
|
|
|
small: true
|
|
|
|
small: true
|
|
|
|
enabled: !!appWindow.currentWallet && validUnsigned(blackballOutputAmountLine.text) && validUnsigned(blackballOutputOffsetLine.text)
|
|
|
|
enabled: !!appWindow.currentWallet && validUnsigned(blackballOutputAmountLine.text) && validUnsigned(blackballOutputOffsetLine.text)
|
|
|
|
onClicked: appWindow.currentWallet.unblackballOutput(blackballOutputAmountLine.text, blackballOutputOffsetLine.text)
|
|
|
|
onClicked: appWindow.currentWallet.unblackballOutput(blackballOutputAmountLine.text, blackballOutputOffsetLine.text)
|
|
|
|