framer instead of render.

This commit is contained in:
Christopher Jeffrey 2016-02-24 14:30:10 -08:00
parent c7ae1f3d6b
commit 05939b5f24

View File

@ -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'