mirror of https://github.com/BTCPrivate/z-nomp.git
remove paytxfee functionality - it doesnt really help
This commit is contained in:
parent
b5c9d0174b
commit
d744dc2857
|
@ -429,18 +429,7 @@ function SetupForPool(logger, poolOptions){
|
|||
// 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
|
||||
// then minimumReserve value. Because in this case even if feeCollectAccount account will have negative balance
|
||||
// total wallet balance will be positive and feeCollectAccount account will be refilled during next payment processing.
|
||||
// But to be as much accurate as we can we use getinfo command to retrieve minimum tx fee (paytxfee).
|
||||
daemon.cmd('getinfo', [], function(result){
|
||||
|
||||
var paytxfee;
|
||||
if (!result[0].response || !result[0].response.paytxfee){
|
||||
logger.error(logSystem, logComponent, 'Daemon does not have paytxfee property on getinfo method results - withdrawal processing could be broken with this daemon');
|
||||
paytxfee = 0;
|
||||
} else {
|
||||
paytxfee = result[0].response.paytxfee;
|
||||
}
|
||||
|
||||
var withdrawalAmount = results[0].response - paytxfee;
|
||||
var withdrawalAmount = results[0].response;
|
||||
|
||||
if (withdrawalAmount < processingConfig.feeWithdrawalThreshold){
|
||||
logger.debug(logSystem, logComponent, 'Not enough profit to withdraw yet');
|
||||
|
@ -461,8 +450,6 @@ function SetupForPool(logger, poolOptions){
|
|||
}
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
};
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue