From b1dd4f79f34d9bf964398dd4955930919e34e511 Mon Sep 17 00:00:00 2001 From: philip-morlier Date: Mon, 27 Mar 2023 16:24:56 -0700 Subject: [PATCH] Channel production and consumption set up. Ready to fully implement. --- cmd/geth/main.go | 1 + core/plugin_hooks.go | 2 ++ 2 files changed, 3 insertions(+) diff --git a/cmd/geth/main.go b/cmd/geth/main.go index f3a0c3d91..a62b43845 100644 --- a/cmd/geth/main.go +++ b/cmd/geth/main.go @@ -357,6 +357,7 @@ func geth(ctx *cli.Context) error { stack.RegisterAPIs(pluginGetAPIs(stack, wrapperBackend)) //end PluGeth code injection startNode(ctx, stack, backend, false) + pluginHookTester() stack.Wait() return nil } diff --git a/core/plugin_hooks.go b/core/plugin_hooks.go index f00730bdd..6e62e8b86 100644 --- a/core/plugin_hooks.go +++ b/core/plugin_hooks.go @@ -98,6 +98,7 @@ func PluginPostProcessBlock(pl *plugins.PluginLoader, block *types.Block) { _, ok := item.(func(core.Hash)) return ok }) + log.Error("inside post pppp()))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))") for _, fni := range fnList { if fn, ok := fni.(func(core.Hash)); ok { fn(core.Hash(block.Hash())) @@ -116,6 +117,7 @@ func PluginNewHead(pl *plugins.PluginLoader, block *types.Block, hash common.Has _, ok := item.(func([]byte, core.Hash, [][]byte, *big.Int)) return ok }) + log.Error("inside of pluginNewHead()", "len fnList", len(fnList)) blockBytes, _ := rlp.EncodeToBytes(block) logBytes := make([][]byte, len(logs)) for i, l := range logs {