dogecoin/dogecoin — pull request #684 by rnicoll (2014-08-29 19:29:05+00:00)
Title: AvailableCoins() now acquires cs_main lock

It's required when called from listunspent() which doesn't acquire locks (unlike via SelectCoins() which does).

Rebased-From: ea3acaf