Page MenuHomePhabricator

Add global parameters to AppInit
Open, Needs TriagePublic


AppInit() is the main function that initializes the Bitcoin service. The QT wrapper, and bitcoind wrapper to this function wait on the threadGroup after executing AppInit. So, it seems logical to initialize the following variables outside of AppInit and pass them in:

  • g_mempool
  • chainActive
  • gArgs
  • the config

Then as an interim solution, AppInit should set these globals to point to the appropriate objects.

Event Timeline

schancel claimed this task.Nov 26 2018, 03:18
schancel added a subscriber: schancel.
schancel updated the task description. (Show Details)Nov 26 2018, 03:20
schancel updated the task description. (Show Details)