mirror of
https://github.com/nspcc-dev/neo-go.git
synced 2024-11-26 19:42:23 +00:00
core: change Oracle request ID endianness
This commit is contained in:
parent
12f7111ca8
commit
2b06601646
1 changed files with 2 additions and 2 deletions
|
@ -434,7 +434,7 @@ func (o *Oracle) getRequests(d dao.DAO) (map[uint64]*state.OracleRequest, error)
|
|||
if r.Err != nil {
|
||||
return nil, r.Err
|
||||
}
|
||||
id := binary.LittleEndian.Uint64([]byte(k))
|
||||
id := binary.BigEndian.Uint64([]byte(k))
|
||||
reqs[id] = req
|
||||
}
|
||||
return reqs, nil
|
||||
|
@ -443,7 +443,7 @@ func (o *Oracle) getRequests(d dao.DAO) (map[uint64]*state.OracleRequest, error)
|
|||
func makeRequestKey(id uint64) []byte {
|
||||
k := make([]byte, 9)
|
||||
k[0] = prefixRequest[0]
|
||||
binary.LittleEndian.PutUint64(k[1:], id)
|
||||
binary.BigEndian.PutUint64(k[1:], id)
|
||||
return k
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue