Bitcoin
|
Public Member Functions | |
CSignatureCache () | |
void | ComputeEntry (uint256 &entry, const uint256 &hash, const std::vector< unsigned char > &vchSig, const CPubKey &pubkey) |
bool | Get (const uint256 &entry, const bool erase) |
void | Set (uint256 &entry) |
uint32_t | setup_bytes (size_t n) |
Private Types | |
typedef CuckooCache::cache< uint256, SignatureCacheHasher > | map_type |
Private Attributes | |
uint256 | nonce |
Entries are SHA256(nonce || signature hash || public key || signature): More... | |
map_type | setValid |
boost::shared_mutex | cs_sigcache |
Valid signature cache, to avoid doing expensive ECDSA signature checking twice for every transaction (once when accepted into memory pool, and again when accepted into the block chain)
|
private |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
private |
|
private |
Entries are SHA256(nonce || signature hash || public key || signature):
|
private |