6sfZb4wooiad9uSUGijBqYWCqxNGPa6sFNR9TYVtE3eZ
Cy8ykBZmfpbC1heUzactcffK6mb7uEdF1Gu8Efo8RAP2
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 391947457: [120, 237, 152, 50, 170, 233, 172, 193] Program log: 🔒 Got REAL block hash randomness: [120, 237, 152, 50, 170, 233, 172, 193] Program log: Random bytes: [120, 237, 152, 50, 170, 233, 172, 193] Program log: 🔄 Before weight calculation - synchronizing all shard active counts Program log: 📊 Synchronized shard 3 active count: 3 Program log: 🔍 DEBUG: ShardManager state before weight calculation: Program log:   Manager Shard 0: 5 active NFTs Program log:   Manager Shard 1: 3 active NFTs Program log:   Manager Shard 2: 0 active NFTs Program log:   Manager Shard 3: 3 active NFTs Program log:   Manager Shard 4: 0 active NFTs Program log: Shard 0 weight updated to 4545 (5/11 NFTs = 45.45%) Program log: Shard 1 weight updated to 2727 (3/11 NFTs = 27.27%) Program log: Shard 2 weight updated to 0 (0/11 NFTs = 0.00%) Program log: Shard 3 weight updated to 2727 (3/11 NFTs = 27.27%) Program log: Shard 4 weight updated to 0 (0/11 NFTs = 0.00%) Program log: 🔍 DEBUG: ShardManager weights after calculation: Program log:   Manager Shard 0: weight 4545 Program log:   Manager Shard 1: weight 2727 Program log:   Manager Shard 2: weight 0 Program log:   Manager Shard 3: weight 2727 Program log:   Manager Shard 4: weight 0 Program log: ✅ Updated shard 3 weight to 2727 for this elimination Program log: 🎲 DEBUG: select_random_shard called with 32 bytes Program log: 🎲 DEBUG: Mixed random: 8496803671536852450 -> point: 2450 (PRECISION: 10000) Program log: 🎲 DEBUG: Shard weights for selection: Program log:   Shard 0: weight 4545 Program log:   Shard 1: weight 2727 Program log:   Shard 2: weight 0 Program log:   Shard 3: weight 2727 Program log:   Shard 4: weight 0 Program log: 🎲 DEBUG: Shard 0 - point 2450 < cumulative 4545 ? Program log: 🎲 Selected shard 0 (weight: 4545, point: 2450, cumulative: 4545) Program log: 🧪 TEST MODE: Weight-based selection chose shard 0 (randomness from slot) Program log: 🧪 TEST MODE: Contract calculated shard 0 but processing shard 3 (client-controlled) Program log: Total active: 11, 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 7: 01000000, bit 6 -> position 62 Program log: ✅ NFT ID: 783 = (shard 3 × size 240) + bit 62 + 1 Program log: 📊 Final phase check: remaining_after=10, winner_count=80, current winners=69 Program log: 🎯 Setting winner at position 11 (remaining NFTs: 10) Program log: ℹ️ NFT ID Calculation: 783 = (3 × 240) + 62 + 1 Program log: 🏆 NFT Aa64RjmDzxdbJ59nHX1TjkSQACFwRQo5LhDUZamHVxwT is a winner! (ID: 783, 70/80) Program log: 🆔 Using NFT ID 783 for winner (shard: 3, position: 62) Program log: 🏆 Adding winner mint Aa64RjmDzxdbJ59nHX1TjkSQACFwRQo5LhDUZamHVxwT with NFT ID 783 Program log: 🏆 CORRECT Order: NFT ID 783 gets lower place = array index 10 (position 11) Program log: ✅ Added NFT ID 783 at position 11 (first eliminated = last place) Program log: 💰 Winner added with ID 783: Current winners: 70/80 Program log: 🔍 Checking bit: position=62, byte[7] bit[6] = true Program log:    Byte value: 01000000 Program log: 🗑️  Clearing active bit: position=62, byte[7] bit[6] Program log:    Before: 01000000 Program log:    After:  00000000 Program log: 
💥 Eliminated positions in shard 3: [62] Program log: Final shard active count: 2 Program log:  Elimination round 1 completed Program JDYTBscYeBnDNEtx61pF8xigwM9kxLRjptqkwqr2so95 consumed 104350 of 1399700 compute units Program JDYTBscYeBnDNEtx61pF8xigwM9kxLRjptqkwqr2so95 success