Ejemplo n.º 1
0
        public void OpenWallet(string path, string password)
        {
            CurrentWallet?.Dispose(); //clean up the current one, if any

            var simpleWallet = new SimpleWallet(LocalNode);

            simpleWallet.Open(path, password);
            _logger.LogMessage("Index Height is :" + WalletIndexer.IndexHeight);
            Transaction   = new TransactionExecutionEngine(LocalNode);
            Contracts     = new ContractEngine(Transaction);
            CurrentWallet = simpleWallet;
        }