Skip to content
This repository has been archived by the owner on Jun 19, 2024. It is now read-only.

misc: specify in Settings.toml if http or https url for tendermint #27

Merged
merged 1 commit into from
Oct 17, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion config/Settings.example.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ serve_at = "0.0.0.0"
port = 30303

[indexer]
tendermint_addr = "127.0.0.1"
tendermint_addr = "http://127.0.0.1"
port = 26657

[jaeger]
Expand Down
2 changes: 1 addition & 1 deletion docs/03-indexer.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ dbname = "blockchain"

# The tendermint RPC address and port to access the Namada node
[indexer]
tendermint_addr = "127.0.0.1"
tendermint_addr = "http://127.0.0.1"
port = 26657
```

Expand Down
2 changes: 1 addition & 1 deletion src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ const ENV_VAR_NAME: &str = "INDEXER_CONFIG_PATH";
pub const SERVER_ADDR: &str = "127.0.0.1";
pub const SERVER_PORT: u16 = 30303;

pub const TENDERMINT_ADDR: &str = "127.0.0.1";
pub const TENDERMINT_ADDR: &str = "http://127.0.0.1";
pub const INDEXER_PORT: u16 = 27657;

pub const JAEGER_HOST: &str = "localhost";
Expand Down
2 changes: 1 addition & 1 deletion src/indexer/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ pub async fn start_indexing(db: Database, config: &IndexerConfig) -> Result<(),
********************/

// Connect to a RPC
let fmt_addr = format!("http://{}:{}", config.tendermint_addr, config.port);
let fmt_addr = format!("{}:{}", config.tendermint_addr, config.port);
info!("Connecting to {}", fmt_addr);
let client = HttpClient::new(fmt_addr.as_str())?;

Expand Down
Loading