Fix key_not_found_exception on get_info; resolves #952
Partial updates to peer database: prune database size on loading, ensure firewalled nodes don't make it into the database
Cherry-picked 99aafc90f0f6300d22d6720a8c26991201fa85ad

Remove ancient, unused print_banner()

Conflicts:
	libraries/client/client.cpp
Cherry-picked 3900b0834dff94d6730c43e0fc7650926d84bb07

Add -Wstack-usage, mitigate #974

Conflicts:
	CMakeLists.txt
Minor cleanup
Upgrade Mac and Linux LevelDB 1.12 -> 1.18-bitcoin
Allow syncing on flush of cached_level_map
Cherry-picked f1517aa0b40d86d764fb004e8f9445d89e30ec77

Sync all wallet_db writes in production

Conflicts:
	libraries/wallet/wallet_db.cpp
Flush cached_level_maps every 1000 blocks during re-indexing
Cherry-picked 4ab5e5a4bc1970e83793c409e5c5caad41587f6d

Fix compiler warnings due to auto x = 0

- Fixed problems found by `grep -R -n "auto.*=\\s*[0-9]" . --include="*.cpp"`

Conflicts:
	libraries/cli/pretty.cpp
	libraries/wallet/wallet_db.cpp
Remove extraneous file
Allow user to specify whether to use SO_REUSEADDR on p2p port, fixes #921
Minor API permission tweak
Cherry-picked add412849081246a1176f78a4dcf8547b3c5a2d0

Don't abort wallet scanning on an error; resolves #1060

Conflicts:
	libraries/wallet/wallet.cpp
Re-enable deferred flushing during re-indexing
Fix cached_level_map deferred flushing; resolves #790
Use Bitcoin LevelDB settings for level_map
Cherry-picked 3ce38848de32589b4e106be5545c76f8709ae548

Convert more level_maps to cached_level_maps

Conflicts:
	libraries/blockchain/include/bts/blockchain/chain_database_impl.hpp
Fixed compile
Fixed tests + tried to make them more deterministic