HomePhabricator

Reorder AppInit2
7d80d2e3d7ecUnpublished

Unpublished Commit ยท Learn More

Repository Importing: This repository is still importing.

Description

Reorder AppInit2

This reorders AppInit2 into 10 sections:

  1. basic setup (OS stuff, signal handlers)
  2. parameter interactions (softset)
  3. interpreting options without side effects (just setting internal variables)
  4. application initialization (datadir lock, daemonize, pidfile, log file)
  5. network initialization (network params, proxy, binding)
  6. load blockchain
  7. load wallet
  8. import blocks (-loadblock=)
  9. load peers
  10. start node/rpc threads
  11. finished

This means invalid configurations will be detected as soon as possible
(in particular, before loading the block chain).

Details

Provenance
Pieter Wuille <pieter.wuille@gmail.com>Authored on May 21 2012, 14:47
schancelPushed on Jan 5 2018, 21:58
schancelPushed on Jan 5 2018, 21:39
schancelPushed on Jan 5 2018, 21:17
Parents
rSTAGING46784d0826df: Merge pull request #1354 from fanquake/master
Branches
Unknown
Tags
Unknown

Event Timeline

Pieter Wuille <pieter.wuille@gmail.com> committed rSTAGING7d80d2e3d7ec: Reorder AppInit2 (authored by Pieter Wuille <pieter.wuille@gmail.com>).May 21 2012, 16:43