Skip to content

Commit 4acfd99

Browse files
authored
docs: fix default indexer in config.toml (#1723)
Port of #1721 that targets v0.38.x-celestia
1 parent 092d3ad commit 4acfd99

File tree

2 files changed

+6
-14
lines changed

2 files changed

+6
-14
lines changed

config/config.go

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1245,13 +1245,7 @@ func TestStorageConfig() *StorageConfig {
12451245
// TxIndexConfig defines the configuration for the transaction indexer,
12461246
// including composite keys to index.
12471247
type TxIndexConfig struct {
1248-
// What indexer to use for transactions
1249-
//
1250-
// Options:
1251-
// 1) "null"
1252-
// 2) "kv" (default) - the simplest possible indexer,
1253-
// backed by key-value storage (defaults to levelDB; see DBBackend).
1254-
// 3) "psql" - the indexer services backed by PostgreSQL.
1248+
// Indexer is the indexer to use for transactions
12551249
Indexer string `mapstructure:"indexer"`
12561250

12571251
// The PostgreSQL connection configuration, the connection format:

config/toml.go

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -358,8 +358,8 @@ type = "priority"
358358
recheck = {{ .Mempool.Recheck }}
359359
360360
# recheck_timeout is the time the application has during the rechecking process
361-
# to return CheckTx responses, once all requests have been sent. Responses that
362-
# arrive after the timeout expires are discarded. It only applies to
361+
# to return CheckTx responses, once all requests have been sent. Responses that
362+
# arrive after the timeout expires are discarded. It only applies to
363363
# non-local ABCI clients and when recheck is enabled.
364364
#
365365
# The ideal value will strongly depend on the application. It could roughly be estimated as the
@@ -560,11 +560,9 @@ discard_abci_responses = {{ .Storage.DiscardABCIResponses}}
560560
# to decide which txs to index based on configuration set in the application.
561561
#
562562
# Options:
563-
# 1) "null"
564-
# 2) "kv" (default) - the simplest possible indexer, backed by key-value storage (defaults to levelDB; see DBBackend).
565-
# - When "kv" is chosen "tx.height" and "tx.hash" will always be indexed.
566-
# 3) "psql" - the indexer services backed by PostgreSQL.
567-
# When "kv" or "psql" is chosen "tx.height" and "tx.hash" will always be indexed.
563+
# 1) "null" (default) - index transaction status only
564+
# 2) "kv" - index transactions using key-value storage based on DBBackend. "tx.height" and "tx.hash" will always be indexed.
565+
# 3) "psql" - index transactions using PostgreSQL. "tx.height" and "tx.hash" will always be indexed.
568566
indexer = "{{ .TxIndex.Indexer }}"
569567
570568
# The PostgreSQL connection configuration, the connection format:

0 commit comments

Comments
 (0)