8iTXuQ8t66UJgdSJh6Yu2jLhk9aUyDaR6YTGamgvTu9Y
HPnypsYgKy9kDJBSFCUrVMNZxEZUtdRnKfXCgWTKjLMZ
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: 3 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 391943733: [67, 97, 44, 106, 84, 95, 213, 33] Program log: 🔒 Got REAL block hash randomness: [67, 97, 44, 106, 84, 95, 213, 33] Program log: Random bytes: [67, 97, 44, 106, 84, 95, 213, 33] Program log: 🔄 Before weight calculation - synchronizing all shard active counts Program log: 📊 Synchronized shard 2 active count: 3 Program log: 🔍 DEBUG: ShardManager state before weight calculation: Program log:   Manager Shard 0: 10 active NFTs Program log:   Manager Shard 1: 12 active NFTs Program log:   Manager Shard 2: 3 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 3333 (10/30 NFTs = 33.33%) Program log: Shard 1 weight updated to 4000 (12/30 NFTs = 40.00%) Program log: Shard 2 weight updated to 1000 (3/30 NFTs = 10.00%) Program log: Shard 3 weight updated to 1666 (5/30 NFTs = 16.66%) Program log: Shard 4 weight updated to 0 (0/30 NFTs = 0.00%) Program log: 🔍 DEBUG: ShardManager weights after calculation: Program log:   Manager Shard 0: weight 3333 Program log:   Manager Shard 1: weight 4000 Program log:   Manager Shard 2: weight 1000 Program log:   Manager Shard 3: weight 1666 Program log:   Manager Shard 4: weight 0 Program log: ✅ Updated shard 2 weight to 1000 for this elimination Program log: 🎲 DEBUG: select_random_shard called with 32 bytes Program log: 🎲 DEBUG: Mixed random: 9000744011863789344 -> point: 9344 (PRECISION: 10000) Program log: 🎲 DEBUG: Shard weights for selection: Program log:   Shard 0: weight 3333 Program log:   Shard 1: weight 4000 Program log:   Shard 2: weight 1000 Program log:   Shard 3: weight 1666 Program log:   Shard 4: weight 0 Program log: 🎲 DEBUG: Shard 0 - point 9344 < cumulative 3333 ? Program log: 🎲 DEBUG: Shard 1 - point 9344 < cumulative 7333 ? Program log: 🎲 DEBUG: Shard 2 - point 9344 < cumulative 8333 ? Program log: 🎲 DEBUG: Shard 3 - point 9344 < cumulative 9999 ? Program log: 🎲 Selected shard 3 (weight: 1666, point: 9344, 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: 30, 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 11: 00000100, bit 2 -> position 90 Program log: ✅ NFT ID: 571 = (shard 2 × size 240) + bit 90 + 1 Program log: 📊 Final phase check: remaining_after=29, winner_count=80, current winners=50 Program log: 🎯 Setting winner at position 30 (remaining NFTs: 29) Program log: ℹ️ NFT ID Calculation: 571 = (2 × 240) + 90 + 1 Program log: 🏆 NFT ZrpR5nnwSpr1B3GNz7jkg1pCg3QHjq2gvMoHFo1Xh4v is a winner! (ID: 571, 51/80) Program log: 🆔 Using NFT ID 571 for winner (shard: 2, position: 90) Program log: 🏆 Adding winner mint ZrpR5nnwSpr1B3GNz7jkg1pCg3QHjq2gvMoHFo1Xh4v with NFT ID 571 Program log: 🏆 CORRECT Order: NFT ID 571 gets lower place = array index 29 (position 30) Program log: ✅ Added NFT ID 571 at position 30 (first eliminated = last place) Program log: 💰 Winner added with ID 571: Current winners: 51/80 Program log: 🔍 Checking bit: position=90, byte[11] bit[2] = true Program log:    Byte value: 00000100 Program log: 🗑️  Clearing active bit: position=90, byte[11] bit[2] Program log:    Before: 00000100 Program log:    After:  00000000 Program log: 
💥 Eliminated positions in shard 2: [90] Program log: Final shard active count: 2 Program log:  Elimination round 1 completed Program JDYTBscYeBnDNEtx61pF8xigwM9kxLRjptqkwqr2so95 consumed 109988 of 1399700 compute units Program JDYTBscYeBnDNEtx61pF8xigwM9kxLRjptqkwqr2so95 success