parser: fix fOverwintered check for nExpiryHeight
This commit is contained in:
parent
0cb0bb51af
commit
d81f06e513
|
@ -383,7 +383,7 @@ func (tx *Transaction) ParseFromSlice(data []byte) ([]byte, error) {
|
||||||
return nil, errors.New("could not read nLockTime")
|
return nil, errors.New("could not read nLockTime")
|
||||||
}
|
}
|
||||||
|
|
||||||
if tx.version >= 3 {
|
if tx.fOverwintered {
|
||||||
if ok := s.ReadUint32(&tx.nExpiryHeight); !ok {
|
if ok := s.ReadUint32(&tx.nExpiryHeight); !ok {
|
||||||
return nil, errors.New("could not read nExpiryHeight")
|
return nil, errors.New("could not read nExpiryHeight")
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue