add tx_index config

This commit is contained in:
Anton Kaliaev
2017-11-15 14:11:13 -06:00
parent acae38ab9e
commit cd4be1f308
2 changed files with 25 additions and 5 deletions

View File

@ -175,7 +175,7 @@ func NewNode(config *cfg.Config,
// Transaction indexing
var txIndexer txindex.TxIndexer
switch config.TxIndex {
switch config.TxIndex.Indexer {
case "kv":
store, err := dbProvider(&DBContext{"tx_index", config})
if err != nil {