From dc1dac2d4cde194d0ec0ed04fedf9ea9d651f370 Mon Sep 17 00:00:00 2001 From: Arik Sosman Date: Mon, 22 Aug 2022 20:21:11 -0700 Subject: [PATCH] Change bitcoin REST endpoint default port to the standard mainnet default. --- README.md | 2 +- src/config.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index b8cbfe7..d14ab2f 100644 --- a/README.md +++ b/README.md @@ -19,7 +19,7 @@ can be made by setting environment variables, whose usage is as follows: | RAPID_GOSSIP_SYNC_SERVER_DB_PASSWORD | _None_ | Password to access Postgres | | RAPID_GOSSIP_SYNC_SERVER_DB_NAME | ln_graph_sync | Name of the database to be used for gossip storage | | BITCOIN_REST_DOMAIN | 127.0.0.1 | Domain of the [bitcoind REST server](https://github.com/bitcoin/bitcoin/blob/master/doc/REST-interface.md) | -| BITCOIN_REST_PORT | 80 | HTTP port of the bitcoind REST server | +| BITCOIN_REST_PORT | 8332 | HTTP port of the bitcoind REST server | | BITCOIN_REST_PATH | /rest/ | Path infix to access the bitcoind REST endpoints | Notably, one property needs to be modified in code, namely the `ln_peers()` method. It specifies how diff --git a/src/config.rs b/src/config.rs index 9289945..afc9871 100644 --- a/src/config.rs +++ b/src/config.rs @@ -30,7 +30,7 @@ pub(crate) fn db_connection_config() -> Config { pub(crate) fn bitcoin_rest_endpoint() -> HttpEndpoint { let host = env::var("BITCOIN_REST_DOMAIN").unwrap_or("127.0.0.1".to_string()); let port = env::var("BITCOIN_REST_PORT") - .unwrap_or("80".to_string()) + .unwrap_or("8332".to_string()) .parse::() .expect("BITCOIN_REST_PORT env variable must be a u16."); let path = env::var("BITCOIN_REST_PATH").unwrap_or("/rest/".to_string()); -- 2.39.5