diff --git a/plugins/test-plugin/hooks.go b/plugins/test-plugin/hooks.go index cea477ab8..b1a11e44a 100644 --- a/plugins/test-plugin/hooks.go +++ b/plugins/test-plugin/hooks.go @@ -230,6 +230,14 @@ func Is1559(*big.Int) bool { // while this hook resides in params the injections 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{}{ "OnShutdown": struct{}{}, "SetTrieFlushIntervalClone":struct{}{}, @@ -269,5 +277,6 @@ var plugins map[string]struct{} = map[string]struct{}{ "ForkIDs": struct{}{}, "OpCodeSelect":struct{}{}, "Is1559":struct{}{}, + "PluginEIPCheck":struct{}{}, } diff --git a/plugins/test-plugin/main.go b/plugins/test-plugin/main.go index ac8475bc1..75cba1eee 100644 --- a/plugins/test-plugin/main.go +++ b/plugins/test-plugin/main.go @@ -132,6 +132,8 @@ func BlockChain() { delete(plugins, "OpCodeSelect") case f("Is1559"): delete(plugins, "Is1559") + case f("PluginEIPCheck"): + delete(plugins, "PluginEIPCheck") } } }