HomePhabricator

Add AssertLockHeld for cs_main to ChainActive-using functions
e07c943ce8dfUnpublished

Unpublished Commit ยท Learn More

Repository Importing: This repository is still importing.

Description

Add AssertLockHeld for cs_main to ChainActive-using functions

All functions that use ChainActive but do not aquire the cs_main
lock themselves, need to be called with the cs_main lock held.

This commit adds assertions to all externally callable functions
that use chainActive or chainMostWork.

This will flag usages when built with -DDEBUG_LOCKORDER.

Details

Provenance
Wladimir J. van der Laan <laanwj@gmail.com>Authored on Apr 15 2014, 10:43
schancelPushed on Jan 5 2018, 21:58
schancelPushed on Jan 5 2018, 21:39
schancelPushed on Jan 5 2018, 21:17
Parents
rSTAGING2f3308f2d2d4: Translation update 2014-04
Branches
Unknown
Tags
Unknown

Event Timeline

Wladimir J. van der Laan <laanwj@gmail.com> committed rSTAGINGe07c943ce8df: Add AssertLockHeld for cs_main to ChainActive-using functions (authored by Wladimir J. van der Laan <laanwj@gmail.com>).Apr 17 2014, 14:46