Exemplo n.º 1
0
 public static bool AddNode()
 {
     Console.WriteLine("Starting AddNode tests...");
     // Make sure this node is not already added
     //Bitcoind.AddNode ("67.212.92.167", "8333", Bitcoind.AddNodeAction.remove);
     Bitcoind.AddNode("67.212.92.167", "8333", Bitcoind.AddNodeAction.add);
     Bitcoind.AddNode("67.212.92.167", "8333", Bitcoind.AddNodeAction.remove);
     Bitcoind.AddNode("67.212.92.167", "8333", Bitcoind.AddNodeAction.onetry);
     return(true);
 }
Exemplo n.º 2
0
        public static bool GetAddedNodeInfo()
        {
            Console.WriteLine("Starting GetAddedNodeInfo tests...");

            Bitcoind.GetAddedNodeInfo(false);
            Bitcoind.GetAddedNodeInfo(true);

            Bitcoind.AddNode("212.8.63.158", "8546", Bitcoind.AddNodeAction.add);

            Bitcoind.GetAddedNodeInfo(false, "212.8.63.158:8546");
            Bitcoind.GetAddedNodeInfo(true, "212.8.63.158:8546");

            Bitcoind.AddNode("212.8.63.158", "8546", Bitcoind.AddNodeAction.remove);

            return(true);
        }