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);
 }
Exemple #2
0
        public override async Task <string[]> ExecuteAsync(IClient client)
        {
            var ibftGetValidatorsByBlockHash = new IbftGetValidatorsByBlockHash(client);

            return(await ibftGetValidatorsByBlockHash.SendRequestAsync(Settings.GetBlockHash()));
        }