Skip to content

Commit 85fcf32

Browse files
codablockUdjinM6
authored andcommitted
Remove support for InstantSend locked gobject collaterals (#3019)
1 parent 53efd1f commit 85fcf32

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/governance/governance-object.cpp

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,16 +8,13 @@
88
#include "governance-validators.h"
99
#include "governance-vote.h"
1010
#include "governance.h"
11-
#include "instantsend.h"
1211
#include "masternode/masternode-meta.h"
1312
#include "masternode/masternode-sync.h"
1413
#include "messagesigner.h"
1514
#include "spork.h"
1615
#include "util.h"
1716
#include "validation.h"
1817

19-
#include "llmq/quorums_instantsend.h"
20-
2118
#include <string>
2219
#include <univalue.h>
2320

@@ -589,8 +586,7 @@ bool CGovernanceObject::IsCollateralValid(std::string& strError, bool& fMissingC
589586
}
590587
}
591588

592-
if ((nConfirmationsIn < GOVERNANCE_FEE_CONFIRMATIONS) &&
593-
(!instantsend.IsLockedInstantSendTransaction(nCollateralHash) || llmq::quorumInstantSendManager->IsLocked(nCollateralHash))) {
589+
if ((nConfirmationsIn < GOVERNANCE_FEE_CONFIRMATIONS)) {
594590
strError = strprintf("Collateral requires at least %d confirmations to be relayed throughout the network (it has only %d)", GOVERNANCE_FEE_CONFIRMATIONS, nConfirmationsIn);
595591
if (nConfirmationsIn >= GOVERNANCE_MIN_RELAY_FEE_CONFIRMATIONS) {
596592
fMissingConfirmations = true;

0 commit comments

Comments
 (0)