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

fix(network): emit NetworkEvent when we publish a gossipsub msg #859

Merged
merged 1 commit into from Oct 19, 2023

Conversation

RolandSherwin
Copy link
Member

@RolandSherwin RolandSherwin commented Oct 19, 2023

  • should fix the reward test failures
  • they were caused because the genesis_node that we used to monitor the gossipsub messages from, was the one who published the message.
  • Hence, it would not emit the NodeEvent that we were listening for.

Description

Summary generated by Reviewpad on 19 Oct 23 10:05 UTC

This pull request fixes an issue with the rewards test failures by emitting a NetworkEvent when a gossipsub message is published. The previous issue was caused because the genesis_node that was used to monitor the gossipsub messages also published the message, resulting in the event not being emitted and causing failures. The patch adds the GossipsubMsgPublished event to notify that a message has been published.

- should fix the reward test failures
- they were cuased because the `genesis_node` that we used to monitor
  the gossipsub messages from was the one who published the message
- Hence it would not emit and `NodeEvent` that we were listening for
@reviewpad reviewpad bot requested a review from maqi October 19, 2023 10:05
@reviewpad reviewpad bot added Small Pull request is small waiting-for-review labels Oct 19, 2023
@reviewpad
Copy link

reviewpad bot commented Oct 19, 2023

Reviewpad Report

‼️ Errors

  • Unconventional commit detected: 'fix(network): emit NetworkEvent when we publish a gossipsub msg
  • should fix the reward test failures
  • they were cuased because the genesis_node that we used to monitor
    the gossipsub messages from was the one who published the message
  • Hence it would not emit and NodeEvent that we were listening for' (77d0310)

@joshuef joshuef merged commit 0a4c7ef into maidsafe:main Oct 19, 2023
29 of 30 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Small Pull request is small
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants