fix count of miner shares
Merge branch 'miner' into miner+more-period