Пример #1
0
        public async Task With_steps_from_here_Clique()
        {
            EthereumRunnerContext runnerContext = new CliqueEthereumRunnerContext(
                new ConfigProvider(),
                LimboLogs.Instance);

            IEthereumStepsLoader stepsLoader  = new EthereumStepsLoader(GetType().Assembly);
            EthereumStepsManager stepsManager = new EthereumStepsManager(
                stepsLoader,
                runnerContext,
                LimboLogs.Instance);

            CancellationTokenSource source = new CancellationTokenSource(TimeSpan.FromSeconds(1));

            try
            {
                await stepsManager.InitializeAll(source.Token);
            }
            catch (Exception e)
            {
                if (!(e is OperationCanceledException))
                {
                    throw new AssertionFailedException($"Exception should be {nameof(OperationCanceledException)}");
                }
            }
        }
 public RegisterRpcModulesClique(CliqueEthereumRunnerContext context) : base(context)
 {
     _context = context;
 }
Пример #3
0
 public StartBlockProducerClique(CliqueEthereumRunnerContext context) : base(context)
 {
     _context = context;
 }
Пример #4
0
 public StepCClique(CliqueEthereumRunnerContext runnerContext)
 {
 }
 public InitializeBlockchainClique(CliqueEthereumRunnerContext context) : base(context)
 {
     _context = context;
 }