@@ -10,7 +10,7 @@ use crate::crypto::{LrtqShare, PlaintextRackSecrets, ReconstructedRackSecret};
10
10
use crate :: validators:: {
11
11
ReconfigurationError , ValidatedLrtqUpgradeMsg , ValidatedReconfigureMsg ,
12
12
} ;
13
- use crate :: { Configuration , Epoch , PeerMsgKind , PlatformId , RackSecret } ;
13
+ use crate :: { BaseboardId , Configuration , Epoch , PeerMsgKind , RackSecret } ;
14
14
use bootstore:: trust_quorum:: RackSecret as LrtqRackSecret ;
15
15
use daft:: { Diffable , Leaf } ;
16
16
use gfss:: shamir:: Share ;
@@ -302,7 +302,7 @@ impl CoordinatorState {
302
302
pub fn send_msgs_to (
303
303
& mut self ,
304
304
ctx : & mut impl NodeHandlerCtx ,
305
- to : PlatformId ,
305
+ to : BaseboardId ,
306
306
) {
307
307
match & self . op {
308
308
CoordinatorOperation :: CollectShares {
@@ -349,7 +349,7 @@ impl CoordinatorState {
349
349
350
350
/// Record a `PrepareAck` from another node as part of tracking
351
351
/// quorum for the prepare phase of the trust quorum protocol.
352
- pub fn ack_prepare ( & mut self , from : PlatformId ) {
352
+ pub fn ack_prepare ( & mut self , from : BaseboardId ) {
353
353
match & mut self . op {
354
354
CoordinatorOperation :: Prepare {
355
355
prepares, prepare_acks, ..
@@ -384,7 +384,7 @@ impl CoordinatorState {
384
384
pub fn handle_share (
385
385
& mut self ,
386
386
ctx : & mut impl NodeHandlerCtx ,
387
- from : PlatformId ,
387
+ from : BaseboardId ,
388
388
epoch : Epoch ,
389
389
share : Share ,
390
390
) {
@@ -501,7 +501,7 @@ impl CoordinatorState {
501
501
pub fn handle_lrtq_share (
502
502
& mut self ,
503
503
ctx : & mut impl NodeHandlerCtx ,
504
- from : PlatformId ,
504
+ from : BaseboardId ,
505
505
share : LrtqShare ,
506
506
) {
507
507
match & mut self . op {
@@ -627,7 +627,7 @@ impl CoordinatorState {
627
627
& mut self ,
628
628
ctx : & mut impl NodeHandlerCtx ,
629
629
log : Logger ,
630
- mut new_shares : BTreeMap < PlatformId , Share > ,
630
+ mut new_shares : BTreeMap < BaseboardId , Share > ,
631
631
plaintext_secrets : PlaintextRackSecrets ,
632
632
) {
633
633
let new_epoch = self . configuration . epoch ;
@@ -714,25 +714,25 @@ impl CoordinatorState {
714
714
pub enum CoordinatorOperation {
715
715
CollectShares {
716
716
old_epoch : Epoch ,
717
- old_collected_shares : BTreeMap < PlatformId , Share > ,
717
+ old_collected_shares : BTreeMap < BaseboardId , Share > ,
718
718
719
719
// These are new shares that the coordinator created that we carry along
720
720
// until we get to `CoordinatorOperation::Prepare`
721
- new_shares : BTreeMap < PlatformId , Share > ,
721
+ new_shares : BTreeMap < BaseboardId , Share > ,
722
722
} ,
723
723
CollectLrtqShares {
724
- collected_lrtq_shares : BTreeMap < PlatformId , LrtqShare > ,
724
+ collected_lrtq_shares : BTreeMap < BaseboardId , LrtqShare > ,
725
725
726
726
// These are new shares that the coordinator created that we carry along
727
727
// until we get to `CoordinatorOperation::Prepare`
728
- new_shares : BTreeMap < PlatformId , Share > ,
728
+ new_shares : BTreeMap < BaseboardId , Share > ,
729
729
} ,
730
730
Prepare {
731
731
/// The set of Prepares to send to each node
732
- prepares : BTreeMap < PlatformId , ( Configuration , Share ) > ,
732
+ prepares : BTreeMap < BaseboardId , ( Configuration , Share ) > ,
733
733
734
734
/// Acknowledgements that the prepare has been received
735
- prepare_acks : BTreeSet < PlatformId > ,
735
+ prepare_acks : BTreeSet < BaseboardId > ,
736
736
} ,
737
737
}
738
738
@@ -749,7 +749,7 @@ impl CoordinatorOperation {
749
749
750
750
/// Return the members that have acked prepares, if the current operation
751
751
/// is `Prepare`. Otherwise return an empty set.
752
- pub fn acked_prepares ( & self ) -> BTreeSet < PlatformId > {
752
+ pub fn acked_prepares ( & self ) -> BTreeSet < BaseboardId > {
753
753
if let CoordinatorOperation :: Prepare { prepare_acks, .. } = self {
754
754
prepare_acks. clone ( )
755
755
} else {
0 commit comments