From d81f06e5138642fd920aa78832e371ecd0ed60d0 Mon Sep 17 00:00:00 2001 From: George Tankersley Date: Thu, 14 Feb 2019 00:24:25 +0000 Subject: [PATCH] parser: fix fOverwintered check for nExpiryHeight --- parser/transaction.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/parser/transaction.go b/parser/transaction.go index c6c2a1a..adf538c 100644 --- a/parser/transaction.go +++ b/parser/transaction.go @@ -383,7 +383,7 @@ func (tx *Transaction) ParseFromSlice(data []byte) ([]byte, error) { return nil, errors.New("could not read nLockTime") } - if tx.version >= 3 { + if tx.fOverwintered { if ok := s.ReadUint32(&tx.nExpiryHeight); !ok { return nil, errors.New("could not read nExpiryHeight") }