Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[p2p] support network separation #3817

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
address comment
envestcc committed Dec 24, 2024
commit bfa211c1bb15be1c92b476286a01e6421c535127
2 changes: 1 addition & 1 deletion p2p/agent.go
Original file line number Diff line number Diff line change
@@ -281,13 +281,13 @@ func (p *agent) Start(ctx context.Context) error {
err = errors.Wrap(err, "error when marshaling broadcast message")
return
}
// Skip the broadcast message if it's from the node itself
rawmsg, ok := p2p.GetBroadcastMsg(ctx)
if !ok {
err = errors.New("error when asserting broadcast msg context")
return
}
peerID = rawmsg.GetFrom().String()
// Skip the broadcast message if it's from the node itself
if p.host.HostIdentity() == peerID {
skip = true
return