-
Notifications
You must be signed in to change notification settings - Fork 248
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Initial support of executor gossip (#219)
* Initial support of executor gossip Now the gossip message for bundle and execution receipt can be sent and received, but still a lot of works to do. * Some cleanups * Impl the execution receipt stream `OpaqueExecutionReceipt` is introduced as `ExecutionReceipt` has both concrete type(`primary_hash`) and generic type `Hash`, used by the client submitting the external ER to runtime. * Validate the gossip message on receiving `GossipMessageHandler` has been changed from `async` to sync due to the `Validator` trait of network-gossip is not async and it's non-trivial to submit a patch to the upstream. * Custom rebroadcast timeout * Clean up the messages that have been rebroadcasted * Add a TODO * Extract `gossip_bundle` and `gossip_execution_receipt` * Nit * Change HandlerOutcome to HandlerResult * Remove HandlerResult Fixes #219 (comment) * Apply the code review Fixes #219 (comment) Fixes #219 (comment) * Add a TODO
- Loading branch information
1 parent
a91a40d
commit dbfcd24
Showing
20 changed files
with
706 additions
and
120 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.