Skip to content

Commit 1181f98

Browse files
committed
Rename ledger block storage directory
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 <[email protected]>
1 parent 509d8ed commit 1181f98

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

core/ledger/ledgerconfig/ledger_config.go

+3-2
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ import (
2222
"github.com/spf13/viper"
2323
)
2424

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

71-
// GetBlockStorePath returns the filesystem path that is used by the block store
72+
// GetBlockStorePath returns the filesystem path that is used for the chain block stores
7273
func GetBlockStorePath() string {
73-
return filepath.Join(GetRootPath(), "blocks")
74+
return filepath.Join(GetRootPath(), "chains")
7475
}
7576

7677
// GetMaxBlockfileSize returns maximum size of the block file

0 commit comments

Comments
 (0)