446A5vtkGtbTGUvThBg3e9CX1kVepMzpJJFKvn8TzKmb
AxYXeLa8F1mJxBj44ykHvcttXdZH7nXxqK3tvvTM8ZbR
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: 14 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 391941872: [152, 109, 237, 179, 103, 23, 239, 180] Program log: 🔒 Got REAL block hash randomness: [152, 109, 237, 179, 103, 23, 239, 180] Program log: Random bytes: [152, 109, 237, 179, 103, 23, 239, 180] Program log: 🔄 Before weight calculation - synchronizing all shard active counts Program log: 📊 Synchronized shard 0 active count: 14 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: 6 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 3500 (14/40 NFTs = 35.00%) Program log: Shard 1 weight updated to 3750 (15/40 NFTs = 37.50%) Program log: Shard 2 weight updated to 1500 (6/40 NFTs = 15.00%) Program log: Shard 3 weight updated to 1250 (5/40 NFTs = 12.50%) Program log: Shard 4 weight updated to 0 (0/40 NFTs = 0.00%) Program log: 🔍 DEBUG: ShardManager weights after calculation: Program log:   Manager Shard 0: weight 3500 Program log:   Manager Shard 1: weight 3750 Program log:   Manager Shard 2: weight 1500 Program log:   Manager Shard 3: weight 1250 Program log:   Manager Shard 4: weight 0 Program log: ✅ Updated shard 0 weight to 3500 for this elimination Program log: 🎲 DEBUG: select_random_shard called with 32 bytes Program log: 🎲 DEBUG: Mixed random: 5406542064616353470 -> point: 3470 (PRECISION: 10000) Program log: 🎲 DEBUG: Shard weights for selection: Program log:   Shard 0: weight 3500 Program log:   Shard 1: weight 3750 Program log:   Shard 2: weight 1500 Program log:   Shard 3: weight 1250 Program log:   Shard 4: weight 0 Program log: 🎲 DEBUG: Shard 0 - point 3470 < cumulative 3500 ? Program log: 🎲 Selected shard 0 (weight: 3500, point: 3470, cumulative: 3500) Program log: 🧪 TEST MODE: Weight-based selection chose shard 0 (randomness from slot) Program log: 🧪 TEST MODE: Contract calculated shard 0 but processing shard 0 (client-controlled) Program log: Total active: 40, 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 2: 00010010, bit 4 -> position 20 Program log: ✅ NFT ID: 21 = (shard 0 × size 240) + bit 20 + 1 Program log: 📊 Final phase check: remaining_after=39, winner_count=80, current winners=40 Program log: 🎯 Setting winner at position 40 (remaining NFTs: 39) Program log: ℹ️ NFT ID Calculation: 21 = (0 × 240) + 20 + 1 Program log: 🏆 NFT 2BYsqVYKPHvwq2WShVhZkZVXxm57G2BLrEhhWjfpiJvd is a winner! (ID: 21, 41/80) Program log: 🆔 Using NFT ID 21 for winner (shard: 0, position: 20) Program log: 🏆 Adding winner mint 2BYsqVYKPHvwq2WShVhZkZVXxm57G2BLrEhhWjfpiJvd with NFT ID 21 Program log: 🏆 CORRECT Order: NFT ID 21 gets lower place = array index 39 (position 40) Program log: ✅ Added NFT ID 21 at position 40 (first eliminated = last place) Program log: 💰 Winner added with ID 21: Current winners: 41/80 Program log: 🔍 Checking bit: position=20, byte[2] bit[4] = true Program log:    Byte value: 00010010 Program log: 🗑️  Clearing active bit: position=20, byte[2] bit[4] Program log:    Before: 00010010 Program log:    After:  00000010 Program log: 
💥 Eliminated positions in shard 0: [20] Program log: Final shard active count: 13 Program log:  Elimination round 1 completed Program JDYTBscYeBnDNEtx61pF8xigwM9kxLRjptqkwqr2so95 consumed 117640 of 1399700 compute units Program JDYTBscYeBnDNEtx61pF8xigwM9kxLRjptqkwqr2so95 success