Skip to content

Instantly share code, notes, and snippets.

@learner-long-life
Last active October 7, 2019 07:31
Show Gist options
  • Save learner-long-life/4713e36c5cbde9d25a423700b22c3aab to your computer and use it in GitHub Desktop.
Save learner-long-life/4713e36c5cbde9d25a423700b22c3aab to your computer and use it in GitHub Desktop.
Running your own Status Whisper Node
{
"HTTPEnabled": true,
"HTTPHost": "0.0.0.0",
"APIModules": "admin,debug,net,shh",
"WSEnable": true,
"WSHost": "0.0.0.0",
"RegisterTopics": ["whisper", "whispermail"],
"WhisperConfig": {
"Enabled": true,
"EnableNTPSync": true,
"EnableMailServer": true,
"MailServerPassword": "status-offline-inbox"
}
}

Run Your Own Status Whisper Node

Rather than start geth with all the necessary flags and have blockchain syncing going on, you may wish to just run whisper functionality for private messaging in a lightweight way. You should always run your own node using current Whisper v6 or below, as the node administrator is able to sniff your keypairs as they are requested.

To do that, you can use Status's excellent docker image, which sadly has had its documentation taken down from here: https://status.im/docs/run_status_node.html

No worries, you can follow this gist instead.

  1. Create the http-enabled.json below (future improvement: add HTTPS support with certbot)
  2. Run the docker invocation below
  3. Test it with a curl request
curl -X POST 'http://localhost:8545' -H 'Content-Type: application/json' --data '{"jsonrpc":"2.0","method":"shh_version","params":[],"id":1}'
```
#!/bin/sh
docker run --rm \
-p 8545:8545 -p 30303:30303 -p 8546:8546 -p 8080:8080 \
-v /home/ubuntu/http-enabled.json:/config/config.json \
statusteam/status-go:latest \
-register \
-log DEBUG \
-c /config/config.json
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment