You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The logic from lib.rs, which is the entrypoint to grandpa. This creates a wrapper around block_import object, which every imported block has to go through. Then a HalfLink object is created to link together the import object to the grandpa worker. Then using a HalfLink and a local config are used to run a granpda voter. Other logic this file contains is some communication logic, SharedVoterState, GrandpaParams, and VoterWork(future that powers the worker). Note: This file does not contain tests.
Logic for environment.rs. The environment in which grandpa executes. Contains VoterSetState, grandpa environment, completed round data, and equivocation logic. NOte: this file does not contain tests.
Grandpa tests, almost all of which can be found here.
until_imported is a helper stream for waiting until one or more blocks are imported before bassing through inner items. Buffers incoming messages until given hashes are imported. Note: need to come up with a way to keep track of the number of outstanding blocks that we are waiting on for the same message. Substrate uses the reference counting feature of the Arc pointer for this. Tests included!
Tasks will be marked as complete when they are merged into the feature branch for this issue. This issue will be updated as more tasks are discovered and as progress is made. This issue will be closed when the feature branch is merged into development.
Issue summary
This epic is created to describe and track the effort to intergrate our standalone grandpa package into the gossamer codebase.
Tasks needed for the integration:
Tasks will be marked as complete when they are merged into the feature branch for this issue. This issue will be updated as more tasks are discovered and as progress is made. This issue will be closed when the feature branch is merged into development.
Subtasks
VoterWork
implementation #3606The text was updated successfully, but these errors were encountered: