input and output redeem script.
This commit is contained in:
parent
4f8d24ba36
commit
397764ece6
@ -74,7 +74,7 @@ Input.prototype.__defineGetter__('signature', function() {
|
||||
});
|
||||
|
||||
Input.prototype.__defineGetter__('key', function() {
|
||||
return this.data.redeem || this.keys[0];
|
||||
return this.keys[0];
|
||||
});
|
||||
|
||||
Input.prototype.__defineGetter__('hash', function() {
|
||||
@ -101,6 +101,10 @@ Input.prototype.__defineGetter__('addresses', function() {
|
||||
return this.data.addresses || [];
|
||||
});
|
||||
|
||||
Input.prototype.__defineGetter__('redeem', function() {
|
||||
return this.data.redeem;
|
||||
});
|
||||
|
||||
Input.prototype.__defineGetter__('scriptaddress', function() {
|
||||
return this.data.scriptaddress;
|
||||
});
|
||||
@ -358,7 +362,7 @@ Input.prototype.inspect = function inspect() {
|
||||
lock: this.lock,
|
||||
value: utils.btc(output.value),
|
||||
script: bcoin.script.format(this.script)[0],
|
||||
redeem: this.data.redeem ? bcoin.script.format(this.data.redeem)[0] : null,
|
||||
redeem: this.redeem ? bcoin.script.format(this.redeem)[0] : null,
|
||||
seq: this.seq,
|
||||
output: output
|
||||
};
|
||||
|
||||
@ -65,7 +65,7 @@ Output.prototype.__defineGetter__('signature', function() {
|
||||
});
|
||||
|
||||
Output.prototype.__defineGetter__('key', function() {
|
||||
return this.data.redeem || this.keys[0];
|
||||
return this.keys[0];
|
||||
});
|
||||
|
||||
Output.prototype.__defineGetter__('hash', function() {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user