mirror of
https://github.com/monero-project/monero-gui.git
synced 2026-04-12 08:17:27 -04:00
Merge pull request #2220
8d49ad9tx_key not displayed by default, click to reveal (ph4r05)6d03d63get_tx_key, get_tx_proof, tx_spend_proof async (ph4r05)
This commit is contained in:
18
main.qml
18
main.qml
@@ -1002,11 +1002,21 @@ ApplicationWindow {
|
||||
", address: ", address,
|
||||
", message: ", message);
|
||||
|
||||
var result;
|
||||
function spendProofFallback(txid, result){
|
||||
if (!result || result.indexOf("error|") === 0) {
|
||||
currentWallet.getSpendProofAsync(txid, message, txProofComputed);
|
||||
} else {
|
||||
txProofComputed(txid, result);
|
||||
}
|
||||
}
|
||||
|
||||
if (address.length > 0)
|
||||
result = currentWallet.getTxProof(txid, address, message);
|
||||
if (!result || result.indexOf("error|") === 0)
|
||||
result = currentWallet.getSpendProof(txid, message);
|
||||
currentWallet.getTxProofAsync(txid, address, message, spendProofFallback);
|
||||
else
|
||||
spendProofFallback(txid, null);
|
||||
}
|
||||
|
||||
function txProofComputed(txid, result){
|
||||
informationPopup.title = qsTr("Payment proof") + translationManager.emptyString;
|
||||
if (result.indexOf("error|") === 0) {
|
||||
var errorString = result.split("|")[1];
|
||||
|
||||
Reference in New Issue
Block a user