• Gavin Andresen's avatar
    Wallet locking fixes for -DDEBUG_LOCKORDER · a984dc00
    Gavin Andresen authored
    Compiling with -DDEBUG_LOCKORDER and running the qa/rpc-test/ regression
    tests uncovered a couple of wallet methods that should (but didn't)
    acquire the cs_wallet mutext.
    
    I also changed the AssertLockHeld() routine print to stderr and
    abort, instead of printing to debug.log and then assert()'ing.
    It is annoying to look in debug.log to find out which
    AssertLockHeld is failing.
    a984dc00
wallet.cpp 72 KB