From 60e19a7b02aa5a8c041624f22ea752ecfd46f386 Mon Sep 17 00:00:00 2001 From: Sky Young Date: Sat, 20 Oct 2018 13:07:58 -0600 Subject: [PATCH] Include version check --- lib/primitives/tx.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/primitives/tx.js b/lib/primitives/tx.js index 20771a5a..5a99f4f5 100644 --- a/lib/primitives/tx.js +++ b/lib/primitives/tx.js @@ -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();