Include version check
This commit is contained in:
parent
92184992ea
commit
60e19a7b02
@ -2424,7 +2424,7 @@ TX.prototype.fromWitnessReader = function fromWitnessReader(br) {
|
||||
throw new Error('Zero input witness tx.');
|
||||
|
||||
this.locktime = br.readU32();
|
||||
|
||||
if (this.version >= 2){
|
||||
var floDataLength = br.readVarint();
|
||||
var floDataBuffer = br.readBytes(floDataLength);
|
||||
this.strFloData = Buffer.from(floDataBuffer).toString();
|
||||
|
||||
Loading…
Reference in New Issue
Block a user