From ace421d0331b9d6fce554e4bad9c3b94a3be6d3a Mon Sep 17 00:00:00 2001 From: philip-morlier Date: Mon, 23 Oct 2023 18:13:27 -0700 Subject: [PATCH] Added Is1559() to test plugin --- plugins/test-plugin/hooks.go | 11 +++++++++++ plugins/test-plugin/main.go | 2 ++ 2 files changed, 13 insertions(+) diff --git a/plugins/test-plugin/hooks.go b/plugins/test-plugin/hooks.go index 7d83da914..cea477ab8 100644 --- a/plugins/test-plugin/hooks.go +++ b/plugins/test-plugin/hooks.go @@ -220,6 +220,16 @@ func RPCSubscriptionTest() { // this injection is covered by another test in this package. See documentation for details. // } +// params/ + +func Is1559(*big.Int) bool { // while this hook resides in params the injections are in consensus/misc/ (2), and core/ (2) + m := map[string]struct{}{ + "Is1559":struct{}{}, + } + hookChan <- m + return true +} + var plugins map[string]struct{} = map[string]struct{}{ "OnShutdown": struct{}{}, "SetTrieFlushIntervalClone":struct{}{}, @@ -258,5 +268,6 @@ var plugins map[string]struct{} = map[string]struct{}{ "SetSnapDiscoveryURLs": struct{}{}, "ForkIDs": struct{}{}, "OpCodeSelect":struct{}{}, + "Is1559":struct{}{}, } diff --git a/plugins/test-plugin/main.go b/plugins/test-plugin/main.go index 766bc8cc8..ac8475bc1 100644 --- a/plugins/test-plugin/main.go +++ b/plugins/test-plugin/main.go @@ -130,6 +130,8 @@ func BlockChain() { delete(plugins, "ForkIDs") case f("OpCodeSelect"): delete(plugins, "OpCodeSelect") + case f("Is1559"): + delete(plugins, "Is1559") } } }