This PR updates block production to correctly address malicious solutions. This fix overwrites the solution target with value calculated during solution verification. So even if a malicious solution is injected by a malicious validator, honest validators will always process them and safely convert them to honest solutions.
Motivation
This PR updates block production to correctly address malicious solutions. This fix overwrites the solution target with value calculated during solution verification. So even if a malicious solution is injected by a malicious validator, honest validators will always process them and safely convert them to honest solutions.
CI run is here.
Test Plan
Tests have been added to ensure that malicious solutions are handled correctly.