Skip to content

How to run a devnet? #18827

@human-77

Description

@human-77

I need to run a local devnet for development, but the documentation is unclear how to it.

Looking around, I managed to find this document, that seems to come from a thundercore, but was unable to reproduce the steps.

At the same time, I have seen some older issues comment that such options doesn't exist, while others have used the --chain=dev, which gives me the error bellow:

$ erigon --chain=dev --datadir=./dev --http.api eth,erigon,trace,ots --fakepow
INFO[01-27|11:11:10.840] logging to file system                   log dir=dev/logs file prefix=erigon log level=info json=false
INFO[01-27|11:11:10.842] kernel detected                          version=6.6.87.2-microsoft-standard-WSL2
...other lines...
NFO[01-27|11:11:10.843] Starting Erigon in ephemeral dev mode... 
INFO[01-27|11:11:10.847] Maximum peer count                       total=32
INFO[01-27|11:11:10.847] Development chain flags set              --nodiscover=true --v5disc=false --port=:0
INFO[01-27|11:11:10.848] starting HTTP APIs                       port=8545 APIs=eth,erigon,trace,ots http.compression=true

Fatal: chain name is not recognized: dev

Is there a devnet mode like geth's --dev? Is there a plan for such a mode? Is there a way to run a one node private chain?

Any help is welcome.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions