]> git.bitcoin.ninja Git - rapid-gossip-sync-server/commitdiff
Change bitcoin REST endpoint default port to the standard mainnet default.
authorArik Sosman <git@arik.io>
Tue, 23 Aug 2022 03:21:11 +0000 (20:21 -0700)
committerArik Sosman <git@arik.io>
Tue, 23 Aug 2022 03:47:54 +0000 (20:47 -0700)
README.md
src/config.rs

index b8cbfe7deb48e1e7e5b162d8bbb25db501cab6be..d14ab2f09793edbb22466a593e65e760e4c4f117 100644 (file)
--- 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
index 9289945497255825f6673deb8e0745c19cb66779..afc9871b5e8b0bc9d5c04582f9fc4c041992a2d9 100644 (file)
@@ -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::<u16>()
                .expect("BITCOIN_REST_PORT env variable must be a u16.");
        let path = env::var("BITCOIN_REST_PATH").unwrap_or("/rest/".to_string());