Skip to content

Commit 810ecd8

Browse files
UdjinM6PastaPastaPasta
authored andcommitted
fix: don't use baseBlockIndexes.back() for the tip
1 parent ec78465 commit 810ecd8

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/llmq/snapshot.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -319,7 +319,9 @@ bool BuildQuorumRotationInfo(CDeterministicMNManager& dmnman, CQuorumSnapshotMan
319319
}
320320
baseBlockIndexes.push_back(pWorkBlockHIndex);
321321

322-
if (!BuildSimplifiedMNListDiff(dmnman, chainman, qblockman, qman, baseBlockIndexes.back()->GetBlockHash(), tipBlockIndex->GetBlockHash(), response.mnListDiffTip, errorRet)) {
322+
if (!BuildSimplifiedMNListDiff(dmnman, chainman, qblockman, qman,
323+
GetLastBaseBlockHash(baseBlockIndexes, tipBlockIndex),
324+
tipBlockIndex->GetBlockHash(), response.mnListDiffTip, errorRet)) {
323325
return false;
324326
}
325327

0 commit comments

Comments
 (0)