-
Notifications
You must be signed in to change notification settings - Fork 129
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
merge ProcessOverseerSignals with processMessages
- Loading branch information
1 parent
6ec97d4
commit 97a2df1
Showing
7 changed files
with
92 additions
and
59 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
package parachaintypes | ||
|
||
import ( | ||
"errors" | ||
|
||
"github.com/ChainSafe/gossamer/lib/common" | ||
) | ||
|
||
var ErrUnknownOverseerMessage = errors.New("unknown overseer message type") | ||
|
||
// ActivatedLeaf is a parachain head which we care to work on. | ||
type ActivatedLeaf struct { | ||
Hash common.Hash | ||
Number uint32 | ||
} | ||
|
||
// ActiveLeavesUpdateSignal changes in the set of active leaves: the parachain heads which we care to work on. | ||
// | ||
// note: activated field indicates deltas, not complete sets. | ||
type ActiveLeavesUpdateSignal struct { | ||
Activated *ActivatedLeaf | ||
// Relay chain block hashes no longer of interest. | ||
Deactivated []common.Hash | ||
} | ||
|
||
// BlockFinalized signal is used to inform subsystems of a finalized block. | ||
type BlockFinalizedSignal struct { | ||
Hash common.Hash | ||
BlockNumber uint32 | ||
} |