Page MenuHomePhabricator

rename 'loadblk' thread name to 'initload'
Needs ReviewPublic

Authored by PiRK on Tue, Mar 4, 10:05.

Details

Reviewers
None
Group Reviewers
Restricted Project
Summary

The thread does not only load blocks, it loads the mempool and,
in a future commit, will start the indexes as well.

Also, renamed the 'ThreadImport' function to 'ImportBlocks'
And the 'm_load_block' class member to 'm_thread_load'.

-BEGIN VERIFY SCRIPT-

sed -i "s/ThreadImport/ImportBlocks/g" $(git grep -l ThreadImport -- ':!/doc/')
sed -i "s/loadblk/initload/g" $(git grep -l loadblk -- ':!/doc/release-notes/')
sed -i "s/m_load_block/m_thread_load/g" $(git grep -l m_load_block)

-END VERIFY SCRIPT-

This is a partial backport of core#27607
https://github.com/bitcoin/bitcoin/pull/27607/commits/04575106b2529f495ce8110ddf7ed2247d4bc339
https://github.com/bitcoin/bitcoin/pull/27607/commits/2ebc7e68cc9d347807b646f601b27940c9590c89
Depends on D17744

Test Plan

ninja all check-all