Beispiel #1
0
 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();
 }
Beispiel #2
0
        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;
        }