| 117 | } |
| 118 | |
| 119 | bool CachingTransactionSignatureChecker::VerifySignature(const std::vector<unsigned char>& vchSig, const CPubKey& pubkey, const uint256& sighash, uint32_t flags) const |
| 120 | { |
| 121 | uint256 entry; |
| 122 | signatureCache.ComputeEntry(entry, sighash, vchSig, pubkey, flags); |
| 123 | if (signatureCache.Get(entry, !store)) |
| 124 | return true; |
| 125 | if (!TransactionSignatureChecker::VerifySignature(vchSig, pubkey, sighash, flags)) |
| 126 | return false; |
| 127 | if (store) |
| 128 | signatureCache.Set(entry); |
| 129 | return true; |
| 130 | } |
nothing calls this directly
no test coverage detected