Include version check

This commit is contained in:
Sky Young 2018-10-20 13:07:58 -06:00
parent 92184992ea
commit 60e19a7b02

View File

@ -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();