Browse Source

parser: fix fOverwintered check for nExpiryHeight

readme
George Tankersley 5 years ago
parent
commit
d81f06e513
  1. 2
      parser/transaction.go

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

Loading…
Cancel
Save