RSK
EVM sidechain for Bitcoin
RSK is configured by default to accept only localhost / 127.0.0.1 as the hostname
So when StackOS provides a custom hostname, or you configure your own DNS, RSK will refuse to serve any jsonrpc responses
Solution
Build the basic RSK mainnet image on your local machine
You will end up with a mainnet image
Prepare node.conf
Take the default node.conf and change the hosts the image will recognize
Make a Dockerfile
Build & push your image
Configure your pod
Download your own image that you just uploaded
If you want to use custom DNS, set that up ahead of time
Test your connection
Run curl against your host
Expect a response like
Debug your pod
Edit /etc/rsk/logback.xml and increase verbosity for jsonrpc
Wait 1 hour for rsk to read your new log config (or rebuild your docker image and force the change)
Watch for error messages
Persistent Storage
If you wish to use persistent storage with rsk, be aware you must update the permissions of the storage directory
Here is an example configuraton
After your pod boots, locate your pod name and shell into your pod:
Then run the following command
Then your process will run normally.
Last updated