getumbrel / umbrel-bitcoin

The official Bitcoin Node app for Umbrel, powered by Bitcoin Core.
https://umbrel.com
Other
34 stars 18 forks source link

[Shower Thought] If NETWORK=regtest a cronjob should generate blocks #11

Open junderw opened 3 years ago

junderw commented 3 years ago

1 block per minute seems reasonable, since an empty block (most will be empty) is a couple hundred bytes anyways. The address to generate to should be an on-chain LND address so you can use those mined coins in LND. Also, to start off with, it should just generate like 1000 blocks to the LND address to start off with.

Maybe even add a UI button for regtest only that says (generate block) and will generate a block on demand.

nolim1t commented 3 years ago

maybe a script that someone can add to the cron if they wish