Skip to content

Commit f2c94b2

Browse files
committed
demo/rollkit: fix the namespaces
Set the namespace used for the gm demo that is compatible with the current version. Specifically, the current version requires to be the version byte (0th index) be zero and the reserved bytes (1..5th indicies) be zero as well.
1 parent 70634b1 commit f2c94b2

File tree

2 files changed

+2
-14
lines changed

2 files changed

+2
-14
lines changed

demo/rollkit/init-local.sh

+2-10
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ TOKEN_AMOUNT="10000000000000000000000000stake"
1010
STAKING_AMOUNT="1000000000stake"
1111

1212
# create a random Namespace ID for your rollup to post blocks to
13-
NAMESPACE=01020304050607080910111213141516
13+
NAMESPACE=00000000000011111111111111111111
1414

1515
# query the DA Layer start height, in this case we are querying
1616
# our local devnet at port 26657, the RPC. The RPC endpoint is
@@ -77,13 +77,5 @@ gmd gentx $KEY_NAME $STAKING_AMOUNT --chain-id $CHAIN_ID --keyring-backend test
7777
# collect genesis transactions
7878
gmd collect-gentxs
7979

80-
# create a restart-local.sh file to restart the chain later
81-
[ -f restart-local.sh ] && rm restart-local.sh
82-
echo "DA_BLOCK_HEIGHT=$DA_BLOCK_HEIGHT" >> restart-local.sh
83-
echo "NAMESPACE=$NAMESPACE" >> restart-local.sh
84-
echo "AUTH_TOKEN=$AUTH_TOKEN" >> restart-local.sh
85-
86-
echo "gmd start --rollkit.aggregator true --rollkit.da_layer sugondat --rollkit.da_config='{\"base_url\":\"http://localhost:10995\",\"namespace\":\"$NAMESPACE\"}' --rollkit.namespace_id \$NAMESPACE --rollkit.da_start_height \$DA_BLOCK_HEIGHT --rpc.laddr tcp://127.0.0.1:36657 --p2p.laddr \"0.0.0.0:36656\"" >> restart-local.sh
87-
8880
# start the chain
89-
gmd start --rollkit.aggregator true --rollkit.da_layer sugondat --rollkit.da_config='{"base_url":"http://localhost:10995","namespace":"0102030405060708"}' --rollkit.namespace_id 0102030405060708 --rollkit.da_start_height 1 --rpc.laddr tcp://127.0.0.1:36657 --p2p.laddr "0.0.0.0:36656"
81+
gmd start --rollkit.aggregator true --rollkit.da_layer sugondat --rollkit.da_config='{"base_url":"http://localhost:10995","namespace":"00000000000011111111111111111111"}' --rollkit.namespace_id 00000000000011111111111111111111 --rollkit.da_start_height 1 --rpc.laddr tcp://127.0.0.1:36657 --p2p.laddr "0.0.0.0:36656"

demo/rollkit/restart-local.sh

-4
This file was deleted.

0 commit comments

Comments
 (0)