Beispiel #1
0
        internal WalletContainer(DBConnection conn, HDWallet wallet, ProcessBlocksInfo processBlocksInfo = null) : base(conn, processBlocksInfo, wallet)
        {
            this.LockUpdateWallet = new DBLock();
            this.ReaderCount      = 0;

            this.Conn = conn;
        }
        internal ProcessBlocksInfo(DBConnection conn, ProcessBlocksInfo processBlocksInfo, HDWallet wallet = null)
        {
            this.NewTip               = null;
            this.PrevTip              = null;
            this.MustCommit           = false;
            this.Conn                 = conn;
            this.Wallet               = wallet;
            this.LockProcessBlocks    = processBlocksInfo?.LockProcessBlocks ?? new DBLock();
            this.Outputs              = TempTable.Create <TempOutput>();
            this.PrevOuts             = TempTable.Create <TempPrevOut>();
            this.ParticipatingWallets = new List <string>();

            this.AddressesOfInterest    = processBlocksInfo?.AddressesOfInterest ?? new WalletAddressLookup(conn, wallet?.WalletId);
            this.TransactionsOfInterest = processBlocksInfo?.TransactionsOfInterest ?? new WalletTransactionLookup(conn, wallet?.WalletId);
        }