MCPcopy Create free account
hub / github.com/LUX-Core/lux / GetTransactionLockSignatures

Method GetTransactionLockSignatures

src/wallet.cpp:4591–4604  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4589}
4590
4591int CMerkleTx::GetTransactionLockSignatures() const
4592{
4593 if (fLargeWorkForkFound || fLargeWorkInvalidChainFound) return -2;
4594 if (!IsSporkActive(SPORK_7_INSTANTX)) return -3;
4595 if (!fEnableInstanTX) return -1;
4596
4597 //compile consessus vote
4598 std::map<uint256, CTransactionLock>::iterator i = mapTxLocks.find(GetHash());
4599 if (i != mapTxLocks.end()) {
4600 return (*i).second.CountSignatures();
4601 }
4602
4603 return -1;
4604}
4605
4606bool CMerkleTx::IsTransactionLockTimedOut() const
4607{

Callers

nothing calls this directly

Calls 4

IsSporkActiveFunction · 0.85
CountSignaturesMethod · 0.80
findMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected