public TestPoAMiner(
            IConsensusManager consensusManager,
            IDateTimeProvider dateTimeProvider,
            Network network,
            INodeLifetime nodeLifetime,
            ILoggerFactory loggerFactory,
            IInitialBlockDownloadState ibdState,
            BlockDefinition blockDefinition,
            ISlotsManager slotsManager,
            IConnectionManager connectionManager,
            PoABlockHeaderValidator poaHeaderValidator,
            IFederationManager federationManager,
            IIntegrityValidator integrityValidator,
            IWalletManager walletManager,
            INodeStats nodeStats,
            VotingManager votingManager,
            PoAMinerSettings poAMinerSettings,
            IAsyncProvider asyncProvider) : base(consensusManager, dateTimeProvider, network, nodeLifetime, loggerFactory, ibdState, blockDefinition, slotsManager,
                                                 connectionManager, poaHeaderValidator, federationManager, integrityValidator, walletManager, nodeStats, votingManager, poAMinerSettings, asyncProvider)
        {
            this.timeProvider = dateTimeProvider as EditableTimeProvider;

            this.cancellation     = new CancellationTokenSource();
            this.slotsManager     = slotsManager;
            this.consensusManager = consensusManager;
        }
Beispiel #2
0
 private PoANodeBuilder(string rootFolder) : base(rootFolder)
 {
     this.TimeProvider = new EditableTimeProvider();
 }
Beispiel #3
0
 public PoANodeRunner(string dataDir, PoANetwork network, EditableTimeProvider timeProvider)
     : base(dataDir, null)
 {
     this.Network      = network;
     this.timeProvider = timeProvider;
 }
Beispiel #4
0
 public PoANodeRunnerWithCounterchain(string dataDir, PoANetwork network, Network counterChain, EditableTimeProvider timeProvider)
     : base(dataDir, null)
 {
     this.Network      = network;
     this.timeProvider = timeProvider;
     this.counterChain = counterChain;
 }