• Gavin Andresen's avatar
    Fix rpc-hanging deadlocks · 6cc4a62c
    Gavin Andresen authored
    Collapsed multiple wallet mutexes to a single cs_wallet, to avoid deadlocks with wallet methods that acquired locks in different order.
    Also change master RPC call handler to acquire cs_main and cs_wallet locks before executing RPC calls; requiring each RPC call to acquire the right set of locks in the right order was too error-prone.
    6cc4a62c
main.cpp 97.7 KB