Which command do I use to create a subaccount?
Edit: Now I know how to create a subaccount from parent account, but how to use the sub account to produce blocks instead?
how to create subaccount?
wallet_account_register <sub.parent> <parent>
you have a account that name is p2, now you want to create p1 which is sub account of p2 account, you can do this:
wallet_account_register p1.p2 p2