GZsVtYqUBJKNq7pjKAasMoAp5RjYtAxo8iYtjpF8R4N
44jG1BCsyFa7L4BGJ3oXYCda852iQ1bC2rZVsJKWvHg1
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 391945414: [228, 63, 70, 33, 152, 9, 74, 4] Program log: 🔒 Got REAL block hash randomness: [228, 63, 70, 33, 152, 9, 74, 4] Program log: Random bytes: [228, 63, 70, 33, 152, 9, 74, 4] Program log: 🔄 Before weight calculation - synchronizing all shard active counts Program log: 📊 Synchronized shard 3 active count: 4 Program log: 🔍 DEBUG: ShardManager state before weight calculation: Program log:   Manager Shard 0: 7 active NFTs Program log:   Manager Shard 1: 7 active NFTs Program log:   Manager Shard 2: 1 active NFTs Program log:   Manager Shard 3: 4 active NFTs Program log:   Manager Shard 4: 0 active NFTs Program log: Shard 0 weight updated to 3684 (7/19 NFTs = 36.84%) Program log: Shard 1 weight updated to 3684 (7/19 NFTs = 36.84%) Program log: Shard 2 weight updated to 526 (1/19 NFTs = 5.26%) Program log: Shard 3 weight updated to 2105 (4/19 NFTs = 21.05%) Program log: Shard 4 weight updated to 0 (0/19 NFTs = 0.00%) Program log: 🔍 DEBUG: ShardManager weights after calculation: Program log:   Manager Shard 0: weight 3684 Program log:   Manager Shard 1: weight 3684 Program log:   Manager Shard 2: weight 526 Program log:   Manager Shard 3: weight 2105 Program log:   Manager Shard 4: weight 0 Program log: ✅ Updated shard 3 weight to 2105 for this elimination Program log: 🎲 DEBUG: select_random_shard called with 32 bytes Program log: 🎲 DEBUG: Mixed random: 8785375405665377791 -> point: 7791 (PRECISION: 10000) Program log: 🎲 DEBUG: Shard weights for selection: Program log:   Shard 0: weight 3684 Program log:   Shard 1: weight 3684 Program log:   Shard 2: weight 526 Program log:   Shard 3: weight 2105 Program log:   Shard 4: weight 0 Program log: 🎲 DEBUG: Shard 0 - point 7791 < cumulative 3684 ? Program log: 🎲 DEBUG: Shard 1 - point 7791 < cumulative 7368 ? Program log: 🎲 DEBUG: Shard 2 - point 7791 < cumulative 7894 ? Program log: 🎲 Selected shard 2 (weight: 526, point: 7791, cumulative: 7894) Program log: 🧪 TEST MODE: Weight-based selection chose shard 2 (randomness from slot) Program log: 🧪 TEST MODE: Contract calculated shard 2 but processing shard 3 (client-controlled) Program log: Total active: 19, 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 8: 00100010, bit 1 -> position 65 Program log: ✅ NFT ID: 786 = (shard 3 × size 240) + bit 65 + 1 Program log: 📊 Final phase check: remaining_after=18, winner_count=80, current winners=61 Program log: 🎯 Setting winner at position 19 (remaining NFTs: 18) Program log: ℹ️ NFT ID Calculation: 786 = (3 × 240) + 65 + 1 Program log: 🏆 NFT BstRMZ1aeqHiWdkJYJx1QMbqYHs412WFiHMeYnsBSwB9 is a winner! (ID: 786, 62/80) Program log: 🆔 Using NFT ID 786 for winner (shard: 3, position: 65) Program log: 🏆 Adding winner mint BstRMZ1aeqHiWdkJYJx1QMbqYHs412WFiHMeYnsBSwB9 with NFT ID 786 Program log: 🏆 CORRECT Order: NFT ID 786 gets lower place = array index 18 (position 19) Program log: ✅ Added NFT ID 786 at position 19 (first eliminated = last place) Program log: 💰 Winner added with ID 786: Current winners: 62/80 Program log: 🔍 Checking bit: position=65, byte[8] bit[1] = true Program log:    Byte value: 00100010 Program log: 🗑️  Clearing active bit: position=65, byte[8] bit[1] Program log:    Before: 00100010 Program log:    After:  00100000 Program log: 
💥 Eliminated positions in shard 3: [65] Program log: Final shard active count: 3 Program log:  Elimination round 1 completed Program JDYTBscYeBnDNEtx61pF8xigwM9kxLRjptqkwqr2so95 consumed 109781 of 1399700 compute units Program JDYTBscYeBnDNEtx61pF8xigwM9kxLRjptqkwqr2so95 success