…; avoid them
…e trying to make the initial blockchain download.
…tex lock/unlock (helpful for debugging something-is-holding-a-mutex-too-long problems)
…r they're tried.
… unusable in GUI.
…ed). Fixes #445 Renames GetOrReuseKeyFromKeyPool to GetKeyFromPool, with fAllowReuse arg and bool result.
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.