C6Sw1wPqMJgKZPZP3GSWMFzUaCA4nDmz4Sr2gxUstXaH
C6nQLZVg1kJqyLxsS17bXySGzC8Y8ZaEahHxTWt61MB1
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: 11 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 391941668: [16, 87, 90, 232, 22, 240, 62, 227] Program log: 🔒 Got REAL block hash randomness: [16, 87, 90, 232, 22, 240, 62, 227] Program log: Random bytes: [16, 87, 90, 232, 22, 240, 62, 227] Program log: 🔄 Before weight calculation - synchronizing all shard active counts Program log: 📊 Synchronized shard 2 active count: 11 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: 11 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 2884 (15/52 NFTs = 28.84%) Program log: Shard 1 weight updated to 3846 (20/52 NFTs = 38.46%) Program log: Shard 2 weight updated to 2115 (11/52 NFTs = 21.15%) Program log: Shard 3 weight updated to 1153 (6/52 NFTs = 11.53%) Program log: Shard 4 weight updated to 0 (0/52 NFTs = 0.00%) Program log: 🔍 DEBUG: ShardManager weights after calculation: Program log:   Manager Shard 0: weight 2884 Program log:   Manager Shard 1: weight 3846 Program log:   Manager Shard 2: weight 2115 Program log:   Manager Shard 3: weight 1153 Program log:   Manager Shard 4: weight 0 Program log: ✅ Updated shard 2 weight to 2115 for this elimination Program log: 🎲 DEBUG: select_random_shard called with 32 bytes Program log: 🎲 DEBUG: Mixed random: 5663342275631108226 -> point: 8226 (PRECISION: 10000) Program log: 🎲 DEBUG: Shard weights for selection: Program log:   Shard 0: weight 2884 Program log:   Shard 1: weight 3846 Program log:   Shard 2: weight 2115 Program log:   Shard 3: weight 1153 Program log:   Shard 4: weight 0 Program log: 🎲 DEBUG: Shard 0 - point 8226 < cumulative 2884 ? Program log: 🎲 DEBUG: Shard 1 - point 8226 < cumulative 6730 ? Program log: 🎲 DEBUG: Shard 2 - point 8226 < cumulative 8845 ? Program log: 🎲 Selected shard 2 (weight: 2115, point: 8226, cumulative: 8845) Program log: 🧪 TEST MODE: Weight-based selection chose shard 2 (randomness from slot) Program log: 🧪 TEST MODE: Contract calculated shard 2 but processing shard 2 (client-controlled) Program log: Total active: 52, 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 27: 10100000, bit 5 -> position 221 Program log: ✅ NFT ID: 702 = (shard 2 × size 240) + bit 221 + 1 Program log: 📊 Final phase check: remaining_after=51, winner_count=80, current winners=28 Program log: 🎯 Setting winner at position 52 (remaining NFTs: 51) Program log: ℹ️ NFT ID Calculation: 702 = (2 × 240) + 221 + 1 Program log: 🏆 NFT FJrLUAbLPwUEEKCaRyMhU1hCYLGa1nKts9AJisnfW35a is a winner! (ID: 702, 29/80) Program log: 🆔 Using NFT ID 702 for winner (shard: 2, position: 221) Program log: 🏆 Adding winner mint FJrLUAbLPwUEEKCaRyMhU1hCYLGa1nKts9AJisnfW35a with NFT ID 702 Program log: 🏆 CORRECT Order: NFT ID 702 gets lower place = array index 51 (position 52) Program log: ✅ Added NFT ID 702 at position 52 (first eliminated = last place) Program log: 💰 Winner added with ID 702: Current winners: 29/80 Program log: 🔍 Checking bit: position=221, byte[27] bit[5] = true Program log:    Byte value: 10100000 Program log: 🗑️  Clearing active bit: position=221, byte[27] bit[5] Program log:    Before: 10100000 Program log:    After:  10000000 Program log: 
💥 Eliminated positions in shard 2: [221] Program log: Final shard active count: 10 Program log:  Elimination round 1 completed Program JDYTBscYeBnDNEtx61pF8xigwM9kxLRjptqkwqr2so95 consumed 107574 of 1399700 compute units Program JDYTBscYeBnDNEtx61pF8xigwM9kxLRjptqkwqr2so95 success