Skip to content

Commit

Permalink
feat: add indexer config (#5210)
Browse files Browse the repository at this point in the history
Description
---
Add indexer config. The values are based on the default values in the indexer config.
  • Loading branch information
Cifko authored Feb 28, 2023
1 parent 1bc226c commit cf95601
Show file tree
Hide file tree
Showing 2 changed files with 54 additions and 9 deletions.
18 changes: 9 additions & 9 deletions common/config/presets/e_validator_node.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@
# automatically configured (default = )
#public_address =

# The Tari base node's GRPC address. (default = "/ip4/127.0.0.1/tcp/18142")
# The Tari base node's GRPC address. (default = "127.0.0.1/<port>" the <port> value is based on network)
#base_node_grpc_address = "127.0.0.1/tcp/18142"

# The Tari console wallet's GRPC address. (default = "/ip4/127.0.0.1/tcp/18143")
# The Tari console wallet's GRPC address. (default = "127.0.0.1/<port>" the <port> value is based on network)
#wallet_grpc_address = "127.0.0.1/tcp/18143"

# How often do we want to scan the base layer for changes. (default = 10)
Expand All @@ -32,14 +32,14 @@
# The relative path to store persistent data (default = "data/validator_node")
#data_dir = "data/validator_node"

# JSON-RPC listener address
# json_rpc_address = "127.0.0.1:18200"
# JSON-RPC listener address (default = "127.0.0.1:18200")
#json_rpc_address = "127.0.0.1:18200"

# HTTP UI listener address
# http_ui_address = "127.0.0.1:5000"
# HTTP UI listener address (default = "127.0.0.1:5000")
#http_ui_address = "127.0.0.1:5000"

# Set to true to enable auto registration for each epoch.
# auto_register = true
# Set to true to enable auto registration for each epoch (default = true)
#auto_register = true

[validator_node.p2p]
# transport = "tor"
#transport = "tor"
45 changes: 45 additions & 0 deletions common/config/presets/i_indexer.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@

########################################################################################################################
# #
# Indexer Configuration Options (IndexerConfig) #
# #
########################################################################################################################

[indexer]

# A path to the file that stores your node identity and secret key (default = "indexer_id.json")
#identity_file = "indexer_id.json"

# A path to the file that stores the tor hidden service private key, if using the tor transport
# (default = "indexer_tor_id.json")
#tor_identity_file = "indexer_tor_id.json"

# The node's publicly-accessible hostname. This is the host name that is advertised on the network so that
# peers can find you.
# _NOTE_: If using the `tor` transport type, public_address will be ignored and an onion address will be
# automatically configured (default = )
#public_address =

# The Tari base node's GRPC address. (default = "127.0.0.1/<port>" the <port> value is based on network)
#base_node_grpc_address = "127.0.0.1/tcp/18142"

# How often do we want to scan the base layer for changes. (default = 10)
#base_layer_scanning_interval = 10

# The relative path to store persistent data (default = "data/indexer")
#data_dir = "data/indexer"

# JSON-RPC listener address (default = "127.0.0.1:18300")
#json_rpc_address = "127.0.0.1:18300"

# HTTP UI listener address (default = "127.0.0.1:15000")
#http_ui_address = "127.0.0.1:15000"

# Substate addresses to keep watching
#address_watchlist=[]

# How often do we want to scan the dan layer for change. (default = 10)
#dan_layer_scanning_internal=10

[indexer.p2p]
#transport = "tor"

0 comments on commit cf95601

Please sign in to comment.