From e0152b8c464b1c354ef7162168de855d7f0371ee Mon Sep 17 00:00:00 2001 From: Alexander Blair Date: Thu, 12 Oct 2017 12:11:07 -0700 Subject: [PATCH] Update to AEON and the config_entries. --- lib/payment_systems/aeon.js | 12 ++++++------ sql_sync/config_entries.json | 16 ++++++++++++++++ 2 files changed, 22 insertions(+), 6 deletions(-) diff --git a/lib/payment_systems/aeon.js b/lib/payment_systems/aeon.js index d46abfa..46127df 100644 --- a/lib/payment_systems/aeon.js +++ b/lib/payment_systems/aeon.js @@ -98,8 +98,8 @@ function Payee(amount, address, paymentID, bitcoin) { address: this.address } ], - fee: 10000000000, - unlock_time: 0, + fee: global.config.payout.fee, + unlock_time: global.config.payout.unlock_time, mixin: global.config.payout.mixIn, payment_id: this.paymentID }; @@ -131,8 +131,8 @@ function Payee(amount, address, paymentID, bitcoin) { address: this.address } ], - fee: 10000000000, - unlock_time: 0, + fee: global.config.payout.fee, + unlock_time: global.config.payout.unlock_time, mixin: global.config.payout.mixIn }; let identifier = this.id; @@ -211,8 +211,8 @@ function makePayments() { let paymentDetails = { destinations: paymentDestinations.splice(0, global.config.payout.maxPaymentTxns), mixin: global.config.payout.mixIn, - fee: 10000000000, - unlock_time: 0 + fee: global.config.payout.fee, + unlock_time: global.config.payout.unlock_time }; console.log("Paying out: " + paymentDetails.destinations.length + " people"); paymentQueue.push(paymentDetails, function (body) { //jshint ignore:line diff --git a/sql_sync/config_entries.json b/sql_sync/config_entries.json index fbd2f2d..8d320da 100644 --- a/sql_sync/config_entries.json +++ b/sql_sync/config_entries.json @@ -558,5 +558,21 @@ "item_value": "0", "item_type": "int", "Item_desc": "Payout priority setting. 0 = use default (4x fee); 1 = low prio (1x fee)" + }, + { + "id": 76, + "module": "payout", + "item": "fee", + "item_value": "10000000000", + "item_type": "int", + "Item_desc": "Atomic units of coin to use ass a fee" + }, + { + "id": 77, + "module": "payout", + "item": "unlock_time", + "item_value": "0", + "item_type": "int", + "Item_desc": "Number of blocks assumed before the payout unlocks." } ]