instantsend: create islock/isdlock based on the quorum rotation activation status (#4790)

This commit is contained in:
UdjinM6 2022-04-21 04:57:46 +03:00 committed by GitHub
parent 6df95f689a
commit 11a0fd7773
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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);