public Tracker(IWalletManager walletManager, ConcurrentChain chain, Signals signals, BlockNotification blockNotification) { this.walletManager = walletManager as WalletManager; this.chain = chain; this.signals = signals; this.blockNotification = blockNotification; this.coinType = chain.GetCoinType(); }
public WalletManager(ConcurrentChain chain) { this.Wallets = new List <Wallet>(); // find wallets and load them in memory foreach (var path in this.GetWalletFilesPaths()) { this.Load(this.DeserializeWallet(path)); } this.coinType = chain.GetCoinType(); // load data in memory for faster lookups // TODO get the coin type from somewhere else this.PubKeys = this.LoadKeys(this.coinType); this.TrackedTransactions = this.LoadTransactions(this.coinType); this.TransactionFound += this.OnTransactionFound; }