add addrFlag.
This commit is contained in:
parent
65e4ffddda
commit
b668cfbb0a
|
@ -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) {
|
||||||
|
|
Loading…
Reference in New Issue