Skip to content

Instantly share code, notes, and snippets.

@czarly
Created September 7, 2020 06:46
Show Gist options
  • Save czarly/bc189c54443a043a812b7e4e75932963 to your computer and use it in GitHub Desktop.
Save czarly/bc189c54443a043a812b7e4e75932963 to your computer and use it in GitHub Desktop.
# make yourself a nice new wallet
docker run -v /kulupu-data:/data -it kulupu/kulupu generate-mining-key
######## write down everything of the output in a secure place #########
# author in tbe next command should be the public key from the output before
docker run -v /root/kulupu-data:/data -d --name kulupu kulupu/kulupu --validator --author 0x12beb90eca63691d0e03e42a201b1d520885b344b3f284ebc32524e70a609a0a
# seed phrase in the next command shouldbe the seed phrase output from before
docker exec -it kulupu /usr/local/bin/kulupu import-mining-key "this is your seed phrase from above"
# this will make sure that shit runs as quiet as possible on your cpu
# will have to repeated on restart of the container
renice -n -20 -p $(pgrep kulupu)
@czarly
Copy link
Author

czarly commented Sep 7, 2020

The above will result in the execution in only 2 threads. If you have 48 cpu cores available you can add --threads 47 like so

docker run -v /root/kulupu-data:/data -d --name kulupu kulupu/kulupu --validator --author 0x12beb90eca63691d0e03e42a201b1d520885b344b3f284ebc32524e70a609a0a --threads 47

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