Assets: Introduce bool CTransaction::IsAssetDefinition()

This commit is contained in:
jtimon 2014-12-02 21:52:32 +01:00 committed by Jorge Timón
parent 4e411b4375
commit 5d6d4beed7

View file

@ -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;