7GNGSSmyvNLjVx5i61dsGiGwVMsRSZ8rMUdVYEtidNCf
5io45DBxpbffkpjZkNzRVfTbHRFF9tbCXPkqXH1he1GH
Program ComputeBudget111111111111111111111111111111 invoke [1] Program ComputeBudget111111111111111111111111111111 success Program ComputeBudget111111111111111111111111111111 invoke [1] Program ComputeBudget111111111111111111111111111111 success Program JDYTBscYeBnDNEtx61pF8xigwM9kxLRjptqkwqr2so95 invoke [1] Program log: Instruction: EliminateNfts Program log: 🎮 Eliminating NFTs from game with SECURE block hash randomness Program log: 🚨 ELIMINATE_NFTS START Program log: Batch Size: 1, Shard Active: 20 Program log: 🎲 Getting random bytes... Program log: 🔒 Using MANDATORY Solana block hash randomness (ULTRA SECURE)... Program log: 🔒 Getting REAL block hash randomness... Program log: ✅ Found block hash for slot 391941685: [0, 31, 250, 242, 142, 227, 244, 81] Program log: 🔒 Got REAL block hash randomness: [0, 31, 250, 242, 142, 227, 244, 81] Program log: Random bytes: [0, 31, 250, 242, 142, 227, 244, 81] Program log: 🔄 Before weight calculation - synchronizing all shard active counts Program log: 📊 Synchronized shard 1 active count: 20 Program log: 🔍 DEBUG: ShardManager state before weight calculation: Program log:   Manager Shard 0: 15 active NFTs Program log:   Manager Shard 1: 20 active NFTs Program log:   Manager Shard 2: 10 active NFTs Program log:   Manager Shard 3: 6 active NFTs Program log:   Manager Shard 4: 0 active NFTs Program log: Shard 0 weight updated to 2941 (15/51 NFTs = 29.41%) Program log: Shard 1 weight updated to 3921 (20/51 NFTs = 39.21%) Program log: Shard 2 weight updated to 1960 (10/51 NFTs = 19.60%) Program log: Shard 3 weight updated to 1176 (6/51 NFTs = 11.76%) Program log: Shard 4 weight updated to 0 (0/51 NFTs = 0.00%) Program log: 🔍 DEBUG: ShardManager weights after calculation: Program log:   Manager Shard 0: weight 2941 Program log:   Manager Shard 1: weight 3921 Program log:   Manager Shard 2: weight 1960 Program log:   Manager Shard 3: weight 1176 Program log:   Manager Shard 4: weight 0 Program log: ✅ Updated shard 1 weight to 3921 for this elimination Program log: 🎲 DEBUG: select_random_shard called with 32 bytes Program log: 🎲 DEBUG: Mixed random: 13040663676191958014 -> point: 8014 (PRECISION: 10000) Program log: 🎲 DEBUG: Shard weights for selection: Program log:   Shard 0: weight 2941 Program log:   Shard 1: weight 3921 Program log:   Shard 2: weight 1960 Program log:   Shard 3: weight 1176 Program log:   Shard 4: weight 0 Program log: 🎲 DEBUG: Shard 0 - point 8014 < cumulative 2941 ? Program log: 🎲 DEBUG: Shard 1 - point 8014 < cumulative 6862 ? Program log: 🎲 DEBUG: Shard 2 - point 8014 < cumulative 8822 ? Program log: 🎲 Selected shard 2 (weight: 1960, point: 8014, cumulative: 8822) Program log: 🧪 TEST MODE: Weight-based selection chose shard 2 (randomness from slot) Program log: 🧪 TEST MODE: Contract calculated shard 2 but processing shard 1 (client-controlled) Program log: Total active: 51, Winner count: 80 Program log: 🏆 FINAL PHASE: Approaching winner selection! Slowing to 1 elimination per batch. Program log: 🎲 Getting random active bit from 0 to 240 Program log:    Selected byte 20: 00000011, bit 0 -> position 160 Program log: ✅ NFT ID: 401 = (shard 1 × size 240) + bit 160 + 1 Program log: 📊 Final phase check: remaining_after=50, winner_count=80, current winners=29 Program log: 🎯 Setting winner at position 51 (remaining NFTs: 50) Program log: ℹ️ NFT ID Calculation: 401 = (1 × 240) + 160 + 1 Program log: 🏆 NFT FZjJGZHswh8GBmuDTp7h1TrTsjsymxTU7RY5Gappm9ab is a winner! (ID: 401, 30/80) Program log: 🆔 Using NFT ID 401 for winner (shard: 1, position: 160) Program log: 🏆 Adding winner mint FZjJGZHswh8GBmuDTp7h1TrTsjsymxTU7RY5Gappm9ab with NFT ID 401 Program log: 🏆 CORRECT Order: NFT ID 401 gets lower place = array index 50 (position 51) Program log: ✅ Added NFT ID 401 at position 51 (first eliminated = last place) Program log: 💰 Winner added with ID 401: Current winners: 30/80 Program log: 🔍 Checking bit: position=160, byte[20] bit[0] = true Program log:    Byte value: 00000011 Program log: 🗑️  Clearing active bit: position=160, byte[20] bit[0] Program log:    Before: 00000011 Program log:    After:  00000010 Program log: 
💥 Eliminated positions in shard 1: [160] Program log: Final shard active count: 19 Program log:  Elimination round 1 completed Program JDYTBscYeBnDNEtx61pF8xigwM9kxLRjptqkwqr2so95 consumed 112445 of 1399700 compute units Program JDYTBscYeBnDNEtx61pF8xigwM9kxLRjptqkwqr2so95 success