mirror of
https://github.com/monero-project/monero-gui.git
synced 2026-04-16 14:57:26 -04:00
Priority aka fee multiplier integrated
This commit is contained in:
15
main.qml
15
main.qml
@@ -169,15 +169,18 @@ ApplicationWindow {
|
||||
return wallets.length > 0;
|
||||
}
|
||||
|
||||
function handlePayment(address, paymentId, amount, mixinCount) {
|
||||
console.log("Process payment here: ", address, paymentId, amount, mixinCount)
|
||||
// TODO: handle payment id
|
||||
// TODO: handle fee;
|
||||
// TODO: handle mixins
|
||||
function handlePayment(address, paymentId, amount, mixinCount, priority) {
|
||||
console.log("Creating transaction: ")
|
||||
console.log("\taddress: ", address,
|
||||
", payment_id: ", paymentId,
|
||||
", amount: ", amount,
|
||||
", mixins: ", mixinCount,
|
||||
", priority: ", priority);
|
||||
|
||||
var amountxmr = walletManager.amountFromString(amount);
|
||||
|
||||
console.log("integer amount: ", amountxmr);
|
||||
var pendingTransaction = wallet.createTransaction(address, amountxmr, mixinCount);
|
||||
var pendingTransaction = wallet.createTransaction(address, paymentId, amountxmr, mixinCount, priority);
|
||||
if (pendingTransaction.status !== PendingTransaction.Status_Ok) {
|
||||
console.error("Can't create transaction: ", pendingTransaction.errorString);
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user