Beispiel #1
0
    public ResultWrapper <string> eth_protocolVersion()
    {
        int highestVersion = P2PProtocolInfoProvider.GetHighestVersionOfEthProtocol();

        return(ResultWrapper <string> .Success(highestVersion.ToHexString()));
    }
Beispiel #2
0
        public void GetHighestVersionOfEthProtocol_ReturnExpectedResult()
        {
            int result = P2PProtocolInfoProvider.GetHighestVersionOfEthProtocol();

            Assert.AreEqual(66, result);
        }