[client] Fix a memory bug.
Update block transfer protocol to v2.