Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

simplify flags for synchronization #808

Open
gzliudan opened this issue Jan 21, 2025 · 0 comments
Open

simplify flags for synchronization #808

gzliudan opened this issue Jan 21, 2025 · 0 comments

Comments

@gzliudan
Copy link
Collaborator

gzliudan commented Jan 21, 2025

If we run XDC without any parameter, then XDC should sync with mainnet automatically. So we should set the default value for all the flags which related to synchronization, such as:

  • port
  • networkid
  • etherbase
  • syncmode
  • gcmode
  • verbosity
  • datadir
  • XDCx.datadir
  • rpc
  • rpcaddr
  • rpcport
  • rpcapi
  • rpccorsdomain
  • rpcvhosts
  • ws
  • wsaddr
  • wsport
  • wsapi
  • wsorigins

Eg: now the chain id is set to 51 when the flag --apothem is specified. If neither --apothem nor --networkid is specified , then the chain id should be set to 50 for mainnet automatically.

@gzliudan gzliudan changed the title set chain id automatically set flags for sync automatically Jan 21, 2025
@gzliudan gzliudan changed the title set flags for sync automatically set default value for flags about sync automatically Jan 21, 2025
@gzliudan gzliudan changed the title set default value for flags about sync automatically simplify flags for synchronization Jan 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant