In case of conflict, either party can post the latest cosigned state and contract code to the blockchain and the blockchain will verify correctness of the state by executing the smart contract. The blockchain can verify that the contract is valid by checking its fingerprints against those supplied by the users the channel was opened