Exemplo n.º 1
0
 partial void Initialize(DrpPeerEngineConfiguration config)
 {
     if (config.SandboxModeOnly_DisablePoW == false)
     {
         _recentUniquePow1Data = new UniqueDataFilter16MbRAM(Timestamp32S, config.RegisterPow1_RecentUniqueDataResetPeriodS);
     }
     _pow2RequestsTable = new Pow2RequestsTable(config);
 }
Exemplo n.º 2
0
 readonly Snonce0Table _snonce0Table;                   // accessed by processor thread only
 #endregion
 public CcpServer(CcpServerConfiguration config)
 {
     _config = config;
     _recentUniquePowData        = new UniqueDataFilter16MbRAM(TimeSec32UTC, _config.StatelessPoW_RecentUniqueDataResetPeriodS);
     _snonce0Table               = new Snonce0Table(TimeSec32UTC, _config);
     _ccpTransport               = new CcpUdpTransport(this, _config.CcpUdpLocalServerPort);
     _packetProcessorThread      = new Thread(PacketProcessorThreadEntry);
     _packetProcessorThread.Name = "CCP server processor";
     _packetProcessorThread.Start();
 }