You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Ledger History queries and API implementation.
The initial implementation will be to get the
history of transactions for a given key.
Change-Id: Ic2eb4bb6d4a53a534f434c0e4d81fed8f919a7d0
Signed-off-by: Mari Wade <[email protected]>
panic(fmt.Errorf(`Error during commit to txmgr:%s`, err))
232
239
}
233
240
234
-
//TODO future will want to run async with state db writes. History needs to wait for chain (FSBlock) to write but not the state db
235
-
logger.Debugf("===HISTORYDB=== Commit() will write to hisotry if enabled else will be by-passed if not enabled: vledgerconfig.IsHistoryDBEnabled(): %v\n", ledgerconfig.IsHistoryDBEnabled())
241
+
//TODO There are still some decisions to be made regarding how consistent history
242
+
//needs to stay with the state. At min will want this to run async with state db writes.
243
+
//(History needs to wait for the block (FSBlock) to write but not the state db)
244
+
logger.Debugf("===HISTORYDB=== Commit() will write to history if enabled else will be by-passed if not enabled: vledgerconfig.IsHistoryDBEnabled(): %v\n", ledgerconfig.IsHistoryDBEnabled())
236
245
ifledgerconfig.IsHistoryDBEnabled() ==true {
237
246
logger.Debugf("Committing transactions to history database")
0 commit comments