From: Arik Sosman Date: Tue, 23 Aug 2022 03:21:11 +0000 (-0700) Subject: Change bitcoin REST endpoint default port to the standard mainnet default. X-Git-Url: http://git.bitcoin.ninja/?a=commitdiff_plain;h=dc1dac2d4cde194d0ec0ed04fedf9ea9d651f370;p=rapid-gossip-sync-server Change bitcoin REST endpoint default port to the standard mainnet default. --- 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());