Skip to content

Commit

Permalink
Rename ledger block storage directory
Browse files Browse the repository at this point in the history
Previously chain data was stored in "blocks" directory.
With the multi-channel design, there can be multiple
chain data stored, and therefore name of "chains"
makes more sense now.

This change was already made for block storage directory
in changeset: https://gerrit.hyperledger.org/r/#/c/6749/.

This changeset will catch up the root ledger directory
to match.

Change-Id: I553a2d474a8d0bf1d071ade0345f09f69ac60d2c
Signed-off-by: denyeart <enyeart@us.ibm.com>
  • Loading branch information
denyeart committed Mar 5, 2017
1 parent 509d8ed commit 1181f98
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions core/ledger/ledgerconfig/ledger_config.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ import (
"github.com/spf13/viper"
)

// TODO remove all these config variables, they are never used as defaults
var stateDatabase = "goleveldb"
var couchDBAddress = "127.0.0.1:5984"
var username = ""
Expand Down Expand Up @@ -68,9 +69,9 @@ func GetHistoryLevelDBPath() string {
return filepath.Join(GetRootPath(), "historyLeveldb")
}

// GetBlockStorePath returns the filesystem path that is used by the block store
// GetBlockStorePath returns the filesystem path that is used for the chain block stores
func GetBlockStorePath() string {
return filepath.Join(GetRootPath(), "blocks")
return filepath.Join(GetRootPath(), "chains")
}

// GetMaxBlockfileSize returns maximum size of the block file
Expand Down

0 comments on commit 1181f98

Please sign in to comment.