HomePhabricator

Solve chainActive-related locking issues
55a1db4fa2cfUnpublished

Unpublished Commit ยท Learn More

Repository Importing: This repository is still importing.

Description

Solve chainActive-related locking issues

  • In wallet and GUI code LOCK cs_main as well as cs_wallet when necessary
  • In main.cpp SendMessages move the TRY_LOCK(cs_main) up, to encompass the call to IsInitialBlockDownload.
  • Make ActivateBestChain, AddToBlockIndex, IsInitialBlockDownload, InitBlockIndex acquire the cs_main lock

Fixes #3997

Details

Provenance
Wladimir J. van der Laan <laanwj@gmail.com>Authored on Apr 15 2014, 15:38
schancelPushed on Jan 5 2018, 21:58
schancelPushed on Jan 5 2018, 21:39
schancelPushed on Jan 5 2018, 21:17
Parents
rSTAGINGe07c943ce8df: Add AssertLockHeld for cs_main to ChainActive-using functions
Branches
Unknown
Tags
Unknown

Event Timeline

Wladimir J. van der Laan <laanwj@gmail.com> committed rSTAGING55a1db4fa2cf: Solve chainActive-related locking issues (authored by Wladimir J. van der Laan <laanwj@gmail.com>).Apr 18 2014, 10:49