コード例 #1
0
 public ConsensusFeature(
     DBreezeCoinView dBreezeCoinView,
     Network network,
     ConsensusValidator consensusValidator,
     ConcurrentChain chain,
     LookaheadBlockPuller blockPuller,
     CoinView coinView,
     ChainBehavior.ChainState chainState,
     ConnectionManager connectionManager,
     CancellationProvider globalCancellation,
     Signals signals,
     ConsensusLoop consensusLoop,
     NodeSettings nodeSettings)
 {
     this.dBreezeCoinView    = dBreezeCoinView;
     this.consensusValidator = consensusValidator;
     this.chain              = chain;
     this.blockPuller        = blockPuller;
     this.coinView           = coinView;
     this.chainState         = chainState;
     this.connectionManager  = connectionManager;
     this.globalCancellation = globalCancellation;
     this.signals            = signals;
     this.network            = network;
     this.consensusLoop      = consensusLoop;
     this.nodeSettings       = nodeSettings;
 }
コード例 #2
0
        public ConsensusLoop(ConsensusValidator validator, ConcurrentChain chain, CoinView utxoSet, LookaheadBlockPuller puller)
        {
            Guard.NotNull(validator, nameof(validator));
            Guard.NotNull(chain, nameof(chain));
            Guard.NotNull(utxoSet, nameof(utxoSet));
            Guard.NotNull(puller, nameof(puller));

            _Validator = validator;
            _Chain     = chain;
            _utxoSet   = utxoSet;
            _Puller    = puller;
        }