stop bitcoind/bitcoin-cli processes that might have been left running
Merge pull request #4074

d3081fa Removed LevelDB changes (super3)
reorder includes to compile on OpenBSD

From getifaddr(3) manual:
"If both <net/if.h> and <ifaddrs.h> are being
included, <net/if.h> must be included before <ifaddrs.h>"

http://www.openbsd.org/cgi-bin/man.cgi?query=getifaddrs&apropos=0&sektion=0&manpath=OpenBSD+Current&arch=i386&format=html
Merge pull request #4119

2364b11 reorder includes to compile on OpenBSD (Fabian Raetz)
don't use sed's -i option to stay posix compliant

POSIX does not define sed's -i option. To stay as portable
as possible we should not relay on it.
doc: remove specific mention of boost 1.55

There is no need to use any specific version of boost on Linux/Unix.
Even 1.37 should still work.

Also the mention of boost-dev doesn't belong after adding oldstable.
Remove it. libboost-all-dev is already mentioned earlier.
Merge pull request #4120

dbe8f75 don't use sed's -i option to stay posix compliant (Fabian Raetz)
Create (MANDATORY|STANDARD)_SCRIPT_VERIFY_FLAGS constants
Let tx (in)valid tests use any SCRIPT_VERIFY flag

Previously only P2SH could be set.
add DEFAULT_TRANSACTION_FEE constant in wallet

- as this is a shared Core/GUI setting, this makes it easier to keep them
  in sync (also no new includes are needed)
rpc: add `getblockchaininfo` and `getnetworkinfo`

Adds two new info query commands that take over information from
hodge-podge `getinfo`.

Also some new information is added:
- `getblockchaininfo`
  - `chain`: (string) current chain (main, testnet3, regtest)
  - `verificationprogress: (numeric) estimated verification progress
  - `chainwork`
- `getnetworkinfo`
  - `localaddresses`: (array) local addresses, from mapLocalHost (fixes #1734)
Remove NumBlocksOfPeers

Generally useless information. Only updates on connect time, not after
that. Peers can easily lie and the median filter is not effective in
preventing that.

In the past it was used for progress display in the GUI but
`CheckPoints::guessVerificationProgress` provides a better way that is now used.
It was too easy to mislead it. Peers do lie about it in practice, see issue #4065.

From the RPC, `getpeerinfo` gives the peer raw values, which are more
useful.
qt: periodic translations update
[Qt] fix Qt slot problem in receivecoinsdialog

- fixes error from debug.log:
  QMetaObject::connectSlotsByName: No matching signal for
  on_recentRequestsView_selectionChanged(QItemSelection,QItemSelection)
- small style fixes (e.g. alphabetical ordering if includes etc.)
- fixes #3992
Remove dummy PRIszX macros for formatting

Size specifiers are no longer needed now that we use typesafe tinyformat
for string formatting, instead of the system's sprintf.

No functional changes.

This continues the work in #3735.
Merge pull request #4127

d387b8e rpc: add `getblockchaininfo` and `getnetworkinfo` (Wladimir J. van der Laan)
[Qt] ensure payment request network matches client network

- replaces checks in SendCoinsDialog::handlePaymentRequest() that belong
  to PaymentServer (normal URIs are special cased, as only an isValid
  check is done on BTC addresses)
- prevents the client to handle payment requests that do not match the
  clients network and shows an error instead (mainly a problem with
  drag&drop payment requests onto the client window)
- includes some small comment changes also
build: fix make clean on OSX

Rebased-From: 74df0f5
Rebased-By: Wladimir J. van der Laan <laanwj@gmail.com>
ui: Check for !pixmap() before trying to export QR code

Adds null pointer checks as well as prevents the Save/Copy context
menu from appearing at all if no image is shown.

Fixes issue #4140
Add missing cs_main lock to VerifyDB

Fixes issue #4139.