private readonly ConcurrentDictionary <uint256, uint256> blockHashesToAnnounce;        // maybe replace with a task scheduler


        public BlockStoreSignaled(BlockStoreLoop storeLoop, ConcurrentChain chain, NodeSettings nodeArgs,
                                  BlockStore.ChainBehavior.ChainState chainState, ConnectionManager connection)
        {
            this.storeLoop  = storeLoop;
            this.chain      = chain;
            this.nodeArgs   = nodeArgs;
            this.chainState = chainState;
            this.connection = connection;

            this.blockHashesToAnnounce = new ConcurrentDictionary <uint256, uint256>();
        }
 public BlockStoreFeature(ConcurrentChain chain, ConnectionManager connectionManager, Signals signals, BlockRepository blockRepository,
                          BlockStoreCache blockStoreCache, StoreBlockPuller blockPuller, BlockStoreLoop blockStoreLoop, BlockStoreManager blockStoreManager,
                          BlockStoreSignaled blockStoreSignaled, FullNode.CancellationProvider cancellationProvider)
 {
     this.chain                = chain;
     this.signals              = signals;
     this.blockRepository      = blockRepository;
     this.blockStoreCache      = blockStoreCache;
     this.blockPuller          = blockPuller;
     this.blockStoreLoop       = blockStoreLoop;
     this.blockStoreManager    = blockStoreManager;
     this.blockStoreSignaled   = blockStoreSignaled;
     this.cancellationProvider = cancellationProvider;
     this.connectionManager    = connectionManager;
 }
Ejemplo n.º 3
0
 public BlockStoreFeature(ConcurrentChain chain, IConnectionManager connectionManager, Signals signals, BlockRepository blockRepository,
                          BlockStoreCache blockStoreCache, StoreBlockPuller blockPuller, BlockStoreLoop blockStoreLoop, BlockStoreManager blockStoreManager,
                          BlockStoreSignaled blockStoreSignaled, INodeLifetime nodeLifetime, NodeSettings nodeSettings)
 {
     this.chain              = chain;
     this.signals            = signals;
     this.blockRepository    = blockRepository;
     this.blockStoreCache    = blockStoreCache;
     this.blockPuller        = blockPuller;
     this.blockStoreLoop     = blockStoreLoop;
     this.blockStoreManager  = blockStoreManager;
     this.blockStoreSignaled = blockStoreSignaled;
     this.nodeLifetime       = nodeLifetime;
     this.connectionManager  = connectionManager;
     this.nodeSettings       = nodeSettings;
 }
Ejemplo n.º 4
0
 public BlockStoreManager(ConcurrentChain chain, ConnectionManager connection, BlockRepository blockRepository,
                          IDateTimeProvider dateTimeProvider, NodeSettings nodeArgs, BlockStore.ChainBehavior.ChainState chainState, BlockStoreLoop blockStoreLoop)
 {
     this.chain            = chain;
     this.connection       = connection;
     this.BlockRepository  = blockRepository;
     this.dateTimeProvider = dateTimeProvider;
     this.nodeArgs         = nodeArgs;
     this.ChainState       = chainState;
     this.BlockStoreLoop   = blockStoreLoop;
 }