public PosMinting(ConsensusLoop consensusLoop, ConcurrentChain chain, Network network, ConnectionManager connection, IDateTimeProvider dateTimeProvider, AssemblerFactory blockAssemblerFactory, BlockRepository blockRepository, BlockStore.ChainBehavior.ChainState chainState, Signals signals, FullNode.CancellationProvider cancellationProvider, NodeSettings settings, CoinView coinView, StakeChain stakeChain) { this.consensusLoop = consensusLoop; this.chain = chain; this.network = network; this.connection = connection; this.dateTimeProvider = dateTimeProvider; this.blockAssemblerFactory = blockAssemblerFactory; this.blockRepository = blockRepository; this.chainState = chainState; this.signals = signals; this.cancellationProvider = cancellationProvider; this.settings = settings; this.coinView = coinView; this.stakeChain = stakeChain; this.minerSleep = 500; // GetArg("-minersleep", 500); this.lastCoinStakeSearchTime = Utils.DateTimeToUnixTime(this.dateTimeProvider.GetTimeOffset()); // startup timestamp this.reserveBalance = 0; // TOOD:settings.ReserveBalance this.minimumInputValue = 0; this.posConsensusValidator = consensusLoop.Validator as PosConsensusValidator; }
public PowMining(ConsensusLoop consensusLoop, ConcurrentChain chain, Network network, IDateTimeProvider dateTimeProvider, AssemblerFactory blockAssemblerFactory, BlockRepository blockRepository, BlockStore.ChainBehavior.ChainState chainState, Signals signals, FullNode.CancellationProvider cancellationProvider) { this.consensusLoop = consensusLoop; this.chain = chain; this.network = network; this.dateTimeProvider = dateTimeProvider; this.blockAssemblerFactory = blockAssemblerFactory; this.blockRepository = blockRepository; this.chainState = chainState; this.signals = signals; this.cancellationProvider = cancellationProvider; }
public PowMining(ConsensusLoop consensusLoop, ConcurrentChain chain, Network network, IDateTimeProvider dateTimeProvider, AssemblerFactory blockAssemblerFactory, BlockRepository blockRepository, BlockStore.ChainBehavior.ChainState chainState, Signals signals, INodeLifetime nodeLifetime, IAsyncLoopFactory asyncLoopFactory) { this.consensusLoop = consensusLoop; this.chain = chain; this.network = network; this.dateTimeProvider = dateTimeProvider; this.blockAssemblerFactory = blockAssemblerFactory; this.blockRepository = blockRepository; this.chainState = chainState; this.signals = signals; this.nodeLifetime = nodeLifetime; this.asyncLoopFactory = asyncLoopFactory; }