function UpdateMoney(address addr) private
    {
        require(block.timestamp > miners[addr].lastUpdateTime);
        
        if(miners[addr].lastUpdateTime != 0)
        {
            MinerData storage m = miners[addr];
            uint256 diff = block.timestamp - m.lastUpdateTime;
            uint256 revenue = GetProductionPerSecond(addr);
       
            m.lastUpdateTime = block.timestamp;
            if(revenue > 0)
            {
                revenue *= diff;
                
                m.money += revenue;
            }
        }
    }