/// <summary>
/// Input value.
/// </summary>
- public ulong nValue;
+ public long nValue = -1;
/// <summary>
/// Second half of script which contains spending instructions.
}
}
+ public void SetNull()
+ {
+ nValue = -1;
+ scriptPubKey.SetNullDestination();
+ }
+
+ public void SetEmpty()
+ {
+ nValue = 0;
+ scriptPubKey.SetNullDestination();
+ }
+
+ public bool IsNull
+ {
+ get { return (nValue == -1); }
+ }
+
+ public bool IsEmpty
+ {
+ get { return nValue == 0 && scriptPubKey.IsNull; }
+ }
+
public override string ToString ()
{
StringBuilder sb = new StringBuilder ();