fix for migration status=9, input reading validation, listBlockOrigin, and so on.
Merge pull request #370 from yuyiguo/migration9

fix for migration status=9, input reading validation, listBlockOrigin, and so on.
No one to check. I have to merge myself.