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.
When in
--regtest
,monerod
provides a RPC callgenerateblocks
that receives as parameters:amount_of_blocks
,wallet_address
, andstarting_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 runmonerod
in the background (i.e no--detach
flag) . So I would suggest having a commandgenerate_blocks
onmonerod
that receives the same arguments (but makesstarting_nonce
optional for simplicity).Such command would only be available if
--regtest
was passed when initializingmonerod
.