Skip to content
This repository has been archived by the owner on Feb 26, 2024. It is now read-only.

Mine n blocks, skip blocks #102

Closed
wants to merge 2 commits into from
Closed

Mine n blocks, skip blocks #102

wants to merge 2 commits into from

Conversation

lazovicff
Copy link

@lazovicff lazovicff commented Apr 17, 2018

I made two methods:

  • evm_mineBlocks: - Mines multiple blocks. Accepts one arguments: number of blocks to mine.

  • evm_skipBlocks: Will create one block with fake block number. Takes one argument: number of blocks you want to add on top of current block height. Useful when testing big block-number based constraints (eg. it would take ~1h to mine 500k blocks). It is not guaranteed that everything will this function, so you should save a snapshot of the blockchain before calling this function, then revert afterwards. Should be mainly used for checking block-number based constraints.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant