Skip to content

Commit

Permalink
update readme and setup script
Browse files Browse the repository at this point in the history
  • Loading branch information
smk762 committed Jun 19, 2024
1 parent c910d36 commit 0d3f8c8
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 9 deletions.
18 changes: 10 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,11 @@ sudo apt update
sudo apt-get install build-essential pkg-config libc6-dev m4 g++-multilib autoconf libtool ncurses-dev unzip git python3 python3-zmq zlib1g-dev wget libcurl4-gnutls-dev bsdmainutils automake curl libsodium-dev
# Clone the testnet branch of the `komodo` repository
cd ~
git clone https://github.com/KomodoPlatform/komodo --branch patch-s8-prepare-hf-test --single-branch
# Build komodod
cd komodo
cd ~/komodo
./zcutil/fetch-params.sh
./zcutil/build.sh -j$(expr $(nproc) - 1)
Expand All @@ -62,8 +63,7 @@ server=1
daemon=1
txindex=1
port=7770
rpcallowip=0.0.0.0/0
rpcbind=0.0.0.0:7771
rpcbind=127.0.0.1
rpcuser=ENTER_YOUR_OWN_RPC_USERNAME_HERE
rpcpassword=ENTER_YOUR_OWN_RPC_PASSWORD_HERE
rpcport=7771
Expand All @@ -83,11 +83,10 @@ cd ~/komodo/src

### Step 2: Install dPoW

- Make sure your chains are fully synced before you start notarising. You can check the status of your chains by using the [getinfo](https://komodoplatform.com/en/docs/smart-chains/api/control/#getinfo) method in the wallet API.
- Clone dPoW and checkout the `2024-testnet` branch
```
git clone https://github.com/KomodoPlatform/dPoW/
git checkout 2024-testnet
cd ~
git clone https://github.com/KomodoPlatform/dPoW/ --branch 2024-testnet --single-branch
```
- Create a `pubkey.txt` file in the `~/dPoW/iguana` directory, with your pubkey in the format `pubkey=<your pubkey>`
- Create a `wp_testnet` file in the `~/dPoW/iguana` directory, with the following content:
Expand Down Expand Up @@ -142,8 +141,8 @@ cd ~/dPoW/iguana
make
```

Make sure KMD, DOC and MARTY daemons are running and sync'd , then start testnet notarizations with `./m_notary_testnet_2024`
You will need to make sure you have split utxos in each chain to be able to notarize. Check below under the `Create a splitfunds script` section for a script to help you manage your utxos.
Make sure your chains are fully synced before you start notarising. You can check the status of your chains by using the [getinfo](https://komodoplatform.com/en/docs/smart-chains/api/control/#getinfo) method in the wallet API.
Once everything is ready, start testnet notarizations with `./m_notary_testnet_2024`

For Komodo, as we are using a newer build of the daemon you can also try out a the [new rpc methods](https://github.com/DeckerSU/notaries-rpc-tools) for notary nodes!

Expand Down Expand Up @@ -175,9 +174,12 @@ For Komodo, as we are using a newer build of the daemon you can also try out a t
"real_tx_size": 651
}
```
You will need to make sure you have split utxos in each chain to be able to notarize. Check below under the `Bonus tips` section for a script to help you manage your utxos.

_Note: As we are running a testnet, you wont see the returned txid on the mainnet KMD block explorer. Keep an eye out in the #2024-testnet channel for a link to the testnet block explorer once it is up and running_.



### Step 6: Confirm your pubkey registration

- 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.
Expand Down
2 changes: 1 addition & 1 deletion docker/setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ mkdir -p /home/${USER}/.zcash-params

echo "Setting up .env file..."
USER_ID=$(id -u)
GROUP_ID=$(id -g)
GROUP_ID=$(id -u)
echo "PUBKEY=${pubkey}" > .env
echo "USER_ID=${USER_ID}" >> .env
echo "GROUP_ID=${GROUP_ID}" >> .env
Expand Down

0 comments on commit 0d3f8c8

Please sign in to comment.