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

Method BatchWrite

src/test/pegin_spent_tests.cpp:36–43  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

34
35 CCoinsMap mapCoinsWritten;
36 bool BatchWrite(CCoinsMap &mapCoins, const uint256 &hashBlock) override {
37 mapCoinsWritten.clear();
38 for (CCoinsMap::iterator it = mapCoins.begin(); it != mapCoins.end(); it = mapCoins.erase(it)) {
39 mapCoinsWritten[it->first] = it->second;
40 }
41 //mapCoinsWritten = mapCoins;
42 return CCoinsView::BatchWrite(mapCoins, hashBlock);
43 }
44
45 CCoinsViewTester() : IsPeginSpentCalled(false) {}
46};

Callers 1

BOOST_AUTO_TEST_CASEFunction · 0.45

Calls 4

clearMethod · 0.45
beginMethod · 0.45
endMethod · 0.45
eraseMethod · 0.45

Tested by

no test coverage detected