forked from cerc-io/plugeth
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
|
||||
}
|
||||
|
||||
// core/vm/
|
||||
|
||||
func OpCodeSelect() []int {
|
||||
m := map[string]struct{}{
|
||||
"OpCodeSelect":struct{}{},
|
||||
}
|
||||
hookChan <- m
|
||||
return nil
|
||||
}
|
||||
|
||||
// rpc/
|
||||
|
||||
|
||||
@ -247,5 +257,6 @@ var plugins map[string]struct{} = map[string]struct{}{
|
||||
"SetETHDiscoveryURLs": struct{}{},
|
||||
"SetSnapDiscoveryURLs": struct{}{},
|
||||
"ForkIDs": struct{}{},
|
||||
"OpCodeSelect":struct{}{},
|
||||
}
|
||||
|
||||
|
@ -128,6 +128,8 @@ func BlockChain() {
|
||||
delete(plugins, "SetSnapDiscoveryURLs")
|
||||
case f("ForkIDs"):
|
||||
delete(plugins, "ForkIDs")
|
||||
case f("OpCodeSelect"):
|
||||
delete(plugins, "OpCodeSelect")
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user