Clarify CCoinsViewMemPool documentation.

Thanks to @sdaftuar for correcting my misunderstanding.
This commit is contained in:
Matt Corallo
2017-06-27 14:46:19 -04:00
parent acb11535cb
commit 381b8fc365
2 changed files with 8 additions and 1 deletions

View File

@@ -991,7 +991,7 @@ UniValue gettxout(const JSONRPCRequest& request)
if (fMempool) {
LOCK(mempool.cs);
CCoinsViewMemPool view(pcoinsTip, mempool);
if (!view.GetCoin(out, coin) || mempool.isSpent(out)) { // TODO: filtering spent coins should be done by the CCoinsViewMemPool
if (!view.GetCoin(out, coin) || mempool.isSpent(out)) {
return NullUniValue;
}
} else {