aboutsummaryrefslogtreecommitdiff
path: root/src/coins.h
diff options
context:
space:
mode:
authorSjors Provoost <sjors@sprovoost.nl>2020-01-30 19:28:54 +0100
committerSjors Provoost <sjors@sprovoost.nl>2020-06-10 17:46:54 +0200
commit1404c574037da331c233317618b9b90d3329ed33 (patch)
tree56bc0864ee7819151ce48c269a1e40f1066d6537 /src/coins.h
parentbc933aeaf04420218b46318e316ee5eaa772823c (diff)
[doc] Coin: explain that IsSpent() can also mean never existed
Diffstat (limited to 'src/coins.h')
-rw-r--r--src/coins.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/coins.h b/src/coins.h
index a3f34bb0ee..fadb1058cd 100644
--- a/src/coins.h
+++ b/src/coins.h
@@ -73,6 +73,9 @@ public:
::Unserialize(s, Using<TxOutCompression>(out));
}
+ /** Either this coin never existed (see e.g. coinEmpty in coins.cpp), or it
+ * did exist and has been spent.
+ */
bool IsSpent() const {
return out.IsNull();
}