| 57 | } |
| 58 | |
| 59 | CBlockLocator GetLocator(interfaces::Chain& chain, const uint256& block_hash) |
| 60 | { |
| 61 | CBlockLocator locator; |
| 62 | bool found = chain.findBlock(block_hash, interfaces::FoundBlock().locator(locator)); |
| 63 | assert(found); |
| 64 | assert(!locator.IsNull()); |
| 65 | return locator; |
| 66 | } |
| 67 | |
| 68 | BaseIndex::DB::DB(const fs::path& path, size_t n_cache_size, bool f_memory, bool f_wipe, bool f_obfuscate) : |
| 69 | CDBWrapper{DBParams{ |