Beispiel #1
0
        private void validateBtn_Click(object sender, EventArgs e)
        {
            var      message  = NodeApiClient.ValidateConsensus();
            Severity severity = Severity.Info;

            if (message.Contains("authoritive"))
            {
                severity = Severity.Success;
            }
            else
            {
                severity = Severity.Warning;
            }
            Log(message, severity);
        }
Beispiel #2
0
        private void ChainOnConsensusValidateRequest(object sender, EventArgs eventArgs)
        {
            Log("A consensus update is request has been received");
            var      validateResult = NodeApiClient.ValidateConsensus();
            Severity severity       = Severity.Info;

            if (validateResult.Contains("authoritive"))
            {
                severity = Severity.Success;
            }
            else
            {
                severity = Severity.Warning;
            }
            Log(validateResult, severity);
        }