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

Function EXCLUSIVE_LOCKS_REQUIRED

src/chain.cpp:59–72  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

57}
58
59void CBlockIndex::untrim() EXCLUSIVE_LOCKS_REQUIRED(::cs_main){
60 AssertLockHeld(::cs_main);
61 if (!trimmed())
62 return;
63 CBlockIndex tmp;
64 const CBlockIndex *pindexfull = untrim_to(&tmp);
65 assert(pindexfull!=this);
66 m_trimmed = false;
67 set_stored();
68 proof = pindexfull->proof;
69 m_dynafed_params = pindexfull->m_dynafed_params;
70 m_signblock_witness = pindexfull->m_signblock_witness;
71 m_pcontext->chainman->m_blockman.m_dirty_blockindex.insert(this);
72}
73
74const CBlockIndex *CBlockIndex::untrim_to(CBlockIndex *pindexNew) const EXCLUSIVE_LOCKS_REQUIRED(::cs_main)
75{

Callers

nothing calls this directly

Calls 2

RegenerateFullIndexMethod · 0.80
insertMethod · 0.45

Tested by

no test coverage detected