wip
This commit is contained in:
parent
c6e2c57778
commit
523c3ab852
@ -236,7 +236,7 @@ AddressService.prototype.blockHandler = function(block, connectBlock, callback)
|
||||
}
|
||||
|
||||
var inputKey = self.encoding.encodeAddressIndexKey(address, true, height, txid, inputIndex, true);
|
||||
|
||||
|
||||
var outputKey = self.encoding.encodeAddressIndexKey(address, true, tx.__height, tx.id, input.outputIndex, false);
|
||||
var outputKeyToDelete = self.encoding.encodeAddressIndexKey(address, false, tx.__height, tx.id, input.outputIndex, false);
|
||||
var outputValue = self.encoding.encodeAddressIndexValue(output.satoshis, output._scriptBuffer);
|
||||
@ -282,7 +282,7 @@ AddressService.prototype._getAddressString = function(script, output) {
|
||||
// continue on and return null
|
||||
}
|
||||
|
||||
if(output.script.isPublicKeyOut()) {
|
||||
if(output && output.script && output.script.isPublicKeyOut()) {
|
||||
return output.script.getPublicKey().toString('hex');
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user