mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-11-15 00:17:18 +01:00
[doc] Coin: explain that IsSpent() can also mean never existed
This commit is contained in:
@@ -73,6 +73,9 @@ public:
|
|||||||
::Unserialize(s, Using<TxOutCompression>(out));
|
::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 {
|
bool IsSpent() const {
|
||||||
return out.IsNull();
|
return out.IsNull();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user