Closed baichuan3 closed 7 months ago
The latest updates on your projects. Learn more about Vercel for Git ↗︎
I have also encountered problems related to env. There are some problems with the current experience. There have been discussions in diccord. I started a separate PR (https://github.com/rooch-network/rooch/issues/857) to handle it. The current PR only handles the local network and related modifications.
- Command
rooch server start -dev
will be init a store in:StoreConfig init store dir "ev/local/roochdb/rooch_store" "ev/local/roochdb/moveos_store"
This is a bug.
- Command
rooch server start -n dev
androoch server start -n test
shouldn't start with local RPC, as it would violate the rules MetaMask defines if user already added local RPC network on MetaMask:This URL is currently used by the Rooch Local Network network.
- When adding a new environment, verify the
rpc
,alias
andchain_id
don't collapse with existing ones.- Once a new env is added, the chain id is still shown as the last element and it's not updated. For example:
Chain ID 20230103 The RPC URL you have entered returned a different chain ID (20230102). Please update the Chain ID to match the RPC URL of the network you are trying to add.
Config:
envs: - chain_id: 20230104 alias: default rpc: http://0.0.0.0:50051 ws: null - chain_id: 20230103 alias: dev rpc: https://devnet-seed.rooch.network/ ws: null - chain_id: 20230102 alias: test rpc: https://testnet-seed.rooch.network/ ws: null - chain_id: 20230103 alias: devnet rpc: http://0.0.0.0:50051/ ws: null active_env: devnet
- After switching to
devnet
, commandrooch server start -n test
androoch server start -n dev
result in a panic error:thread 'main' panicked at 'Invalid sequencer order', crates/rooch- sequencer/src/actor/sequencer.rs:45:24
- After a new env is added, starting rooch server will not be added a custom chain id:
rooch server start -n devnet error: Invalid value "devnet" for '--chain-id
': Invalid Custom chain id devnet, custom chain id format is: chain_name:chain_id
rooch server start -dev
is not a bug. When the -d parameter is specified when starting the server, the data-dri specified by the -d parameter will be used as the storage path. When the -d parameter is -dev
, it indicates the ev/
path in the current directory. If you want to start the dev network, use the command line rooch server start -n dev
rooch server start -dev
is not a bug. When the -d parameter is specified when starting the server, the data-dri specified by the -d parameter will be used as the storage path. When the -d parameter is-dev
, it indicates theev/
Regarding this, the -d
flag should leave a whitespace to accept params for the --data-dir
such as -d dev
and I think mistyping could result in a different store dir. So this is like a bug.
rooch server start -dev
is not a bug. When the -d parameter is specified when starting the server, the data-dri specified by the -d parameter will be used as the storage path. When the -d parameter is-dev
, it indicates theev/
Regarding this, the
-d
flag should leave a whitespace to accept params for the--data-dir
such as-d dev
and I think mistyping could result in a different store dir. So this is like a bug.
This is the syntax of clap
, like rooch server start -ndev
is equals to rooch server start -n dev
, Unless we change the implementation of clap, I don't think it's necessary.
rooch server start -dev
is not a bug. When the -d parameter is specified when starting the server, the data-dri specified by the -d parameter will be used as the storage path. When the -d parameter is-dev
, it indicates theev/
Regarding this, the
-d
flag should leave a whitespace to accept params for the--data-dir
such as-d dev
and I think mistyping could result in a different store dir. So this is like a bug.This is the syntax of
clap
, likerooch server start -ndev
is equals torooch server start -n dev
, Unless we change the implementation of clap, I don't think it's necessary.
Is it possible to define an enum argument? That way, the input contents are limited.
rooch server start -dev
is not a bug. When the -d parameter is specified when starting the server, the data-dri specified by the -d parameter will be used as the storage path. When the -d parameter is-dev
, it indicates theev/
Regarding this, the
-d
flag should leave a whitespace to accept params for the--data-dir
such as-d dev
and I think mistyping could result in a different store dir. So this is like a bug.This is the syntax of
clap
, likerooch server start -ndev
is equals torooch server start -n dev
, Unless we change the implementation of clap, I don't think it's necessary.Is it possible to define an enum argument? That way, the input contents are limited.
Maybe it's an approach.
If we want to strongly verify -d
, disabling the short = 'd'
mode and forcing the use of long = "data-dir"
may be a solution, which will increase the user cost to a certain extent.
I merged this PR first.
Summary
20230104
Before to use new local network, suggest clean store dir and keystore file.
default use local network
use dev network
use local dev chainid env