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()); }
public BlockHandler(NodeCommunicator communicationService, string minerPublicKey) { _communicationService = communicationService; _minerPublicKey = minerPublicKey; }