Esempio n. 1
0
        public void updateRelayer()
        {
            var lib           = new RecentCore(NodeUrl);
            var relayerWallet = lib.importWalletFromPK("E5ADE4B50BA041A9C77DBA91401BEA949393F2C24433B0338702E7AE06443089");
            var currentEpoch  = lib.getCurrentRelayersEpoch().Result;
            var relayer       = lib.getRelayer(currentEpoch, relayerWallet.address).Result;
            var tx            = lib.updateRelayer(currentEpoch, "http://192.168.1.15", relayer.name, relayer.fee, relayer.offchainTxDelay, false, false, null).Result;

            relayer = lib.getRelayer(currentEpoch, relayerWallet.address).Result;
            Assert.AreEqual(relayer.domain, "http://192.168.1.15");
        }