Skip to content

Commit

Permalink
test logs
Browse files Browse the repository at this point in the history
  • Loading branch information
Akohjesse committed Nov 22, 2024
1 parent 30de560 commit e23eab9
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
1 change: 0 additions & 1 deletion cmd/cli/xplugeth_imports.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,4 @@ package main

import (
_ "github.com/openrelayxyz/xplugeth/build"
// _ "github.com/openrelayxyz/xplugeth/plugins/peerEval"
)
1 change: 1 addition & 0 deletions eth/fetcher/block_fetcher.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion eth/fetcher/xplugeth_hooks.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down

0 comments on commit e23eab9

Please sign in to comment.