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

How to use -dev with a genesis file OR how to mine without -dev ? #1348

Open
kopax opened this issue Oct 9, 2024 · 1 comment
Open

How to use -dev with a genesis file OR how to mine without -dev ? #1348

kopax opened this issue Oct 9, 2024 · 1 comment

Comments

@kopax
Copy link

kopax commented Oct 9, 2024

Hi guys, I am just starting with bor and I would like to run a local dev server.

I am struggling to init the genesis block with -dev flag at the same time.

Without it, I am able to seed with a genesis file without issue, but then I cannot block.

I have been looking everywhere for some getting started developer documentation for contributors but I cannot find it.

Can you guys help me out understand how to get started ?

Thanks and best 🙏

@manav2401
Copy link
Contributor

Hey, ideally you should be able to run bor using --dev flag. Just note that it runs on clique consensus and not bor as in order to run inside bor consensus you'll need to setup some other components like heimdall for it to work.

Can you try this?

git checkout develop
make bor
bor server --datadir ~/.bor/data --dev --dev.period 2

Let me know if you run into any issues. Thanks!

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

3 participants
@kopax @manav2401 and others