clear pass fields on accept
clear pass fields on accept
fix memory leak
AvailableCoins: acquire cs_main mutex
refactor coin selection for staking
fix relock on sending coins when "for staking only" is activated
Allocate receive buffers in on the fly

remove unused CNode::Cleanup()
Internal RNG for approximateBestSubset to prevent degenerate behavior
Remove -detachdb and stop's detach argument.
Add missing LOCK

correct hashProofOfStake
fix typo