Safer syncing of blockchain/txqueue to state.
Linux build fix.