This repository has been archived by the owner on Nov 6, 2020. It is now read-only.
Mine one block, force a fork #9434
Labels
F8-enhancement 🎊
An additional feature request.
M4-core ⛓
Core client code / Rust.
Q5-substantial 📓
Can be fixed by a developer with decent experience.
Milestone
I'd like to write a testing framework for stuff that integrates (runs on top of) ethereum node. To ensure correct handling of of corner cases I'd like to simulate things like eg. reorgs.
I was googling for regtest for ethereum and I've found things like: https://wiki.parity.io/Private-development-chain . It seems it covers what I need from a node itself, but I need to tightly control mining.
I need to be able to:
Describe the solution you'd like
I would like two command line arguments / rpcs:
stop-after-one-block
force-height=12345
that would accomplish the above.
Describe alternatives you've considered
I haven't considered much and I have no idea about ETH mining. I'm open for suggestions.
I tried to ask the same question in ethminer github, but they've told me that I should probably use cpuminer provided by the network client itself. ethereum-mining/ethminer#1522
The text was updated successfully, but these errors were encountered: