예제 #1
0
        public void UpdateLists()
        {
            Blocks       = new List <Block>();
            Miners       = new List <Miner>();
            BlockRewards = new List <BlockReward>();
            Shares       = new List <Share>();
            MinerWorkers = new List <MinerWorker>();
            Information  = new PoolInformation();
            Bans         = new List <Ban>();

            //Start with blocks
            Deserialize(Blocks);
            Deserialize(Miners);
            Deserialize(BlockRewards);
            Deserialize(Shares);
            Deserialize(MinerWorkers);
            Deserialize(Information);
            Deserialize(Bans);
        }
예제 #2
0
 public void SaveChanges(PoolInformation poolInformation)
 {
     Serialize(poolInformation);
     Information = poolInformation;
 }