aboutsummaryrefslogtreecommitdiff
path: root/src/rpc/blockchain.cpp
diff options
context:
space:
mode:
authorMatt Corallo <[email protected]>2017-06-27 14:46:19 -0400
committerMatt Corallo <[email protected]>2017-06-27 14:47:07 -0400
commit381b8fc36537f9fa42f4487bcf55920b2ae0bda9 (patch)
tree95c6c018bdeee5027e5676afb1766bbc319c93dd /src/rpc/blockchain.cpp
parentMerge #10659: [qa] blockchain: Pass on closed connection during generate call (diff)
downloaddiscoin-381b8fc36537f9fa42f4487bcf55920b2ae0bda9.tar.xz
discoin-381b8fc36537f9fa42f4487bcf55920b2ae0bda9.zip
Clarify CCoinsViewMemPool documentation.
Thanks to @sdaftuar for correcting my misunderstanding.
Diffstat (limited to 'src/rpc/blockchain.cpp')
-rw-r--r--src/rpc/blockchain.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rpc/blockchain.cpp b/src/rpc/blockchain.cpp
index 8f7f76841..c17ca2fa3 100644
--- a/src/rpc/blockchain.cpp
+++ b/src/rpc/blockchain.cpp
@@ -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 {