rpc: fix getinfo. see #165.

This commit is contained in:
Christopher Jeffrey 2017-03-13 21:03:04 -07:00
parent ef07c52fc6
commit f4106a615e
No known key found for this signature in database
GPG Key ID: 8962AB9DE6666BBD

View File

@ -169,7 +169,7 @@ RPC.prototype.getInfo = co(function* getInfo(args, help) {
connections: this.pool.peers.size(),
proxy: '',
difficulty: this.difficulty(),
testnet: this.network.type !== Network.main,
testnet: this.network !== Network.main,
keypoololdest: 0,
keypoolsize: 0,
unlocked_until: 0,