From e84c3e14c9c8dce8751a95d6bbe2a8099ee3a0f0 Mon Sep 17 00:00:00 2001 From: Moshe Shababo <17073733+moshababo@users.noreply.github.com> Date: Thu, 30 Nov 2023 20:03:19 -0600 Subject: [PATCH] Add comments --- node/actors/bft/src/leader/replica_commit.rs | 1 + node/actors/bft/src/leader/replica_prepare.rs | 1 + 2 files changed, 2 insertions(+) diff --git a/node/actors/bft/src/leader/replica_commit.rs b/node/actors/bft/src/leader/replica_commit.rs index ec1a7cad..212c811e 100644 --- a/node/actors/bft/src/leader/replica_commit.rs +++ b/node/actors/bft/src/leader/replica_commit.rs @@ -64,6 +64,7 @@ impl StateMachine { let message = signed_message.msg; let author = &signed_message.key; + // Check that the message signer is in the validator set. consensus .validator_set .index(author) diff --git a/node/actors/bft/src/leader/replica_prepare.rs b/node/actors/bft/src/leader/replica_prepare.rs index e10e958b..c559c7c1 100644 --- a/node/actors/bft/src/leader/replica_prepare.rs +++ b/node/actors/bft/src/leader/replica_prepare.rs @@ -76,6 +76,7 @@ impl StateMachine { let message = signed_message.msg.clone(); let author = &signed_message.key; + // Check that the message signer is in the validator set. consensus .validator_set .index(author)