예제 #1
0
        public InputValidationResult[] ValidateInputs()
        {
            var inputsResult = new InputValidationResult[Transaction.Inputs.Count];

            for (int i = 0; i < Transaction.Inputs.Count; i++)
            {
                inputsResult[i] = ValidateInput(i);
            }
            return(inputsResult);
        }
예제 #2
0
 public bool TryValidateInput(int index, out InputValidationResult result)
 {
     result = ValidateInput(index);
     return(result.Error is null);
 }