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
This is an initial check-in that will
1) create the history database in couchDB if it does not exist.
2) add the history commit to the LEDGER Commit if history is enabled
3) stores the history in the history database
The History functionality is not enabled unless both
couchDB and History are enabled in the config.
Note that tests will be added to validate the writes
and the actual data written to the database in future
changes. The tests to validate history is not possible
until the query APIs are put in place in future changes.
Change-Id: Id207007ab5faae957c1e05234e441566a116ea33
Signed-off-by: Mari Wade <[email protected]>
panic(fmt.Errorf(`Error during commit to txmgr:%s`, err))
222
239
}
240
+
241
+
//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
242
+
logger.Debugf("===HISTORYDB=== Commit() will write to hisotry if enabled else will be by-passed if not enabled: vledgerconfig.IsHistoryDBEnabled(): %v\n", ledgerconfig.IsHistoryDBEnabled())
243
+
ifledgerconfig.IsHistoryDBEnabled() ==true {
244
+
logger.Debugf("Committing transactions to history database")
0 commit comments