示例#1
0
        public override int CompareToImpl(BaseTransaction obj)
        {
            var noneCoinBaseTransaction = obj as NoneCoinbaseTransaction;

            if (noneCoinBaseTransaction == null)
            {
                return(1);
            }

            var r = noneCoinBaseTransaction.GetReferencedTransactionOut(this);

            if (r.Any())
            {
                return(1);
            }

            r = GetReferencedTransactionOut(noneCoinBaseTransaction);
            if (r.Any())
            {
                return(-1);
            }

            return(0);
        }
示例#2
0
 public abstract int CompareToImpl(BaseTransaction obj);
示例#3
0
 public override int CompareToImpl(BaseTransaction obj)
 {
     return(-1);
 }