From 2ce4ff391c9ca37f3567b6e51bf4b36daad6fdc3 Mon Sep 17 00:00:00 2001 From: hashtobewild Date: Sat, 22 Sep 2018 19:55:39 +0200 Subject: [PATCH] reverted adding conditional (#18) bug/fixed-conditional-getinfo --- lib/pool.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/pool.js b/lib/pool.js index 41b2a1a..c58d496 100644 --- a/lib/pool.js +++ b/lib/pool.js @@ -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;