Ejemplo n.º 1
0
        public IActionResult GetMiningJob(string minerAddress)
        {
            if (string.IsNullOrWhiteSpace(minerAddress))
            {
                return(BadRequest(new Error("Invalid miner address.")));
            }

            Block     candidate = NodeService.CreateCandidateBlock(minerAddress);
            MiningJob job       = candidate.ToMiningJob();

            return(Ok(job));
        }