Having spoken in an honest way, John suprised everybody by accepting the project though it had many negative sides.

To be honest, John suprised everybody by accepting the project though it had many negative sides.

What is the difference between these two sentences?