CjWeBVKk2y6Dtxto9iZNtetYjp7ZPcprL227XUPECHM3
Bji1MzTcgRyQbz3zmWB2d4xVxg3FVkqzQ2oXQVhy4mu9
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: 10 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 391941801: [159, 227, 80, 123, 20, 226, 148, 12] Program log: 🔒 Got REAL block hash randomness: [159, 227, 80, 123, 20, 226, 148, 12] Program log: Random bytes: [159, 227, 80, 123, 20, 226, 148, 12] Program log: 🔄 Before weight calculation - synchronizing all shard active counts Program log: 📊 Synchronized shard 2 active count: 10 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: 10 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 3181 (14/44 NFTs = 31.81%) Program log: Shard 1 weight updated to 3409 (15/44 NFTs = 34.09%) Program log: Shard 2 weight updated to 2272 (10/44 NFTs = 22.72%) Program log: Shard 3 weight updated to 1136 (5/44 NFTs = 11.36%) Program log: Shard 4 weight updated to 0 (0/44 NFTs = 0.00%) Program log: 🔍 DEBUG: ShardManager weights after calculation: Program log:   Manager Shard 0: weight 3181 Program log:   Manager Shard 1: weight 3409 Program log:   Manager Shard 2: weight 2272 Program log:   Manager Shard 3: weight 1136 Program log:   Manager Shard 4: weight 0 Program log: ✅ Updated shard 2 weight to 2272 for this elimination Program log: 🎲 DEBUG: select_random_shard called with 32 bytes Program log: 🎲 DEBUG: Mixed random: 6193588071046718916 -> point: 8916 (PRECISION: 10000) Program log: 🎲 DEBUG: Shard weights for selection: Program log:   Shard 0: weight 3181 Program log:   Shard 1: weight 3409 Program log:   Shard 2: weight 2272 Program log:   Shard 3: weight 1136 Program log:   Shard 4: weight 0 Program log: 🎲 DEBUG: Shard 0 - point 8916 < cumulative 3181 ? Program log: 🎲 DEBUG: Shard 1 - point 8916 < cumulative 6590 ? Program log: 🎲 DEBUG: Shard 2 - point 8916 < cumulative 8862 ? Program log: 🎲 DEBUG: Shard 3 - point 8916 < cumulative 9998 ? Program log: 🎲 Selected shard 3 (weight: 1136, point: 8916, 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: 44, 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 4: 01010000, bit 4 -> position 36 Program log: ✅ NFT ID: 517 = (shard 2 × size 240) + bit 36 + 1 Program log: 📊 Final phase check: remaining_after=43, winner_count=80, current winners=36 Program log: 🎯 Setting winner at position 44 (remaining NFTs: 43) Program log: ℹ️ NFT ID Calculation: 517 = (2 × 240) + 36 + 1 Program log: 🏆 NFT 6YY4n8PTNLJQPKrbUdV9YTpW9h6EbwvdZESztiyh5g3K is a winner! (ID: 517, 37/80) Program log: 🆔 Using NFT ID 517 for winner (shard: 2, position: 36) Program log: 🏆 Adding winner mint 6YY4n8PTNLJQPKrbUdV9YTpW9h6EbwvdZESztiyh5g3K with NFT ID 517 Program log: 🏆 CORRECT Order: NFT ID 517 gets lower place = array index 43 (position 44) Program log: ✅ Added NFT ID 517 at position 44 (first eliminated = last place) Program log: 💰 Winner added with ID 517: Current winners: 37/80 Program log: 🔍 Checking bit: position=36, byte[4] bit[4] = true Program log:    Byte value: 01010000 Program log: 🗑️  Clearing active bit: position=36, byte[4] bit[4] Program log:    Before: 01010000 Program log:    After:  01000000 Program log: 
💥 Eliminated positions in shard 2: [36] Program log: Final shard active count: 9 Program log:  Elimination round 1 completed Program JDYTBscYeBnDNEtx61pF8xigwM9kxLRjptqkwqr2so95 consumed 112599 of 1399700 compute units Program JDYTBscYeBnDNEtx61pF8xigwM9kxLRjptqkwqr2so95 success