Added Is1559() to test plugin

This commit is contained in:
philip-morlier 2023-10-23 18:13:27 -07:00
parent 771c2e7cc3
commit ace421d033
2 changed files with 13 additions and 0 deletions

View File

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

View File

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