mirror of
https://github.com/nspcc-dev/neo-go.git
synced 2024-12-23 03:41:34 +00:00
dao: return ErrKeyNotFound from GetAppExecResults for dummy txs
Otherwise decoding error may be returned which can be misleading.
This commit is contained in:
parent
9a41356a3b
commit
6343720adf
1 changed files with 3 additions and 0 deletions
|
@ -259,6 +259,9 @@ func (dao *Simple) GetAppExecResults(hash util.Uint256, trig trigger.Type) ([]st
|
|||
return nil, err
|
||||
}
|
||||
case storage.ExecTransaction:
|
||||
if len(bs) >= 6 && bs[5] == transaction.DummyVersion {
|
||||
return nil, storage.ErrKeyNotFound
|
||||
}
|
||||
_ = r.ReadU32LE()
|
||||
tx := &transaction.Transaction{}
|
||||
tx.DecodeBinary(r)
|
||||
|
|
Loading…
Reference in a new issue