reverted adding conditional (#18)

bug/fixed-conditional-getinfo
This commit is contained in:
hashtobewild 2018-09-22 19:55:39 +02:00 committed by nettts
parent 54e99cd03a
commit 2ce4ff391c
1 changed files with 1 additions and 1 deletions

View File

@ -438,7 +438,7 @@ var pool = module.exports = function pool(options, authorizeFn) {
return util.addressToScript(rpcResults.validateaddress.address);
})();
options.testnet = options.coin.hasGetInfo ? rpcResults.getblockchaininfo.chain === "test" : rpcResults.getinfo.testnet;
options.testnet = options.coin.hasGetInfo ? rpcResults.getinfo.testnet : rpcResults.getblockchaininfo.chain === "test";
options.protocolVersion = options.coin.hasGetInfo ? rpcResults.getinfo.protocolversion : rpcResults.getnetworkinfo.protocolversion;
var tempDifficulty = options.coin.hasGetInfo ? rpcResults.getinfo.difficulty : rpcResults.getblockchaininfo.difficulty;