From eca782cfbdef992f9999501467db048a33f5cc1a Mon Sep 17 00:00:00 2001 From: kourin Date: Fri, 27 Jan 2023 11:41:08 +0200 Subject: [PATCH] Move logging to proper position --- core/ibft.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/ibft.go b/core/ibft.go index 8b650bb..d475d16 100644 --- a/core/ibft.go +++ b/core/ibft.go @@ -803,8 +803,6 @@ func (i *IBFT) runPrepare(ctx context.Context) { for { prepareMessages := i.handlePrepare(view) if prepareMessages != nil { - i.log.Debug("commit message multicasted") - i.state.finalizePrepare( &proto.PreparedCertificate{ ProposalMessage: i.state.getProposalMessage(), @@ -818,6 +816,8 @@ func (i *IBFT) runPrepare(ctx context.Context) { // Multicast the COMMIT message i.sendCommitMessage(view) + i.log.Debug("commit message multicasted") + return }