mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-14 12:43:40 +02:00
[doc] Coin: explain that IsSpent() can also mean never existed
This commit is contained in:
parent
bc933aeaf0
commit
1404c57403
1 changed files with 3 additions and 0 deletions
|
|
@ -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();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue