FcoBgFB3cQy5m5q7EHhC4YUwyFZ6NqHi1nACz4JwSs1i
65hCCTEsGFRHfbzDhX66k4LY5qmoRiimJMP3wGNGpB7n
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: 4 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 391943696: [98, 57, 233, 22, 42, 192, 145, 122] Program log: 🔒 Got REAL block hash randomness: [98, 57, 233, 22, 42, 192, 145, 122] Program log: Random bytes: [98, 57, 233, 22, 42, 192, 145, 122] Program log: 🔄 Before weight calculation - synchronizing all shard active counts Program log: 📊 Synchronized shard 2 active count: 4 Program log: 🔍 DEBUG: ShardManager state before weight calculation: Program log:   Manager Shard 0: 11 active NFTs Program log:   Manager Shard 1: 12 active NFTs Program log:   Manager Shard 2: 4 active NFTs Program log:   Manager Shard 3: 5 active NFTs Program log:   Manager Shard 4: 0 active NFTs Program log: Shard 0 weight updated to 3437 (11/32 NFTs = 34.37%) Program log: Shard 1 weight updated to 3750 (12/32 NFTs = 37.50%) Program log: Shard 2 weight updated to 1250 (4/32 NFTs = 12.50%) Program log: Shard 3 weight updated to 1562 (5/32 NFTs = 15.62%) Program log: Shard 4 weight updated to 0 (0/32 NFTs = 0.00%) Program log: 🔍 DEBUG: ShardManager weights after calculation: Program log:   Manager Shard 0: weight 3437 Program log:   Manager Shard 1: weight 3750 Program log:   Manager Shard 2: weight 1250 Program log:   Manager Shard 3: weight 1562 Program log:   Manager Shard 4: weight 0 Program log: ✅ Updated shard 2 weight to 1250 for this elimination Program log: 🎲 DEBUG: select_random_shard called with 32 bytes Program log: 🎲 DEBUG: Mixed random: 12994141814758629608 -> point: 9608 (PRECISION: 10000) Program log: 🎲 DEBUG: Shard weights for selection: Program log:   Shard 0: weight 3437 Program log:   Shard 1: weight 3750 Program log:   Shard 2: weight 1250 Program log:   Shard 3: weight 1562 Program log:   Shard 4: weight 0 Program log: 🎲 DEBUG: Shard 0 - point 9608 < cumulative 3437 ? Program log: 🎲 DEBUG: Shard 1 - point 9608 < cumulative 7187 ? Program log: 🎲 DEBUG: Shard 2 - point 9608 < cumulative 8437 ? Program log: 🎲 DEBUG: Shard 3 - point 9608 < cumulative 9999 ? Program log: 🎲 Selected shard 3 (weight: 1562, point: 9608, cumulative: 9999) Program log: 🧪 TEST MODE: Weight-based selection chose shard 3 (randomness from slot) Program log: 🧪 TEST MODE: Contract calculated shard 3 but processing shard 2 (client-controlled) Program log: Total active: 32, 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 4: 01000000, bit 6 -> position 38 Program log: ✅ NFT ID: 519 = (shard 2 × size 240) + bit 38 + 1 Program log: 📊 Final phase check: remaining_after=31, winner_count=80, current winners=48 Program log: 🎯 Setting winner at position 32 (remaining NFTs: 31) Program log: ℹ️ NFT ID Calculation: 519 = (2 × 240) + 38 + 1 Program log: 🏆 NFT 7XLR89GpkHifGgwuwDrmz7kqE98rixvKZK4acK4qgh4r is a winner! (ID: 519, 49/80) Program log: 🆔 Using NFT ID 519 for winner (shard: 2, position: 38) Program log: 🏆 Adding winner mint 7XLR89GpkHifGgwuwDrmz7kqE98rixvKZK4acK4qgh4r with NFT ID 519 Program log: 🏆 CORRECT Order: NFT ID 519 gets lower place = array index 31 (position 32) Program log: ✅ Added NFT ID 519 at position 32 (first eliminated = last place) Program log: 💰 Winner added with ID 519: Current winners: 49/80 Program log: 🔍 Checking bit: position=38, byte[4] bit[6] = true Program log:    Byte value: 01000000 Program log: 🗑️  Clearing active bit: position=38, byte[4] bit[6] Program log:    Before: 01000000 Program log:    After:  00000000 Program log: 
💥 Eliminated positions in shard 2: [38] Program log: Final shard active count: 3 Program log:  Elimination round 1 completed Program JDYTBscYeBnDNEtx61pF8xigwM9kxLRjptqkwqr2so95 consumed 119142 of 1399700 compute units Program JDYTBscYeBnDNEtx61pF8xigwM9kxLRjptqkwqr2so95 success