parser: fix fOverwintered check for nExpiryHeight

This commit is contained in:
George Tankersley 2019-02-14 00:24:25 +00:00
parent 0cb0bb51af
commit d81f06e513
1 changed files with 1 additions and 1 deletions

View File

@ -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")
}