This patch add RpcCall getstakereport, it show the stake's earning by period: 24h, 7, 30, 365 days, and last 30 day. Ugly but working