Skip to content

Commit

Permalink
update guide, p2p port
Browse files Browse the repository at this point in the history
  • Loading branch information
smk762 committed Jun 15, 2024
1 parent a16c45e commit 27f8aa5
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 33 deletions.
21 changes: 12 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ Follow the instructions below to get started. If you have any questions, please
- Some basic linux experience, or a curious mind and the ability to follow instructions

Initial setup will take around 2 hours, though much of this will be waiting for downloads and installations. Once you have everything set up, you can expect to spend around 30 minutes per day maintaining your node.

You should also be prepared to spend some time troubleshooting if things don't go as planned, helping other participants, and monitoring the #2024-testnet discord channel for updates, events and advice.


Expand All @@ -29,18 +28,22 @@ There is also the chance to win some KMD! The top 3 participants will receive 10

## How to participate

### Step 1: Build the HF Net Komodo Daemon, and create a keypair
### Step 1: Build the HF Net Komodo Daemon, and request a keypair

- Refer to https://github.com/KomodoPlatform/komodo/blob/master/README.md for instructions on how to build the Komodo daemon from source. Make sure you are on the ` patch-s8-prepare-hf-test` branch.
- Once you have built the daemon, create a [new address](https://komodoplatform.com/en/docs/smart-chains/api/wallet/#getnewaddress), then [validate it](https://komodoplatform.com/en/docs/smart-chains/api/util/#validateaddress) to get the pubkey. This pubkey will be used to register your node on the network.
- You should also [export the private key](https://komodoplatform.com/en/docs/smart-chains/api/wallet/#dumpprivkey) for this address, as you will need to import it into the other coins which will be notarised. Make sure to store this private key securely. If you lose it, you will lose the funds it secures, and you will not be able to notarise or ["easy mine"](https://github.com/KomodoPlatform/dPoW/blob/master/doc/bible.md#nn-rights) KMD.
- Once you have built the daemon, contact @smk, @gcharang, or @decker in the #2024-testnet channel on Discord to request a keypair.
- [Import your assigned private key](https://komodoplatform.com/en/docs/smart-chains/api/wallet/#importprivkey) into the KMD daemon.
- Use the [validateaddress](https://komodoplatform.com/en/docs/smart-chains/api/util/#validateaddress) method to confirm the import was successful, and the address / pubkey match what was expected. This pubkey will be used to register your node on the network.

Sync'ing the KMD chain will take some time (over 24hrs), so you should start this process as soon as possible. Alternatively, you can use the [KMD testnet bootstrap](https://seed2.komodo.earth/boots/hfnet_blk_3940000.tar.gz) to speed up the process.

**Note: As this is a testnet version of komodod, you will need to modify the komodo.conf file to use the following addnode IP addresses.**
```
addnode=65.21.52.182
addnode=54.39.17.102
addnode=168.119.236.240
addnode=168.119.236.243
addnode=95.217.21.14
```
Remove any other pre-existing `addnode` entries from the `komodo.conf` file.

Expand All @@ -51,12 +54,12 @@ Remove any other pre-existing `addnode` entries from the `komodo.conf` file.
- For KMD, ask in the #2024-testnet channel on Discord. As we are running `komodod` on a testnet branch, mainnet KMD will not work.


### Step 3: Register your pubkey
### Step 3: Confirm your pubkey registration

- Once you have your pubkey, post it in the #2024-testnet channel on Discord. You will be added to the testnet network within 24 hours, and will be able to start notarising.
- Make sure you have have launched the daemons with the [`pubkey` runtime parameter](https://komodoplatform.com/en/docs/smart-chains/setup/common-runtime-parameters/#pubkey), with your registered pubkey. This is required for notarisation to work. You can also add this to your `komodo.conf` file if you prefer to make sure it is included at each launch. If the chain is already running you can also use the [setpubkey](https://komodoplatform.com/en/docs/smart-chains/api/wallet/#setpubkey) method to set the pubkey.
- Open a pull request to this branch, adding your pubkey to the [testnet.json](https://github.com/KomodoPlatform/dPoW/blob/2023-testnet/iguana/testnet.json) file. Please ensure you include your Discord username within the pull request. New pubkeys will be added to the testnet network every 24 hours, and the update announced in the #2024-testnet channel on Discord.
- Once your pubkey is merged into the testnet.json file, you can start notarising!
- Once you have your daemon running and pubkey set pubkey, post it in the #2024-testnet channel on Discord.
- Your assigned pubkey will be added to the [testnet.json](https://github.com/KomodoPlatform/dPoW/blob/2023-testnet/iguana/testnet.json) file, along with your discord username.
- Newly registered pubkeys will be added to the testnet network every 24 hours, and the update announced in the #2024-testnet channel on Discord. Once your pubkey is merged into the testnet.json file, you can start notarising!


### Step 4: Install dPoW
Expand Down Expand Up @@ -95,7 +98,7 @@ docker compose up -d # Launch the chains in the background
docker compose logs -f -n 33 # Check the logs to confirm the chains are operational
```

Once these chains are running, you will need to [import the private key](https://komodoplatform.com/en/docs/smart-chains/api/wallet/#importprivkey) you generated in step 1 into the wallets for these chains.
Once these chains are running, you will need to [import the private key](https://komodoplatform.com/en/docs/smart-chains/api/wallet/#importprivkey) you were assigned into the wallets for these chains.

```
doc-cli importprivkey YOUR_PRIVATE_KEY
Expand Down
4 changes: 2 additions & 2 deletions iguana/m_notary_testnet_2023 → iguana/m_notary_testnet_2024
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
# unlock any locked utxos. This will unlock utxos for both pubkeys, need a filter for address to only unlock the pubkey you need to restart.
komodo-cli lockunspent true `komodo-cli listlockunspent | jq -c .`

wget -qO testnet2023 https://raw.githubusercontent.com/KomodoPlatform/dPoW/2023-testnet/iguana/testnet.json
stdbuf -oL $1 ../agents/iguana testnet2023 & #> iguana.log 2> error.log &
wget -qO testnet2023 https://raw.githubusercontent.com/KomodoPlatform/dPoW/2024-testnet/iguana/testnet.json
stdbuf -oL $1 ../agents/iguana testnet2024 & #> iguana.log 2> error.log &

myip=`curl -s4 checkip.amazonaws.com`
source pubkey.txt
Expand Down
32 changes: 10 additions & 22 deletions iguana/testnet.json
Original file line number Diff line number Diff line change
@@ -1,32 +1,20 @@
{
"port": 17778,
"port": 17762,
"BTCminsigs": 13,
"minsigs": 6,
"minsigs": 3,
"seeds": [
"195.201.20.230",
"195.201.137.5",
"199.127.60.142",
"94.130.186.122",
"65.21.52.182",
"54.39.17.102",
"168.119.236.240",
"168.119.236.243",
"95.217.21.14",
"127.0.0.1",
"127.0.0.1",
"127.0.0.1",
"127.0.0.1"
],
"notaries": [
{"Alright0": "02f117d00a6d6307ef71d64ded816181af15f1cea1d2d1b29e5c3388d16b23547d"},
{"Alright1": "0236f46848daaeafb1e35628c44c3df7f49fa46f290de565d0993478e19e19085d"},
{"caglarkaya": "02971814644fddb8c0613570f225e4e503f5a1a6363fad9255ff3bb6d88e6eb05b"},
{"CHMEX": "037c0c427e7aeb700b128c27b9dd098b8efb0d9d96f60474678b8e78632b807a9c"},
{"gcharang": "03aabfdfbd09d997d8921e025a55de50a9dd681f04e67e0bb425091df4229c16eb"},
{"dragonhound": "033f36fe389350d3f7518bacdd522ce03a36a1bfcd365c7e314e9669e5f5b9c87b"},
{"strob": "03cd7d3f5d7bd1c2bde405aa2916c91c3320c854b1b558d5e43aeed1a7a526ec83"},
{"artistahmed": "02d89b0e4ae67be1ecef62a54881288ed4a635fd12e777ab34be03859249ccf9b3"},
{"endrilickollari": "039335159607429b1970a085bda3484765e6cd11b6bcce8000c6ddb3cf4a0c11e0"},
{"who-biz1": "037db090cbbe154b7e0a0742032208250537e42ad822968cd5419ce5913a4d8afb"},
{"who-biz2": "032f9cc71426429c9958bb0a54313f3d42a0fc2b63cfd30193cc819de70b2a66cb"},
{"emmanuel": "032833aadbf22a7ab67f6623a3a840a288d305e09915dc83c81fce6af0e31aa3b0"},
{"canialon": "029c384e32cc3b5fca94cc04b48f9c0eb7a8017006a27f0872c80961b130dc14dc"},
{"kivqa": "03d7ecf6dd68f9c7a78c1021a834a87edf5e3099773c2771ac8ebcf6a82c79b257"},
{"marmara": "03d08551ee93db3498bd3165a9f065c4f4fc64b0e2ead90fc5a75ace33b5b3102a"},
{"ozkanonur": "02be4ac61cf534b0fb98568ec539ee9e34c5104088f94f21cee2945d37d88373da"}
{"shantanu": "0206e7320ac54c8002741adbc66aecdcc7e2fd137c21812945ccb5124216f6ac52"},
{"dragonhound": "0312c4344473558412082808d1466faee5ca99d6dce86856ed37c1868753597bab"},
{"drew": "0202639fe114365427d37fab3e246789062caa7638bf7849ea4df25cd278892d69"}
]}

0 comments on commit 27f8aa5

Please sign in to comment.