Added PluginEIPCheck to test plugin

This commit is contained in:
philip-morlier 2023-10-23 18:41:19 -07:00
parent 8df3b1a5ca
commit 1dd00d2452
2 changed files with 11 additions and 0 deletions

View File

@ -230,6 +230,14 @@ func Is1559(*big.Int) bool { // while this hook resides in params the injections
return true return true
} }
func Is160(num *big.Int) bool {
m := map[string]struct{}{
"PluginEIPCheck":struct{}{},
}
hookChan <- m
return true
}
var plugins map[string]struct{} = map[string]struct{}{ var plugins map[string]struct{} = map[string]struct{}{
"OnShutdown": struct{}{}, "OnShutdown": struct{}{},
"SetTrieFlushIntervalClone":struct{}{}, "SetTrieFlushIntervalClone":struct{}{},
@ -269,5 +277,6 @@ var plugins map[string]struct{} = map[string]struct{}{
"ForkIDs": struct{}{}, "ForkIDs": struct{}{},
"OpCodeSelect":struct{}{}, "OpCodeSelect":struct{}{},
"Is1559":struct{}{}, "Is1559":struct{}{},
"PluginEIPCheck":struct{}{},
} }

View File

@ -132,6 +132,8 @@ func BlockChain() {
delete(plugins, "OpCodeSelect") delete(plugins, "OpCodeSelect")
case f("Is1559"): case f("Is1559"):
delete(plugins, "Is1559") delete(plugins, "Is1559")
case f("PluginEIPCheck"):
delete(plugins, "PluginEIPCheck")
} }
} }
} }