silence tiny on testnet.

This commit is contained in:
Christopher Jeffrey 2014-12-02 02:55:57 -08:00
parent b000b6e000
commit aa782e0ee0
1 changed files with 3 additions and 0 deletions

View File

@ -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,