You need to recognize income at the 'time of receipt' - but this point isn't always clear with staking rewards as to whether you should recognize rewards when you've earned them or when you've withdrawn them. The conservative approach to this is to assume that as you have the ability to withdraw your staking rewards, rewards are income as soon as you receive them.