-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(gossip): bug vn might not be subscribed to consensus messages (#1191
) Description --- fix(gossip): bug vn might not be subscribed to consensus messages Removed unused `ThisValidatorIsRegistered` epoch manager event Added `registered_shard_group` to `EpochChanged` event that is Some when local VN is registered for the epoch Motivation and Context --- Bug introduced in #1190 where VNs might not be subscribed to consensus messages. How Has This Been Tested? --- Manually, validator node that has been shutdown and restarted without the epoch changing was not subscribed to consensus messages What process can a PR reviewer use to test or verify this change? --- As above Breaking Changes --- - [x] None - [ ] Requires data directory to be deleted - [ ] Other - Please specify
- Loading branch information
Showing
11 changed files
with
58 additions
and
56 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
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 |
---|---|---|
@@ -1,14 +1,13 @@ | ||
// Copyright 2023 The Tari Project | ||
// SPDX-License-Identifier: BSD-3-Clause | ||
|
||
use tari_dan_common_types::{Epoch, ShardGroup, SubstateAddress}; | ||
use tari_dan_common_types::{Epoch, ShardGroup}; | ||
|
||
#[derive(Debug, Clone)] | ||
pub enum EpochManagerEvent { | ||
EpochChanged(Epoch), | ||
ThisValidatorIsRegistered { | ||
EpochChanged { | ||
epoch: Epoch, | ||
shard_group: ShardGroup, | ||
shard_key: SubstateAddress, | ||
/// Some if the local validator is registered for the epoch, otherwise None | ||
registered_shard_group: Option<ShardGroup>, | ||
}, | ||
} |