From 33205072eb9b0d5e5e147fe478030aacbcdef65a Mon Sep 17 00:00:00 2001 From: oXtxNt9U <120286271+oXtxNt9U@users.noreply.github.com> Date: Thu, 28 May 2026 13:37:23 +0900 Subject: [PATCH 1/2] check `success` in onProposalLocked --- packages/consensus/source/consensus.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/consensus/source/consensus.ts b/packages/consensus/source/consensus.ts index 10881c3af..9d9345605 100644 --- a/packages/consensus/source/consensus.ts +++ b/packages/consensus/source/consensus.ts @@ -295,7 +295,7 @@ export class Consensus implements Contracts.Consensus.Service { const lockedRound = this.getLockedRound(); - if ((!lockedRound || lockedRound <= proposal.validRound) && roundState.getProcessorResult()) { + if ((!lockedRound || lockedRound <= proposal.validRound) && roundState.getProcessorResult().success) { await this.prevote(proposal.blockHeader.hash); } else { await this.prevote(); From 170acba4e4d5d2fcf9aa2e87ec9cec5167695ffb Mon Sep 17 00:00:00 2001 From: oXtxNt9U <120286271+oXtxNt9U@users.noreply.github.com> Date: Thu, 28 May 2026 13:37:35 +0900 Subject: [PATCH 2/2] check `success` in onProposal --- packages/consensus/source/consensus.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/consensus/source/consensus.ts b/packages/consensus/source/consensus.ts index 9d9345605..850a8b320 100644 --- a/packages/consensus/source/consensus.ts +++ b/packages/consensus/source/consensus.ts @@ -271,7 +271,7 @@ export class Consensus implements Contracts.Consensus.Service { this.logger.info(`Received proposal ${this.#getBlockString(proposal.blockHeader)}`, "consensus"); await this.eventDispatcher.dispatch(Events.ConsensusEvent.ProposalAccepted, this.getState()); - await this.prevote(roundState.getProcessorResult() ? proposal.blockHeader.hash : undefined); + await this.prevote(roundState.getProcessorResult().success ? proposal.blockHeader.hash : undefined); } protected async onProposalLocked(roundState: Contracts.Consensus.RoundState): Promise {