Merge PR #4748: Write-Through Inter-Block Cache

This commit is contained in:
Alexander Bezobchuk
2019-09-04 13:33:32 -04:00
committed by GitHub
parent d55a90e4d1
commit f010d2c6f1
31 changed files with 1054 additions and 741 deletions
+4
View File
@@ -95,6 +95,10 @@ func (ms multiStore) GetStoreType() sdk.StoreType {
panic("not implemented")
}
func (ms multiStore) SetInterBlockCache(_ sdk.MultiStorePersistentCache) {
panic("not implemented")
}
var _ sdk.KVStore = kvStore{}
type kvStore struct {
+9 -7
View File
@@ -20,13 +20,14 @@ import (
// Tendermint full-node start flags
const (
flagWithTendermint = "with-tendermint"
flagAddress = "address"
flagTraceStore = "trace-store"
flagPruning = "pruning"
flagCPUProfile = "cpu-profile"
FlagMinGasPrices = "minimum-gas-prices"
FlagHaltHeight = "halt-height"
flagWithTendermint = "with-tendermint"
flagAddress = "address"
flagTraceStore = "trace-store"
flagPruning = "pruning"
flagCPUProfile = "cpu-profile"
FlagMinGasPrices = "minimum-gas-prices"
FlagHaltHeight = "halt-height"
FlagInterBlockCache = "inter-block-cache"
)
// StartCmd runs the service passed in, either stand-alone or in-process with
@@ -58,6 +59,7 @@ func StartCmd(ctx *Context, appCreator AppCreator) *cobra.Command {
"Minimum gas prices to accept for transactions; Any fee in a tx must meet this minimum (e.g. 0.01photino;0.0001stake)",
)
cmd.Flags().Uint64(FlagHaltHeight, 0, "Height at which to gracefully halt the chain and shutdown the node")
cmd.Flags().Bool(FlagInterBlockCache, true, "Enable inter-block caching")
cmd.Flags().String(flagCPUProfile, "", "Enable CPU profiling and write to the provided file")
// add support for all Tendermint-specific command line options