some syntax cleaning
This commit is contained in:
parent
a3b3b17d43
commit
68bea9ea7d
@ -418,7 +418,7 @@ function SetupForPool(logger, poolOptions){
|
|||||||
|
|
||||||
if (!processingConfig.feeWithdrawalThreshold) return;
|
if (!processingConfig.feeWithdrawalThreshold) return;
|
||||||
|
|
||||||
logger.debug(logSystem, logComponent, 'Trying to withdrawal profit');
|
logger.debug(logSystem, logComponent, 'Profit withdrawal started');
|
||||||
daemon.cmd('getbalance', [processingConfig.feeCollectAccount], function(results){
|
daemon.cmd('getbalance', [processingConfig.feeCollectAccount], function(results){
|
||||||
|
|
||||||
// We have to pay some tx fee here too but maybe we shoudn't really care about it too much as long as fee is less
|
// We have to pay some tx fee here too but maybe we shoudn't really care about it too much as long as fee is less
|
||||||
@ -438,7 +438,7 @@ function SetupForPool(logger, poolOptions){
|
|||||||
var withdrawalAmount = results[0].response - paytxfee;
|
var withdrawalAmount = results[0].response - paytxfee;
|
||||||
|
|
||||||
if (withdrawalAmount < processingConfig.feeWithdrawalThreshold){
|
if (withdrawalAmount < processingConfig.feeWithdrawalThreshold){
|
||||||
logger.debug(logSystem, logComponent, 'Not enough profit to withdrawal yet');
|
logger.debug(logSystem, logComponent, 'Not enough profit to withdraw yet');
|
||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
|
|
||||||
@ -447,7 +447,7 @@ function SetupForPool(logger, poolOptions){
|
|||||||
|
|
||||||
daemon.cmd('sendmany', [processingConfig.feeCollectAccount, withdrawal], function(results){
|
daemon.cmd('sendmany', [processingConfig.feeCollectAccount, withdrawal], function(results){
|
||||||
if (results[0].error){
|
if (results[0].error){
|
||||||
logger.debug(logSystem, logComponent, 'Withdrawal profit finished - error with sendmany ' + JSON.stringify(results[0].error));
|
logger.debug(logSystem, logComponent, 'Profit withdrawal finished - error with sendmany ' + JSON.stringify(results[0].error));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
logger.debug(logSystem, logComponent, 'Profit sent, a total of ' + withdrawalAmount + ' ' + poolOptions.coin.symbol +
|
logger.debug(logSystem, logComponent, 'Profit sent, a total of ' + withdrawalAmount + ' ' + poolOptions.coin.symbol +
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user