| 4589 | } |
| 4590 | |
| 4591 | int 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 | |
| 4606 | bool CMerkleTx::IsTransactionLockTimedOut() const |
| 4607 | { |
nothing calls this directly
no test coverage detected