예제 #1
0
        public static void Main(string[] args)
        {
            var nodeUrl        = GetNodeUrl();
            var minerPublicKey = GetMinerAddress();

            var logger = new Logger();
            var communicationService = new NodeCommunicator(nodeUrl);
            var rewardHandler        = new BlockHandler(communicationService, minerPublicKey);
            var manager = new Manager(logger, rewardHandler);

            Task.WaitAll(manager.Start());
        }
예제 #2
0
 public BlockHandler(NodeCommunicator communicationService, string minerPublicKey)
 {
     _communicationService = communicationService;
     _minerPublicKey       = minerPublicKey;
 }