Test
This commit is contained in:
@@ -1606,8 +1606,7 @@ bool GetAddressUnspent(uint160 addressHash, int type,
|
|||||||
uint64_t myGettxout(uint256 hash,int32_t n)
|
uint64_t myGettxout(uint256 hash,int32_t n)
|
||||||
{
|
{
|
||||||
CCoins coins;
|
CCoins coins;
|
||||||
LOCK(cs_main);
|
LOCK2(cs_main,mempool.cs);
|
||||||
LOCK(mempool.cs);
|
|
||||||
CCoinsViewMemPool view(pcoinsTip, mempool);
|
CCoinsViewMemPool view(pcoinsTip, mempool);
|
||||||
if (!view.GetCoins(hash, coins))
|
if (!view.GetCoins(hash, coins))
|
||||||
return(0);
|
return(0);
|
||||||
|
|||||||
Reference in New Issue
Block a user