| 57 | } |
| 58 | |
| 59 | void 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 | |
| 74 | const CBlockIndex *CBlockIndex::untrim_to(CBlockIndex *pindexNew) const EXCLUSIVE_LOCKS_REQUIRED(::cs_main) |
| 75 | { |
nothing calls this directly
no test coverage detected