Add RPC command 'getstakedbyaddress' to find out how much an address has earned from staking.