fix mutable tx parsing.
This commit is contained in:
parent
27bf8c6ebb
commit
36029b8882
@ -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;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user