Updated to new Core 0.16 Format (getaddressinfo)
Since the new Wallet release of Bitcoin Core, they introduced a new Validation format for addresses. Validateaddress is not longer working.
This commit is contained in:
parent
aa44f3d410
commit
a418dcd868
@ -70,6 +70,17 @@ function SetupForPool(logger, poolOptions, setupFinished){
|
|||||||
callback(true);
|
callback(true);
|
||||||
}
|
}
|
||||||
else if (!result.response || !result.response.ismine) {
|
else if (!result.response || !result.response.ismine) {
|
||||||
|
daemon.cmd('getaddressinfo', [poolOptions.address], function(result) {
|
||||||
|
if (result.error){
|
||||||
|
logger.error(logSystem, logComponent, 'Error with payment processing daemon ' + JSON.stringify(result.error));
|
||||||
|
callback(true);
|
||||||
|
}
|
||||||
|
else if (!result.response || !result.response.ismine) {
|
||||||
|
logger.error(logSystem, logComponent,
|
||||||
|
'Daemon does not own pool address - payment processing can not be done with this daemon, '
|
||||||
|
+ JSON.stringify(result.response));
|
||||||
|
callback(true);
|
||||||
|
}
|
||||||
logger.error(logSystem, logComponent,
|
logger.error(logSystem, logComponent,
|
||||||
'Daemon does not own pool address - payment processing can not be done with this daemon, '
|
'Daemon does not own pool address - payment processing can not be done with this daemon, '
|
||||||
+ JSON.stringify(result.response));
|
+ JSON.stringify(result.response));
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user