mirror of
https://github.com/kvazar-network/kevacoin.git
synced 2025-02-09 13:44:26 +00:00
![Pieter Wuille](/assets/img/avatar_default.png)
Remove the pnext pointer in CBlockIndex, and replace it with a vBlockIndexByHeight vector (no effect on memory usage). pnext can now be replaced by vBlockIndexByHeight[nHeight+1], but FindBlockByHeight becomes constant-time. This also means the entire mapBlockIndex structure and the block index entries in it become purely blocktree-related data, and independent from the currently active chain, potentially allowing them to be protected by separate mutexes in the future.
These patches are applied when the automated pull-tester tests each pull and when master is tested using jenkins. You can find more information about the tests run at http://jenkins.bluematt.me/pull-tester/files/