Move g_signals.SetBestChain(..) below SyncWithWallets
Fixing compiler warning C4800: 'type' forcing value to bool 'true' or 'false'
netbase: Make SOCKS5 negotiation interruptible

Avoids that SOCKS5 negotiation will hold up the shutdown process.

- Sockets can stay in non-blocking mode, no need to switch it on/off
  anymore
- Adds a timeout (20 seconds) on SOCK5 negotiation. This should be
  enough for even Tor to get a connection to a hidden service, and
  avoids blocking the opencon thread indefinitely on a hanging proxy.

Fixes #2954.
When reindexing check for file before trying to open (refactored)
header include cleanup

- ensures alphabetical ordering for includes etc. in source file headers
Bugfix: Add missing equals-sign to Travis config
Merge pull request #4798

d920f7d Move g_signals.SetBestChain(..) below SyncWithWallets (Cozz Lovan)
Merge pull request #4919

21b7add Bugfix: Add missing equals-sign to Travis config (Luke Dashjr)
Fixing compiler warning C4101

Github-Pull: #4856
Eliminate extra assignment
Merge pull request #4869

6050ab6 netbase: Make SOCKS5 negotiation interruptible (Wladimir J. van der Laan)
Merge pull request #4875

f7e3637 Eliminate extra assignment (Suhas Daftuar)
ec7eb0f When reindexing check for file before trying to open (refactored) (Suhas Daftuar)
Merge pull request #4911

611116d header include cleanup (Philip Kaufmann)
Merge pull request #4825

8d657a6 Fixing compiler warning C4800: 'type' forcing value to bool 'true' or 'false' (ENikS)