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

Function EXCLUSIVE_LOCKS_REQUIRED

src/index/base.cpp:114–128  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

112}
113
114static const CBlockIndex* NextSyncBlock(const CBlockIndex* pindex_prev, CChain& chain) EXCLUSIVE_LOCKS_REQUIRED(cs_main)
115{
116 AssertLockHeld(cs_main);
117
118 if (!pindex_prev) {
119 return chain.Genesis();
120 }
121
122 const CBlockIndex* pindex = chain.Next(pindex_prev);
123 if (pindex) {
124 return pindex;
125 }
126
127 return chain.Next(chain.FindFork(pindex_prev));
128}
129
130void BaseIndex::ThreadSync()
131{

Callers 15

rbf.hFile · 0.50
receive.hFile · 0.50
feebumper.cppFile · 0.50
spend.cppFile · 0.50
walletdb.cppFile · 0.50
interfaces.cppFile · 0.50
backup.cppFile · 0.50
coins.cppFile · 0.50
transactions.cppFile · 0.50
mempool_stress.cppFile · 0.50
rpc_mempool.cppFile · 0.50

Calls 3

GenesisMethod · 0.80
FindForkMethod · 0.80
NextMethod · 0.45

Tested by

no test coverage detected