| 71 | } |
| 72 | |
| 73 | void |
| 74 | ComputeEntry(uint256& entry, const uint256 &hash, const std::vector<unsigned char>& vchSig, const CPubKey& pubkey, uint32_t flags) |
| 75 | { |
| 76 | flags &= ~INVARIANT_FLAGS; |
| 77 | CSHA256().Write(nonce.begin(), 32).Write(reinterpret_cast<uint8_t *>(&flags), sizeof(flags)).Write(hash.begin(), 32).Write(&pubkey[0], pubkey.size()).Write(&vchSig[0], vchSig.size()).Finalize(entry.begin()); |
| 78 | } |
| 79 | |
| 80 | bool |
| 81 | Get(const uint256& entry, const bool erase) |