MCPcopy Create free account
hub / github.com/ElementsProject/elements / WriteTxs

Method WriteTxs

src/index/txindex.cpp:42–49  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

40}
41
42bool 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
51TxIndex::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))

Callers 1

WriteBlockMethod · 0.80

Calls 2

WriteBatchClass · 0.50
WriteMethod · 0.45

Tested by

no test coverage detected