If you often use regtest, you often need to manually mine blocks to test things.
If you're on linux, add this to ~/.bashrc:
```
mine() {
if [ "$#" -eq 0 ]; then
bitcoin-cli -regtest -generate 1
else
bitcoin-cli -regtest -generate "$1"
fi
}
alias mine=mine
```
Now you can write:
```
$ mine
```
to mine a block, or:
```
$ mine 100
```
to mine 100 blocks and make your Liana timelocks expire.
Another useful alias for .bashrc:
```
alias lastblock='bitcoin-cli -regtest getblock $(bitcoin-cli -regtest getbestblockhash) 2'
```
So you can just write 'lastblock' on the terminal to see all the transactions in the last block.
Please reply below with your best regtest aliases and scripts.
salvatoshi
npub157y6...60gr
#bitcoin
I'm excited to be coming to TabConf in Atlanta in October 23-26th.
My talk will revolve around the UX of hardware signers. It's a technical take on why we failed to build a good UX, and what we can do about it.
Also, please find me if you want to talk about MATT!
matt
MATT (Merkleize All The Things)
The revolution will be merkleized
I use Amethyst and Phoenix. Can I use it to receive zaps? If not... why not?
Nostr needs more #miniscript discussions.
Have you tried Liana?
==>
If you did but you still don't use it: why not?

Liana
Liana - Bitcoin infrastructure, on your own terms
Liana is a Bitcoin infrastructure built on a simple principle: your coins should always be yours. No custodian, built‑in recovery.
Is there any tool to automate posting on both Nostr and Twitter?
Suppose that you could program your hardware signing device to do anything (and that it was extremely easy).
What would you build?
How many people read me on Nostr? Should I post here more often?
#bitcoin
With my first answer on StackExchange, I try to explain the core concepts of MATT with as little technicalities as I could.
Not quite an explanation for your grandma yet, unless you have an exceptionally cool grandma.
https://bitcoin.stackexchange.com/questions/119239/what-are-matt-opcodes/119268#119268
Is there a curated list of non-twitter-clone applications that are being built on nostr?