Exemplo n.º 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());
        }
Exemplo n.º 2
0
 public BlockHandler(NodeCommunicator communicationService, string minerPublicKey)
 {
     _communicationService = communicationService;
     _minerPublicKey       = minerPublicKey;
 }