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 · 5 comments
Open

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

kopax opened this issue Oct 9, 2024 · 5 comments

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!

@Raneet10
Copy link
Member

Hey @kopax were you able to run with the instructions provided ?

@kopax
Copy link
Author

kopax commented Oct 26, 2024

No I dot get how to mine without ĥeimdall and --dev. What toml you use with that commands?

@kopax
Copy link
Author

kopax commented Oct 26, 2024

to fix your trouble check this solution click maybe this will solve your problem.

This guy seems to unanonymously want to hack me 😅

@manav2401
Copy link
Contributor

@kopax, there isn't any extra configs. I am just running the command I mentioned above (the bor server one).

Is you ask about starting a dev node with local heimdall? If yes, you'll require quite a few extra steps.

Please checkout our testing tool (matic-cli), specifically this section in order to spin a local node.

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

4 participants
@kopax @Raneet10 @manav2401 and others