Skip to content

Gossipsub Message Ordering #5681

Answered by elenaf9
erhant asked this question in Q&A
Nov 21, 2024 · 1 comments · 10 replies
Discussion options

You must be logged in to vote

and process-task is that other thread processing tasks and publishing messages.

Small suggestion: you might still want to do the publishing of messages in the same task that polls the swarm, because otherwise you need to share the swarm in a Mutex.
So basically you p2p client would be doing all the swarm interaction:

  • forwarding incoming events to the process-task via channel
  • polling a second channel where it receives the validation results from the process-task and calling report_message_validation_result

examples/file-sharing might be a good starting point.

Replies: 1 comment 10 replies

Comment options

You must be logged in to vote
10 replies
@erhant
Comment options

@elenaf9
Comment options

@erhant
Comment options

@elenaf9
Comment options

Answer selected by erhant
@erhant
Comment options

@elenaf9
Comment options

@erhant
Comment options

@erhant
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants