コード例 #1
0
        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);
        }
コード例 #2
0
ファイル: TestBase.cs プロジェクト: dukefox11/linq2db
 public static TempTable <T> CreateTempTable <T>(IDataContext db, string tableName, string context)
 {
     return(TempTable.Create <T>(db, GetTempTableName(tableName, context)));
 }