Exemplo n.º 1
0
 public IbftApiService(IClient client) : base(client)
 {
     DiscardValidatorVote       = new IbftDiscardValidatorVote(client);
     GetValidatorsByBlockHash   = new IbftGetValidatorsByBlockHash(client);
     GetPendingVotes            = new IbftGetPendingVotes(client);
     GetValidatorsByBlockNumber = new IbftGetValidatorsByBlockNumber(client);
     ProposeValidatorVote       = new IbftProposeValidatorVote(client);
 }
        public override Task <bool> ExecuteAsync(IClient client)
        {
            var ibftDiscardValidatorVote = new IbftDiscardValidatorVote(client);

            return(ibftDiscardValidatorVote.SendRequestAsync(Settings.GetDefaultAccount()));
        }