Added OpCodeSelect() to test plugin

This commit is contained in:
philip-morlier 2023-10-23 17:40:33 -07:00
parent 39b5250f63
commit 771c2e7cc3
2 changed files with 13 additions and 0 deletions

View File

@ -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{}{},
}

View File

@ -128,6 +128,8 @@ func BlockChain() {
delete(plugins, "SetSnapDiscoveryURLs")
case f("ForkIDs"):
delete(plugins, "ForkIDs")
case f("OpCodeSelect"):
delete(plugins, "OpCodeSelect")
}
}
}