generate/generatetoaddress what are this two rpc methods used for?
but how? bitcoin is hard to mine, how can this method mine nblocks immediately?


generate is only used on the regtest network, where blocks can be mined instantly.