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

Function EraseBlockIndexFromSet

src/main.cpp:2631–2634  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2629} instance_of_cmaincleanup;
2630
2631bool EraseBlockIndexFromSet(CBlockIndex *pIndex) {
2632 AssertLockHeld(cs_main);
2633 return setBlockIndexValid.erase(pIndex) > 0;
2634}
2635
2636bool IsInitialBlockDownload() {
2637 LOCK(cs_main);

Callers 1

disconnectblockFunction · 0.85

Calls 1

eraseMethod · 0.45

Tested by

no test coverage detected