51itjDCKNp6Q7JhbVJNkqznhHb7pBXxoVjxYrGkmXai4
4GUvoLDr65dooJ323nJe3ejF2nWb7P85swyPV56sa54V
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: 7 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 391941853: [225, 126, 205, 233, 69, 48, 169, 238] Program log: 🔒 Got REAL block hash randomness: [225, 126, 205, 233, 69, 48, 169, 238] Program log: Random bytes: [225, 126, 205, 233, 69, 48, 169, 238] Program log: 🔄 Before weight calculation - synchronizing all shard active counts Program log: 📊 Synchronized shard 2 active count: 7 Program log: 🔍 DEBUG: ShardManager state before weight calculation: Program log:   Manager Shard 0: 14 active NFTs Program log:   Manager Shard 1: 15 active NFTs Program log:   Manager Shard 2: 7 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 3414 (14/41 NFTs = 34.14%) Program log: Shard 1 weight updated to 3658 (15/41 NFTs = 36.58%) Program log: Shard 2 weight updated to 1707 (7/41 NFTs = 17.07%) Program log: Shard 3 weight updated to 1219 (5/41 NFTs = 12.19%) Program log: Shard 4 weight updated to 0 (0/41 NFTs = 0.00%) Program log: 🔍 DEBUG: ShardManager weights after calculation: Program log:   Manager Shard 0: weight 3414 Program log:   Manager Shard 1: weight 3658 Program log:   Manager Shard 2: weight 1707 Program log:   Manager Shard 3: weight 1219 Program log:   Manager Shard 4: weight 0 Program log: ✅ Updated shard 2 weight to 1707 for this elimination Program log: 🎲 DEBUG: select_random_shard called with 32 bytes Program log: 🎲 DEBUG: Mixed random: 5885798102029129031 -> point: 9031 (PRECISION: 10000) Program log: 🎲 DEBUG: Shard weights for selection: Program log:   Shard 0: weight 3414 Program log:   Shard 1: weight 3658 Program log:   Shard 2: weight 1707 Program log:   Shard 3: weight 1219 Program log:   Shard 4: weight 0 Program log: 🎲 DEBUG: Shard 0 - point 9031 < cumulative 3414 ? Program log: 🎲 DEBUG: Shard 1 - point 9031 < cumulative 7072 ? Program log: 🎲 DEBUG: Shard 2 - point 9031 < cumulative 8779 ? Program log: 🎲 DEBUG: Shard 3 - point 9031 < cumulative 9998 ? Program log: 🎲 Selected shard 3 (weight: 1219, point: 9031, cumulative: 9998) 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: 41, 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 12: 00100000, bit 5 -> position 101 Program log: ✅ NFT ID: 582 = (shard 2 × size 240) + bit 101 + 1 Program log: 📊 Final phase check: remaining_after=40, winner_count=80, current winners=39 Program log: 🎯 Setting winner at position 41 (remaining NFTs: 40) Program log: ℹ️ NFT ID Calculation: 582 = (2 × 240) + 101 + 1 Program log: 🏆 NFT 7ieMd3wNBDHrLgALu7Q8T15eCLkrb9jLtimRpecZrrWd is a winner! (ID: 582, 40/80) Program log: 🆔 Using NFT ID 582 for winner (shard: 2, position: 101) Program log: 🏆 Adding winner mint 7ieMd3wNBDHrLgALu7Q8T15eCLkrb9jLtimRpecZrrWd with NFT ID 582 Program log: 🏆 CORRECT Order: NFT ID 582 gets lower place = array index 40 (position 41) Program log: ✅ Added NFT ID 582 at position 41 (first eliminated = last place) Program log: 💰 Winner added with ID 582: Current winners: 40/80 Program log: 🔍 Checking bit: position=101, byte[12] bit[5] = true Program log:    Byte value: 00100000 Program log: 🗑️  Clearing active bit: position=101, byte[12] bit[5] Program log:    Before: 00100000 Program log:    After:  00000000 Program log: 
💥 Eliminated positions in shard 2: [101] Program log: Final shard active count: 6 Program log:  Elimination round 1 completed Program JDYTBscYeBnDNEtx61pF8xigwM9kxLRjptqkwqr2so95 consumed 108731 of 1399700 compute units Program JDYTBscYeBnDNEtx61pF8xigwM9kxLRjptqkwqr2so95 success