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); }
public static TempTable <T> CreateTempTable <T>(IDataContext db, string tableName, string context) { return(TempTable.Create <T>(db, GetTempTableName(tableName, context))); }