mirror of
https://github.com/nspcc-dev/neo-go.git
synced 2025-02-17 05:47:38 +00:00
core: remove NodeList from Oracle storage
The reference implementation does not store NodeList. This commit fixes state difference for genesis block.
This commit is contained in:
parent
88cee80a58
commit
054e60c0cf
1 changed files with 1 additions and 6 deletions
|
@ -74,7 +74,6 @@ func init() {
|
||||||
var (
|
var (
|
||||||
prefixIDList = []byte{6}
|
prefixIDList = []byte{6}
|
||||||
prefixRequest = []byte{7}
|
prefixRequest = []byte{7}
|
||||||
prefixNodeList = []byte{8}
|
|
||||||
prefixRequestID = []byte{9}
|
prefixRequestID = []byte{9}
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -206,11 +205,7 @@ func (o *Oracle) Metadata() *interop.ContractMD {
|
||||||
|
|
||||||
// Initialize initializes Oracle contract.
|
// Initialize initializes Oracle contract.
|
||||||
func (o *Oracle) Initialize(ic *interop.Context) error {
|
func (o *Oracle) Initialize(ic *interop.Context) error {
|
||||||
si := &state.StorageItem{Value: NodeList{}.Bytes()}
|
si := &state.StorageItem{Value: make([]byte, 8)} // uint64(0) LE
|
||||||
if err := ic.DAO.PutStorageItem(o.ContractID, prefixNodeList, si); err != nil {
|
|
||||||
return err
|
|
||||||
}
|
|
||||||
si = &state.StorageItem{Value: make([]byte, 8)} // uint64(0) LE
|
|
||||||
return ic.DAO.PutStorageItem(o.ContractID, prefixRequestID, si)
|
return ic.DAO.PutStorageItem(o.ContractID, prefixRequestID, si)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue