mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-18 13:17:55 +02:00
Assets: Introduce bool CTransaction::IsAssetDefinition()
This commit is contained in:
parent
4e411b4375
commit
5d6d4beed7
1 changed files with 6 additions and 0 deletions
|
|
@ -312,6 +312,12 @@ public:
|
|||
return (vin.size() == 1 && vin[0].prevout.IsNull());
|
||||
}
|
||||
|
||||
//! Asset definition transactions must have more than 1 input
|
||||
bool IsAssetDefinition() const
|
||||
{
|
||||
return (vin.size() > 1 && vin[0].prevout.IsNull());
|
||||
}
|
||||
|
||||
friend bool operator==(const CTransaction& a, const CTransaction& b)
|
||||
{
|
||||
return a.hash == b.hash;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue