Exemple #1
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();
 }
Exemple #2
0
 public Snonce0Table(uint timeSec32UTC, CcpServerConfiguration config)
 {
     _config = config;
     _nextPeriodSwitchTimeSec32UTC = timeSec32UTC + config.Snonce0TablePeriodSec;
 }