From 2c98ae618d8221cf044c3d2992b8d2a99ece8da7 Mon Sep 17 00:00:00 2001 From: Anna Shaleva Date: Mon, 4 Mar 2024 17:02:51 +0300 Subject: [PATCH] internal: adjust comment to match the implementation Signed-off-by: Anna Shaleva --- internal/simulation/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/simulation/main.go b/internal/simulation/main.go index 21bd57b3..e4587935 100644 --- a/internal/simulation/main.go +++ b/internal/simulation/main.go @@ -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)