| 72 | } |
| 73 | |
| 74 | void AddressDB::addAddressOutput(const blocksci::RawAddress &address, const blocksci::InoutPointer &pointer) { |
| 75 | outputCache.emplace_back(address, pointer); |
| 76 | if (outputCache.size() >= cacheSize) { |
| 77 | clearOutputCache(); |
| 78 | } |
| 79 | } |
| 80 | |
| 81 | void AddressDB::clearOutputCache() { |
| 82 | db.addOutputAddresses(std::move(outputCache)); |