Revert "Update rpcwallet.cpp"

This reverts commit 3a2879c11ff8add96c46f5ab0353782509a19715.
Revert "Sync before generate pos block"

This reverts commit a279e3c86e4264ffea365e8e9af1409741525272.