Beispiel #1
0
        public IActionResult Index()
        {
            var           coinInfo = mainCoins.GetCoin();
            var           peerList = mainCoins.GetPeerList(coinInfo.CoinID);
            StringBuilder sb       = new StringBuilder();

            foreach (var peer in peerList)
            {
                sb.AppendLine("addnode=" + peer.Addr);
            }
            return(View(new ConnectionViewModel()
            {
                PeerInfo = peerList,
                MainCoinModel = coinInfo,
                AddNode = sb.ToString()
            }));
        }