add addrFlag.

This commit is contained in:
Christopher Jeffrey 2014-11-18 14:13:47 -08:00
parent 65e4ffddda
commit b668cfbb0a
1 changed files with 5 additions and 5 deletions

View File

@ -369,10 +369,6 @@ Bitcoin.prototype.getBlockHeight = function(height, callback) {
Bitcoin.prototype.getTransaction = Bitcoin.prototype.getTransaction =
Bitcoin.prototype.getTx = function(txHash, blockHash, callback) { Bitcoin.prototype.getTx = function(txHash, blockHash, callback) {
if (!callback) {
callback = blockHash;
blockHash = '';
}
if (typeof blockHash === 'function') { if (typeof blockHash === 'function') {
callback = blockHash; callback = blockHash;
blockHash = ''; blockHash = '';
@ -415,7 +411,11 @@ Bitcoin.prototype.getMiningInfo = function() {
}; };
Bitcoin.prototype.getAddrTransactions = function(addr, callback) { Bitcoin.prototype.getAddrTransactions = function(addr, callback) {
return bitcoindjs.getAddrTransactions(addr, callback); return bitcoindjs.getAddrTransactions(addr, function(err, result) {
if (err) return callback(err);
result._addrFlag = true;
return callback(null, result);
});
}; };
Bitcoin.prototype.getBestBlock = function(callback) { Bitcoin.prototype.getBestBlock = function(callback) {