Skip to content

Commit

Permalink
internal: adjust comment to match the implementation
Browse files Browse the repository at this point in the history
Signed-off-by: Anna Shaleva <[email protected]>
  • Loading branch information
AnnaShaleva committed Mar 4, 2024
1 parent b026cb9 commit 2c98ae6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/simulation/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ func (n *simNode) ProcessBlock(b dbft.Block[crypto.Uint256, crypto.Uint160]) {
n.lastHash = b.Hash()
}

// VerifyPrepareRequest verifies that payload was received from a good validator.
// VerifyPayload verifies that payload was received from a good validator.
func (n *simNode) VerifyPayload(p dbft.ConsensusPayload[crypto.Uint256, crypto.Uint160]) error {
if *blocked != -1 && p.ValidatorIndex() == uint16(*blocked) {
return fmt.Errorf("message from blocked validator: %d", *blocked)
Expand Down

0 comments on commit 2c98ae6

Please sign in to comment.