framer instead of render.
This commit is contained in:
parent
c7ae1f3d6b
commit
05939b5f24
@ -227,7 +227,7 @@ TX.prototype.signatureHash = function signatureHash(index, s, type) {
|
||||
copy.inputs.length = 1;
|
||||
}
|
||||
|
||||
copy = copy.render();
|
||||
copy = bcoin.protocol.framer.tx(copy);
|
||||
|
||||
msg = new Buffer(copy.length + 4);
|
||||
utils.copy(copy, msg, 0);
|
||||
@ -251,7 +251,8 @@ TX.prototype.tbsHash = function tbsHash(enc, force) {
|
||||
copy.inputs[i].script = [];
|
||||
}
|
||||
|
||||
this._tbsHash = utils.dsha256(copy.render());
|
||||
copy = bcoin.protocol.framer.tx(copy);
|
||||
this._tbsHash = utils.dsha256(copy);
|
||||
}
|
||||
|
||||
return enc === 'hex'
|
||||
|
||||
Loading…
Reference in New Issue
Block a user