parser: fix fOverwintered check for nExpiryHeight
This commit is contained in:
@@ -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")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user