Rotate session keys
Synchronize Chain Data
Open terminal 1:
run our node with `--rpc--methods=unsafe` which allows us inserting our maintainer account into our node.
mkdir jaz-node-data
./jaz-node --base-path ./jaz-node-data --pruning=archive --rpc-methods=unsafe --unsafe-ws-external --unsafe-rpc-external
output:
2022-04-15 20:45:07 Jaz Node
2022-04-15 20:45:07 ✌️ version 0.1.0-9135ed4-x86_64-linux-gnu
2022-04-15 20:45:07 ❤️ by RadioCaca, 2021-2022
2022-04-15 20:45:07 📋 Chain specification: Development
2022-04-15 20:45:07 🏷 Node name: same-aftermath-3470
2022-04-15 20:45:07 👤 Role: AUTHORITY
2022-04-15 20:45:07 💾 Database: RocksDb at /tmp/substrate2QHzwb/chains/dev/db/full
2022-04-15 20:45:07 ⛓ Native runtime: jaz-chain-1 (jaz-chain-1.tx1.au1)
2022-04-15 20:45:07 🔨 Initializing Genesis block/state (state: 0xff78…f8c7, header-hash: 0x7ec7…69a8)
2022-04-15 20:45:07 👴 Loading GRANDPA authority set from genesis on what appears to be first startup.
2022-04-15 20:45:08 Using default protocol ID "sup" because none is configured in the chain specs
2022-04-15 20:45:08 🏷 Local node identity is: 12D3KooWNKL7iyPZreneGjFAM3rLNm5sfdNmTRi2oFGiSxHuLKGa
2022-04-15 20:45:08 📦 Highest known block at #0
2022-04-15 20:45:08 〽️ Prometheus exporter started at 127.0.0.1:9615
2022-04-15 20:45:08 Listening for new connections on 127.0.0.1:9944.
2022-04-15 20:45:09 🙌 Starting consensus session on top of parent 0x7ec74de850c10f7db19d55d91b3c78dc9ba493db171bbb254fc07b0b89a569a8 2022-04-15 20:45:09 🎁 Prepared block for proposing at 1 (3 ms) [hash: 0x9e383de01720f56bd0e6875c03321369c9c876ea82f5b7551287a7f76352db04; parent_hash: 0x7ec7…69a8; extrinsics (1): [0x0214…51b1]]
2022-04-15 20:45:09 🔖 Pre-sealed block for proposal at 1. Hash now 0xc0bc106aa813217106a67d35e17b7dbe683134c922e44670fd7ff31006f069c6, previously 0x9e383de01720f56bd0e6875c03321369c9c876ea82f5b7551287a7f76352db04.
please MAKE SURE your node is running with --rpc-methods=unsafe
flag, because the operation after will generate keys into your local storage offchain.
Open another terminal 2:
curl -X POST -H "Content-type: application/json" http://127.0.0.1:9933 -d '
{
"method": "author_rotateKeys",
"jsonrpc": "2.0",
"id": 1,
"params": []
}
'
result:
{
"jsonrpc":"2.0",
"result":"0xec505d1f3f08e3993b0c8b418b22cad7b022743f94b6163ee8ffa752ea80ce4858a80e87a868165a07c35ee61d8016cf46bb96b3f692094c40f16b9de62b92bf601a98b7120434f1116741a7d74b11e0e43c00d01b31be16c6adcc1b2fd4332204f786695f9ce3c107b3f7ff87591e81fde57848259c2e92922e5d55db946315",
"id":1
}
Please keep this result, it is required for the next step.
0xec505d1f3f08e3993b0c8b418b22cad7b022743f94b6163ee8ffa752ea80ce4858a80e87a868165a07c35ee61d8016cf46bb96b3f692094c40f16b9de62b92bf601a98b7120434f1116741a7d74b11e0e43c00d01b31be16c6adcc1b2fd4332204f786695f9ce3c107b3f7ff87591e81fde57848259c2e92922e5d55db946315
After completing this part, please close terminal 1 !
Execute the following command in terminal 2 :
nohup ./jaz-node --base-path ./jaz-node-data --validator > jaz.log 2>&1 &
and keep it online.
Print node logs
tail -f jaz.log
Last updated