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

Add support for PeerId as an argument in the OnMessage event handler. #114

Open
uink45 opened this issue Dec 2, 2024 · 0 comments
Open

Comments

@uink45
Copy link
Contributor

uink45 commented Dec 2, 2024

Is your feature request related to a problem? Please describe.
There is currently no way to track from which peer the gossip message was received. This makes it harder to identify peers that are actively sending gossip messages.

Describe the solution you'd like
In order to track messages received from gossip peers, the OnMessage event in the ITopic interface should be updated to include PeerId as an argument. For example, the event declaration can be modified from event Action<byte[]>? OnMessage; to event Action<PeerId, byte[]>? OnMessage;. This change allows the event to provide information about the peer that sent each gossip message, enabling better tracking of message sources.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant