Пример #1
0
        public ObjectResult MineBlock([FromBody] MineBlockRequest data)
        {
            var block = _blockChain.GenerateNewBlock(data.Data);

            if (block != null)
            {
                _p2PService.NotififyAboutMinedBlock(block);
            }
            return(Ok(block));
        }