コード例 #1
0
        public async Task <IActionResult> Heartbeat([FromBody] NodeHeartbeatInput heartbeat)
        {
            IActionResult result = BadRequest();

            if (ModelState.IsValid)
            {
                await _nodeService.Heartbeat(heartbeat);

                var output = await _blockService.Pop(heartbeat);

                result = new JsonResult(output);
            }

            return(result);
        }