Putting a check in for over-large payment intervals.

Fixes/Closes #99
master
Alexander Blair 7 years ago
parent 9b1c366b8c
commit 9c641aca00

@ -347,7 +347,11 @@ let paymentQueue = async.queue(function (paymentDetails, callback) {
paymentQueue.drain = function(){
extraPaymentRound = false;
paymentTimer = setInterval(makePayments, global.config.payout.timer * 60 * 1000);
if (global.config.payout.timer > 35791){
console.error("Payout timer is too high. Please use a value under 35791 to avoid overflows.");
} else {
paymentTimer = setInterval(makePayments, global.config.payout.timer * 60 * 1000);
}
global.database.setCache('lastPaymentCycle', Math.floor(Date.now()/1000));
sock.send(['payments', 'complete']);
};
@ -685,10 +689,6 @@ function init() {
setInterval(updateShapeshiftCompletion, 90000);
setInterval(determineBestExchange, 60000);
}
setInterval(function () {
global.support.rpcWallet("sweep_dust", [], function () {
});
}, 86400000 * 3);
setInterval(function () {
global.support.rpcWallet("store", [], function () {
});

Loading…
Cancel
Save