diff --git a/src/main.cpp b/src/main.cpp index d604b4eec..7634226f4 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -1606,8 +1606,7 @@ bool GetAddressUnspent(uint160 addressHash, int type, uint64_t myGettxout(uint256 hash,int32_t n) { CCoins coins; - LOCK(cs_main); - LOCK(mempool.cs); + LOCK2(cs_main,mempool.cs); CCoinsViewMemPool view(pcoinsTip, mempool); if (!view.GetCoins(hash, coins)) return(0);