From 38b1ace4a43bae3b766023b01afca90a804be926 Mon Sep 17 00:00:00 2001 From: woodser Date: Sun, 11 Aug 2024 19:27:31 -0400 Subject: [PATCH] document changing p2p network code for new networks --- docs/create-mainnet.md | 6 ++++++ docs/deployment-guide.md | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/docs/create-mainnet.md b/docs/create-mainnet.md index 32606a0e..38c211d4 100644 --- a/docs/create-mainnet.md +++ b/docs/create-mainnet.md @@ -57,6 +57,12 @@ For example, change "Haveno" to "HavenoX", which will use this application folde - macOS: ~/Library/Application Support/HavenoX/ - Windows: ~\AppData\Roaming\HavenoX\ +## Change the P2P network version + +To avoid interference with other networks, change `P2P_NETWORK_VERSION` in [Version.java](https://github.com/haveno-dex/haveno/blob/a7e90395d24ec3d33262dd5d09c5faec61651a51/common/src/main/java/haveno/common/app/Version.java#L83). + +For example, change it to `"B"`. + ## Start the seed nodes Rebuild for the previous changes to the source code to take effect: `make skip-tests`. diff --git a/docs/deployment-guide.md b/docs/deployment-guide.md index ce538319..2f7590d0 100644 --- a/docs/deployment-guide.md +++ b/docs/deployment-guide.md @@ -219,6 +219,12 @@ For example, change "Haveno" to "HavenoX", which will use this application folde - macOS: ~/Library/Application Support/HavenoX/ - Windows: ~\AppData\Roaming\HavenoX\ +## Change the P2P network version + +To avoid interference with other networks, change `P2P_NETWORK_VERSION` in [Version.java](https://github.com/haveno-dex/haveno/blob/a7e90395d24ec3d33262dd5d09c5faec61651a51/common/src/main/java/haveno/common/app/Version.java#L83). + +For example, change it to `"B"`. + ## Set the network's release date Optionally set the network's approximate release date by setting `RELEASE_DATE` in HavenoUtils.java.