From aa782e0ee09d345eee48d751c0f35ec4c74378c6 Mon Sep 17 00:00:00 2001 From: Christopher Jeffrey Date: Tue, 2 Dec 2014 02:55:57 -0800 Subject: [PATCH] silence tiny on testnet. --- lib/bitcoind.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/bitcoind.js b/lib/bitcoind.js index e7f1196d..9b5de3d5 100644 --- a/lib/bitcoind.js +++ b/lib/bitcoind.js @@ -421,6 +421,9 @@ Bitcoin.prototype.getAddrTransactions = function(address, callback) { if (!bitcoin.db) { var tiny = require('tiny').json; tiny.debug = function() {}; + tiny.prototype.debug = function() {}; + tiny.error = function() {}; + tiny.prototype.error = function() {}; bitcoin.db = tiny({ file: process.env.HOME + '/.bitcoindjs.addr.db', saveIndex: false,