예제 #1
0
 private void RecalculateCreateTransaction()
 {
     if (PendingOutputs.Count > 0 && PendingOutputs.All(x => x.IsValid()))
     {
         EstimatedFee = 0;
         EstimatedRemainingBalance          = 0;
         FinishCreateTransaction.Executable = true;
     }
     else
     {
         FinishCreateTransaction.Executable = false;
     }
 }
예제 #2
0
        private void RecalculateTransaction()
        {
            if (PendingOutputs.Count > 0 && PendingOutputs.All(x => x.IsValid))
            {
                // TODO: calculate estimated fee
                EstimatedFee = 0;
                EstimatedRemainingBalance = 0;

                // TODO: only make executable if we know the transaction can be created
                FinishCreateTransaction.Executable = true;
            }
            else
            {
                EstimatedFee = null;
                EstimatedRemainingBalance          = null;
                FinishCreateTransaction.Executable = false;
            }
        }