391W5cAfiUptxgbCHPwVvdLRthtTp1yW1KSxAtYCB28h
BYasQU2X6hMwaQnV2dYDuAwyvpNcJ3ZLYyrdP3SRTTF1
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: 6 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 391941701: [167, 83, 162, 129, 159, 232, 89, 244] Program log: 🔒 Got REAL block hash randomness: [167, 83, 162, 129, 159, 232, 89, 244] Program log: Random bytes: [167, 83, 162, 129, 159, 232, 89, 244] Program log: 🔄 Before weight calculation - synchronizing all shard active counts Program log: 📊 Synchronized shard 3 active count: 6 Program log: 🔍 DEBUG: ShardManager state before weight calculation: Program log:   Manager Shard 0: 15 active NFTs Program log:   Manager Shard 1: 19 active NFTs Program log:   Manager Shard 2: 10 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 3000 (15/50 NFTs = 30.00%) Program log: Shard 1 weight updated to 3800 (19/50 NFTs = 38.00%) Program log: Shard 2 weight updated to 2000 (10/50 NFTs = 20.00%) Program log: Shard 3 weight updated to 1200 (6/50 NFTs = 12.00%) Program log: Shard 4 weight updated to 0 (0/50 NFTs = 0.00%) Program log: 🔍 DEBUG: ShardManager weights after calculation: Program log:   Manager Shard 0: weight 3000 Program log:   Manager Shard 1: weight 3800 Program log:   Manager Shard 2: weight 2000 Program log:   Manager Shard 3: weight 1200 Program log:   Manager Shard 4: weight 0 Program log: ✅ Updated shard 3 weight to 1200 for this elimination Program log: 🎲 DEBUG: select_random_shard called with 32 bytes Program log: 🎲 DEBUG: Mixed random: 16505308871000395270 -> point: 5270 (PRECISION: 10000) Program log: 🎲 DEBUG: Shard weights for selection: Program log:   Shard 0: weight 3000 Program log:   Shard 1: weight 3800 Program log:   Shard 2: weight 2000 Program log:   Shard 3: weight 1200 Program log:   Shard 4: weight 0 Program log: 🎲 DEBUG: Shard 0 - point 5270 < cumulative 3000 ? Program log: 🎲 DEBUG: Shard 1 - point 5270 < cumulative 6800 ? Program log: 🎲 Selected shard 1 (weight: 3800, point: 5270, cumulative: 6800) Program log: 🧪 TEST MODE: Weight-based selection chose shard 1 (randomness from slot) Program log: 🧪 TEST MODE: Contract calculated shard 1 but processing shard 3 (client-controlled) Program log: Total active: 50, 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: 00000100, bit 2 -> position 18 Program log: ✅ NFT ID: 739 = (shard 3 × size 240) + bit 18 + 1 Program log: 📊 Final phase check: remaining_after=49, winner_count=80, current winners=30 Program log: 🎯 Setting winner at position 50 (remaining NFTs: 49) Program log: ℹ️ NFT ID Calculation: 739 = (3 × 240) + 18 + 1 Program log: 🏆 NFT 5KZJDf1bPRSTPuHsUj6aJmbFz1m9YtJqGgHxTNTA4JoC is a winner! (ID: 739, 31/80) Program log: 🆔 Using NFT ID 739 for winner (shard: 3, position: 18) Program log: 🏆 Adding winner mint 5KZJDf1bPRSTPuHsUj6aJmbFz1m9YtJqGgHxTNTA4JoC with NFT ID 739 Program log: 🏆 CORRECT Order: NFT ID 739 gets lower place = array index 49 (position 50) Program log: ✅ Added NFT ID 739 at position 50 (first eliminated = last place) Program log: 💰 Winner added with ID 739: Current winners: 31/80 Program log: 🔍 Checking bit: position=18, byte[2] bit[2] = true Program log:    Byte value: 00000100 Program log: 🗑️  Clearing active bit: position=18, byte[2] bit[2] Program log:    Before: 00000100 Program log:    After:  00000000 Program log: 
💥 Eliminated positions in shard 3: [18] Program log: Final shard active count: 5 Program log:  Elimination round 1 completed Program JDYTBscYeBnDNEtx61pF8xigwM9kxLRjptqkwqr2so95 consumed 111792 of 1399700 compute units Program JDYTBscYeBnDNEtx61pF8xigwM9kxLRjptqkwqr2so95 success