| 40 | } |
| 41 | |
| 42 | bool TxIndex::DB::WriteTxs(const std::vector<std::pair<uint256, CDiskTxPos>>& v_pos) |
| 43 | { |
| 44 | CDBBatch batch(*this); |
| 45 | for (const auto& tuple : v_pos) { |
| 46 | batch.Write(std::make_pair(DB_TXINDEX, tuple.first), tuple.second); |
| 47 | } |
| 48 | return WriteBatch(batch); |
| 49 | } |
| 50 | |
| 51 | TxIndex::TxIndex(size_t n_cache_size, bool f_memory, bool f_wipe) |
| 52 | : m_db(std::make_unique<TxIndex::DB>(n_cache_size, f_memory, f_wipe)) |
no test coverage detected