diff --git a/src/llmq/quorums_blockprocessor.cpp b/src/llmq/quorums_blockprocessor.cpp index c24170c283..796fff6fb2 100644 --- a/src/llmq/quorums_blockprocessor.cpp +++ b/src/llmq/quorums_blockprocessor.cpp @@ -321,7 +321,8 @@ bool CQuorumBlockProcessor::GetCommitmentsFromBlock(const CBlock& block, const C return state.DoS(100, false, REJECT_INVALID, "bad-qc-dup"); } - ret.emplace((Consensus::LLMQType)qc.commitment.llmqType, std::move(qc.commitment)); + auto llmqTypeTemp = (Consensus::LLMQType)qc.commitment.llmqType; + ret.emplace(llmqTypeTemp, std::move(qc.commitment)); } }