fix peerstat calculation for coin supply and transactions