Skip to content

Instantly share code, notes, and snippets.

@ralphtheninja
Created March 3, 2021 22:34
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save ralphtheninja/ca5fb8e6149ce2ca2f59e7975609c7c7 to your computer and use it in GitHub Desktop.
Save ralphtheninja/ca5fb8e6149ce2ca2f59e7975609c7c7 to your computer and use it in GitHub Desktop.

1. build pktd (to get pktwallet and pktctl)

https://docs.pkt.cash/en/latest/pktd/#installation

2. run the wallet

Note, this will ask you questions the first time. Input wallet passphrase and write down mnemonic for wallet recovery.

./pktd/bin/pktwallet

3. create new wallet (to get an address to pass into the miner)

./pktd/bin/pktctl wallet --getnewaddress

Other useful wallet commands:

./pktd/bin/pktctl --wallet getbalance
./pktd/bin/pktctl --wallet getaddressbalances

Unlocking wallet (needed when sending and folding coins). The following command will unlock the wallet for 60 seconds

./pktd/bin/pktctl --wallet walletpassphrase YOURPASSWORD 60

Folding coins (minimizing outputs when there are many transactions):

./pktd/bin/pktctl --wallet sendfrom YOURADDRESS 0 '["YOURADDRESS"]'

4. build the miner (rust)

https://docs.pkt.cash/en/latest/mining/

NOTE Use the develop branch of the miner before doing cargo build --release. This is needed to be able to mine on multiple pools at the same time

5. run the miner

./packetcrypt_rs/target/release/packetcrypt ann -p YOURADDRESS pool1url pool2url ... poolnurl

6. different pools

See https://gist.github.com/ralphtheninja/49d3c6c4c08788f5c52bd98116f33f37

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment