Confirm transaction in regtest mode
A transaction is confirmed by including it in a block. This means that you have to mine a block which includes the transaction. You can do this using the generate command.