Skip to content

Commit 1404c57

Browse files
committed
[doc] Coin: explain that IsSpent() can also mean never existed
1 parent bc933ae commit 1404c57

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/coins.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,9 @@ class Coin
7373
::Unserialize(s, Using<TxOutCompression>(out));
7474
}
7575

76+
/** Either this coin never existed (see e.g. coinEmpty in coins.cpp), or it
77+
* did exist and has been spent.
78+
*/
7679
bool IsSpent() const {
7780
return out.IsNull();
7881
}

0 commit comments

Comments
 (0)