Added OpCodeSelect() to test plugin
This commit is contained in:
parent
39b5250f63
commit
771c2e7cc3
@ -177,6 +177,16 @@ func StateUpdate(blockRoot core.Hash, parentRoot core.Hash, coreDestructs map[co
|
|||||||
hookChan <- m
|
hookChan <- m
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// core/vm/
|
||||||
|
|
||||||
|
func OpCodeSelect() []int {
|
||||||
|
m := map[string]struct{}{
|
||||||
|
"OpCodeSelect":struct{}{},
|
||||||
|
}
|
||||||
|
hookChan <- m
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
|
||||||
// rpc/
|
// rpc/
|
||||||
|
|
||||||
|
|
||||||
@ -247,5 +257,6 @@ var plugins map[string]struct{} = map[string]struct{}{
|
|||||||
"SetETHDiscoveryURLs": struct{}{},
|
"SetETHDiscoveryURLs": struct{}{},
|
||||||
"SetSnapDiscoveryURLs": struct{}{},
|
"SetSnapDiscoveryURLs": struct{}{},
|
||||||
"ForkIDs": struct{}{},
|
"ForkIDs": struct{}{},
|
||||||
|
"OpCodeSelect":struct{}{},
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -128,6 +128,8 @@ func BlockChain() {
|
|||||||
delete(plugins, "SetSnapDiscoveryURLs")
|
delete(plugins, "SetSnapDiscoveryURLs")
|
||||||
case f("ForkIDs"):
|
case f("ForkIDs"):
|
||||||
delete(plugins, "ForkIDs")
|
delete(plugins, "ForkIDs")
|
||||||
|
case f("OpCodeSelect"):
|
||||||
|
delete(plugins, "OpCodeSelect")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user