Exemplo n.º 1
0
 public void Connect()
 {
     if (LndClient.Config.Host == "localhost")
     {
         _excelAddIn.NodesSheet.StartLocalNode(LndClient.Config);
     }
     LndClient.TryUnlockWallet(LndClient.Config.WalletPassword);
     Refresh(SheetNames.Payments);
     Refresh(SheetNames.Channels);
     //  Refresh(SheetNames.Transactions);
     Refresh(SheetNames.Balances);
     Refresh(SheetNames.Peers);
     Refresh(SheetNames.Connect);
 }
Exemplo n.º 2
0
        public void Connect()
        {
            if (LndClient.Config.Host == "localhost")
            {
                _excelAddIn.NodesSheet.StartLocalNode(LndClient.Config);
            }
            var mnemonic = LndClient.TryUnlockWallet(LndClient.Config.WalletPassword);

            if (mnemonic.Count > 0)
            {
                _excelAddIn.MnemonicSheet.Populate(mnemonic);
                return;
            }
            Refresh(SheetNames.Payments);
            Refresh(SheetNames.Channels);
            //  Refresh(SheetNames.Transactions);
            Refresh(SheetNames.Balances);
            Refresh(SheetNames.Peers);
            Refresh(SheetNames.Connect);
        }