Fix. Rewritten miner pubkey validation.