monero icon indicating copy to clipboard operation
monero copied to clipboard

Add `generate_blocks addr numblocks [starting_nonce]` command to monerod when in regtest mode

Open LeoNero opened this issue 2 years ago • 2 comments

When in --regtest, monerod provides a RPC call generateblocks that receives as parameters: amount_of_blocks, wallet_address, and starting_nonce. This is really useful when you don't want to keep mining all the time when testing and only mine blocks when you need/want to.

However, having to call it using curl/httpie in another terminal gets boring and annoying really fast, especially since, when testing, I do not want to run monerod in the background (i.e no --detach flag) . So I would suggest having a command generate_blocks on monerod that receives the same arguments (but makes starting_nonce optional for simplicity).

Such command would only be available if --regtest was passed when initializing monerod.

LeoNero avatar Jun 21 '22 18:06 LeoNero

I am down to implement this feature.

LeoNero avatar Jun 21 '22 18:06 LeoNero

Any updates?

meglio avatar Jan 17 '24 12:01 meglio