MCPcopy Create free account
hub / github.com/WaykiChain/WaykiChain / SetTxIndex

Method SetTxIndex

src/persistence/blockdb.cpp:149–151  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

147}
148
149bool CBlockDBCache::SetTxIndex(const uint256 &txid, const CDiskTxPos &pos) {
150 return tx_diskpos_cache.SetData(txid, pos);
151}
152
153bool CBlockDBCache::WriteTxIndexes(const vector<pair<uint256, CDiskTxPos> > &list) {
154 for (auto it : list) {

Callers 3

SaveTxIndexFunction · 0.45
LoadBlockIndexDBFunction · 0.45
InitBlockIndexFunction · 0.45

Calls 1

SetDataMethod · 0.45

Tested by

no test coverage detected