fix mutable tx parsing.

This commit is contained in:
Christopher Jeffrey 2016-07-15 18:51:44 -07:00
parent 27bf8c6ebb
commit 36029b8882
No known key found for this signature in database
GPG Key ID: 8962AB9DE6666BBD

View File

@ -2020,6 +2020,8 @@ TX.prototype.fromRaw = function fromRaw(data) {
this._raw = p.endData();
this._size = this._raw.length;
this._witnessSize = 0;
} else {
p.end();
}
return this;
@ -2079,6 +2081,8 @@ TX.prototype.fromWitness = function fromWitness(data) {
this._raw = p.endData();
this._size = this._raw.length;
this._witnessSize = witnessSize;
} else {
p.end();
}
return this;