Comparing version 2.3.2 to 2.4.0
# node-bitcoin changelog | ||
## v2.4.0 (2015/07/16) | ||
* don't lazy-load http/https modules | ||
* add command for bitcoind v0.11.0: `getTxOutProof` | ||
## v2.3.2 (2015/06/26) | ||
@@ -4,0 +8,0 @@ * fix bug in test suite that was supposed to detect missing commands |
@@ -46,2 +46,3 @@ module.exports = { | ||
getTxOut: 'gettxout', // bitcoind v0.7.0+ | ||
getTxOutProof: 'gettxoutproof', // bitcoind v0.11.0+ | ||
getTxOutSetInfo: 'gettxoutsetinfo', // bitcoind v0.7.0+ | ||
@@ -48,0 +49,0 @@ getUnconfirmedBalance: 'getunconfirmedbalance', // bitcoind v0.9.0+ |
@@ -0,4 +1,7 @@ | ||
var http = require('http'), | ||
https = require('https'); | ||
var Client = function(opts) { | ||
this.opts = opts || {}; | ||
this.http = this.opts.ssl ? require('https') : require('http'); | ||
this.http = this.opts.ssl ? https : http; | ||
}; | ||
@@ -5,0 +8,0 @@ |
{ | ||
"name": "bitcoin", | ||
"description": "Communicate with bitcoind via JSON-RPC", | ||
"version": "2.3.2", | ||
"version": "2.4.0", | ||
"main": "lib/index.js", | ||
@@ -6,0 +6,0 @@ "keywords": [ |
16504
272