From 11a0fd7773dce640df699242fd10cb66ef944894 Mon Sep 17 00:00:00 2001 From: UdjinM6 Date: Thu, 21 Apr 2022 04:57:46 +0300 Subject: [PATCH] instantsend: create islock/isdlock based on the quorum rotation activation status (#4790) --- src/llmq/instantsend.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/llmq/instantsend.cpp b/src/llmq/instantsend.cpp index 0dc42b89c2..c6827f4c20 100644 --- a/src/llmq/instantsend.cpp +++ b/src/llmq/instantsend.cpp @@ -694,7 +694,9 @@ void CInstantSendManager::TrySignInstantSendLock(const CTransaction& tx) LogPrint(BCLog::INSTANTSEND, "CInstantSendManager::%s -- txid=%s: got all recovered sigs, creating CInstantSendLock\n", __func__, tx.GetHash().ToString()); - CInstantSendLock islock(CInstantSendLock::isdlock_version); + CInstantSendLock islock(llmqType == Params().GetConsensus().llmqTypeDIP0024InstantSend ? + CInstantSendLock::isdlock_version: + CInstantSendLock::islock_version); islock.txid = tx.GetHash(); for (auto& in : tx.vin) { islock.inputs.emplace_back(in.prevout);