public void ReloadPersistentCoinView()
 {
     _PersistentCoinView.Dispose();
     _CleanList.Remove(_PersistentCoinView);
     _PersistentCoinView = new DBreezeCoinView(_Network, _TestDirectory.FolderName);
     _PersistentCoinView.Initialize().GetAwaiter().GetResult();
     _CleanList.Add(_PersistentCoinView);
 }
 public void ReloadPersistentCoinView()
 {
     _PersistentCoinView.Dispose();
     _CleanList.Remove(_PersistentCoinView);
     _PersistentCoinView = new DBreezeCoinView(_Network, name);
     _PersistentCoinView.Initialize();
     _CleanList.Add(_PersistentCoinView);
 }
 public NodeContext(string name, Network network, bool clean)
 {
     network             = network ?? Network.RegTest;
     _Network            = network;
     _TestDirectory      = TestDirectory.Create(name, clean);
     _PersistentCoinView = new DBreezeCoinView(network, _TestDirectory.FolderName);
     _PersistentCoinView.Initialize().GetAwaiter().GetResult();
     _CleanList.Add(_PersistentCoinView);
 }
        public NodeContext(string name, Network network)
        {
            network   = network ?? Network.TestNet;
            this.name = name;
            if (Clean)
            {
                CleanDirectory();
            }
            _Network = network;

            _PersistentCoinView = new DBreezeCoinView(network, name);
            _PersistentCoinView.Initialize();
            _CleanList.Add(_PersistentCoinView);
        }