From e23eab9a277a78ecf7dc1247e9b162c95398f4bf Mon Sep 17 00:00:00 2001 From: Jesse Date: Fri, 22 Nov 2024 16:58:25 +0100 Subject: [PATCH] test logs --- cmd/cli/xplugeth_imports.go | 1 - eth/fetcher/block_fetcher.go | 1 + eth/fetcher/xplugeth_hooks.go | 2 +- 3 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/cli/xplugeth_imports.go b/cmd/cli/xplugeth_imports.go index 8603c72b2..f95248951 100644 --- a/cmd/cli/xplugeth_imports.go +++ b/cmd/cli/xplugeth_imports.go @@ -2,5 +2,4 @@ package main import ( _ "github.com/openrelayxyz/xplugeth/build" - // _ "github.com/openrelayxyz/xplugeth/plugins/peerEval" ) diff --git a/eth/fetcher/block_fetcher.go b/eth/fetcher/block_fetcher.go index a857eeaad..dced5c7fd 100644 --- a/eth/fetcher/block_fetcher.go +++ b/eth/fetcher/block_fetcher.go @@ -516,6 +516,7 @@ func (f *BlockFetcher) loop() { case res := <-resCh: res.Done <- nil f.FilterHeaders(peer, *res.Res.(*eth.BlockHeadersRequest), time.Now(), announcedAt) + log.Warn("block_fetcher", "peer", peer) // begin plugeth injection pluginPeerEval(peer, *res.Res.(*eth.BlockHeadersRequest)) // end plugeth injection diff --git a/eth/fetcher/xplugeth_hooks.go b/eth/fetcher/xplugeth_hooks.go index abbb5996a..7ee34202a 100644 --- a/eth/fetcher/xplugeth_hooks.go +++ b/eth/fetcher/xplugeth_hooks.go @@ -8,7 +8,7 @@ import ( ) func pluginPeerEval(id string, headers []*types.Header) { - log.Error("peer", "peer id", id) + log.Error("pluginPeerEval", "peer id", id) for _, m := range xplugeth.GetModules[blockchain.PeerEvalPlugin]() { m.PeerEval(id, headers) }