Get rid of the dummy CCoinsViewCache constructor arg
This commit is contained in:
@@ -381,7 +381,7 @@ Value gettxout(const Array& params, bool fHelp)
|
||||
CCoins coins;
|
||||
if (fMempool) {
|
||||
LOCK(mempool.cs);
|
||||
CCoinsViewMemPool view(*pcoinsTip, mempool);
|
||||
CCoinsViewMemPool view(pcoinsTip, mempool);
|
||||
if (!view.GetCoins(hash, coins))
|
||||
return Value::null;
|
||||
mempool.pruneSpent(hash, coins); // TODO: this should be done by the CCoinsViewMemPool
|
||||
|
||||
Reference in New Issue
Block a user