Skip to content

Commit

Permalink
reverted adding conditional (#18)
Browse files Browse the repository at this point in the history
bug/fixed-conditional-getinfo
  • Loading branch information
hashtobewild authored and GaryChicago committed Sep 22, 2018
1 parent 54e99cd commit 2ce4ff3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/pool.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 2ce4ff3

Please sign in to comment.