From f88ed935498a35ee2e68c3dcd1afefd3b4984317 Mon Sep 17 00:00:00 2001 From: AJ ONeal Date: Tue, 13 Sep 2022 23:22:45 -0600 Subject: [PATCH 1/2] fix: swap allowAbsurdFees for maxFeeRate for Dash Core v18 --- lib/transactions.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/transactions.js b/lib/transactions.js index 7cb4030b0..793d8ac4a 100644 --- a/lib/transactions.js +++ b/lib/transactions.js @@ -355,7 +355,7 @@ TxController.prototype.sendix = function(req, res) { code:1 }, res); } - var options = {allowAbsurdFees: false, isInstantSend: true}; + var options = {maxFeeRate: 10000, isInstantSend: true}; this.node.sendTransaction(req.body.rawtx, options, function(err, txid) { if(err) { // TODO handle specific errors From 306e44e7c83c64714b659ff246265b898eeba914 Mon Sep 17 00:00:00 2001 From: AJ ONeal Date: Sat, 17 Sep 2022 02:53:01 -0600 Subject: [PATCH 2/2] f: 1000 => 0.00001000 --- lib/transactions.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/transactions.js b/lib/transactions.js index 793d8ac4a..477b91076 100644 --- a/lib/transactions.js +++ b/lib/transactions.js @@ -355,7 +355,7 @@ TxController.prototype.sendix = function(req, res) { code:1 }, res); } - var options = {maxFeeRate: 10000, isInstantSend: true}; + var options = {maxFeeRate: 0.00010000, isInstantSend: true}; this.node.sendTransaction(req.body.rawtx, options, function(err, txid) { if(err) { // TODO handle specific errors