Skip to content

Can we separate difficulty and block interval? #5

@DoHaiSon

Description

@DoHaiSon

Hi, glad to see ur repo.
Now I'm building a smart grid in theory and I saw ur project can help me benchmark our parameters before deploy.

But after few time, I saw something should be separated that is difficulty and blocktime interval.
As I understood, in yellow paper and Geth source, Difficulty is flexible param which changed block by block to ensure block interval inside 10-15s. This time helps 95% of nodes reach a new mined block.

But in ur code, I saw blocktime and difficulty is merged to Binterval. That oke in simulation but I wanna "fixed" Difficulty of a private network so I need a individual value.

Now I could change Binterval and found out good value for ur setup but rather hard to make a decision that good or not because a lot of propability change anytime I restart BlockSim.

Thx, for reading!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions