On localhost initiliaze the node with
ENTITY_DIR=/localhostdir/entity
ENTITY_ID=`cat $ENTITY_DIR/entity.json | jq -r .id`
mkdir -p /localhostdir/node-consensusrpc
cd /localhostdir/node-consensusrpc
oasis-node registry node init \
--node.entity_id $ENTITY_ID
Add the new node to the entity. Your entity might contain
a lot more nodes. Include each of them with --entity.node.descriptor
.
ENTITY_DIR=/localhostdir/entity
oasis-node registry entity update \
--signer.backend file \
--signer.dir $ENTITY_DIR \
--entity.node.descriptor /localhostdir/node-validator/node_genesis.json \
--entity.node.descriptor /localhostdir/node-consensusrpc/node_genesis.json
Copy the nodes *.pem
files to the server using scp
, rsync
, etc.
On localhost issue an entity register transaction
GENESIS_FILE_PATH=/localhostdir/genesis.json
ENTITY_DIR=/localhostdir/entity
OUTPUT_REGISTER_TX_FILE_PATH=/localhostdir/gen-register.tx
oasis-node registry entity gen_register
--genesis.file $GENESIS_FILE_PATH \
--signer.backend file \
--signer.dir $ENTITY_DIR \
--transaction.file $OUTPUT_REGISTER_TX_FILE_PATH \
--transaction.fee.gas 5600 \
--transaction.fee.amount 1000 \
--transaction.nonce 8 # change with your corespoding nonce from the wallet
Copy the transaction to an Oasis running node and submit it to the network
oasis-node consensus submit_tx \
--transaction.file /node/gen-register.tx -a unix:/mnt/node/data/internal.sock
Afterwards the consensusrpc
node should register to the network.
From the node that can be checked with.
oasis-node control status -a unix:/node/data/internal.sock | grep last_registration
Check if the new node is present in the registry
oasis-node registry node list -v -a unix:/node/data/internal.sock | grep <NODE IP ADDRESS>