aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--configure.ac45
-rwxr-xr-xcontrib/devtools/symbol-check.py5
-rw-r--r--contrib/gitian-descriptors/gitian-linux.yml22
-rw-r--r--contrib/gitian-descriptors/qt-linux.yml263
-rw-r--r--doc/bootstrap.md7
-rw-r--r--doc/build-unix.md4
-rw-r--r--doc/release-process.md5
-rw-r--r--src/init.cpp10
-rw-r--r--src/m4/ax_boost_base.m45
-rw-r--r--src/net.cpp12
-rw-r--r--src/netbase.cpp26
-rw-r--r--src/netbase.h4
12 files changed, 301 insertions, 107 deletions
diff --git a/configure.ac b/configure.ac
index 3e508571e9..6a8afe6e44 100644
--- a/configure.ac
+++ b/configure.ac
@@ -62,13 +62,6 @@ AC_ARG_ENABLE([upnp-default],
[use_upnp_default=$enableval],
[use_upnp_default=no])
-dnl enable ipv6 support
-AC_ARG_ENABLE([ipv6],
- [AS_HELP_STRING([--enable-ipv6],
- [enable ipv6 (default is yes)])],
- [use_ipv6=$enableval],
- [use_ipv6=yes])
-
AC_ARG_ENABLE(tests,
AS_HELP_STRING([--enable-tests],[compile tests (default is yes)]),
[use_tests=$enableval],
@@ -560,27 +553,6 @@ AC_MSG_RESULT($build_bitcoin_cli)
dnl sets $bitcoin_enable_qt, $bitcoin_enable_qt_test, $bitcoin_enable_qt_dbus
BITCOIN_QT_CONFIGURE([$use_pkgconfig], [qt4])
-
-if test x$use_ipv6 = xyes; then
- dnl Check for ipv6 build requirements
- AC_MSG_CHECKING(for operating system IPv6 support)
- AC_TRY_LINK([
- #if defined(_WINDOWS)
- #include <winsock2.h>
- #else
- #include <sys/types.h>
- #include <sys/socket.h>
- #include <netinet/in.h>
- #endif
- ],[
- #if !defined(_WINDOWS)
- struct in6_addr ipv6Addr;
- struct sockaddr_in6 addr;
- #endif
- int temp = socket(AF_INET6, SOCK_STREAM, 0);],
- [AC_MSG_RESULT(yes); have_ipv6=yes; AC_DEFINE(HAVE_IPV6, 1, [Define this symbol if you have operating system IPv6 support])],
- [AC_MSG_RESULT(no)]; have_ipv6=no)
-fi
AC_LANG_POP
if test "x$use_ccache" != "xno"; then
@@ -609,22 +581,6 @@ else
AC_MSG_RESULT(no)
fi
-dnl enable ipv6 support
-AC_MSG_CHECKING([whether to build with support for IPv6])
-if test x$have_ipv6 = xno; then
- if test x$use_ipv6 = xyes; then
- AC_MSG_ERROR([IPv6 requested, but cannot be built. use --disable-ipv6])
- fi
- AC_MSG_RESULT(no)
-else
- if test x$use_ipv6 = xyes; then
- AC_MSG_RESULT(yes)
- AC_DEFINE([USE_IPV6],[1],[Define if IPv6 support should be compiled in])
- else
- AC_MSG_RESULT(no)
- fi
-fi
-
dnl enable upnp support
AC_MSG_CHECKING([whether to build with support for UPnP])
if test x$have_miniupnpc = xno; then
@@ -730,7 +686,6 @@ AC_SUBST(COPYRIGHT_YEAR, _COPYRIGHT_YEAR)
AC_SUBST(USE_UPNP)
AC_SUBST(USE_QRCODE)
-AC_SUBST(USE_IPV6)
AC_SUBST(INCLUDES)
AC_SUBST(BOOST_LIBS)
AC_SUBST(TESTDEFS)
diff --git a/contrib/devtools/symbol-check.py b/contrib/devtools/symbol-check.py
index 4f6a18da2d..8dd6d8f037 100755
--- a/contrib/devtools/symbol-check.py
+++ b/contrib/devtools/symbol-check.py
@@ -98,10 +98,15 @@ if __name__ == '__main__':
cppfilt = CPPFilt()
retval = 0
for filename in sys.argv[1:]:
+ # Check imported symbols
for sym,version in read_symbols(filename, True):
if version and not check_version(MAX_VERSIONS, version):
print('%s: symbol %s from unsupported version %s' % (filename, cppfilt(sym), version))
retval = 1
+ # Check exported symbols
+ for sym,version in read_symbols(filename, False):
+ print('%s: export of symbol %s not allowed' % (filename, cppfilt(sym)))
+ retval = 1
exit(retval)
diff --git a/contrib/gitian-descriptors/gitian-linux.yml b/contrib/gitian-descriptors/gitian-linux.yml
index 1747f531ea..692e9b358d 100644
--- a/contrib/gitian-descriptors/gitian-linux.yml
+++ b/contrib/gitian-descriptors/gitian-linux.yml
@@ -7,7 +7,6 @@ architectures:
- "amd64"
packages:
- "g++"
-- "libqt4-dev"
- "git-core"
- "unzip"
- "pkg-config"
@@ -16,6 +15,11 @@ packages:
- "automake"
- "faketime"
- "bsdmainutils"
+- "libqt4-core"
+- "libqt4-gui"
+- "libqt4-dbus"
+- "libqt4-network"
+- "libqt4-test"
reference_datetime: "2013-06-01 00:00:00"
remotes:
- "url": "https://github.com/bitcoin/bitcoin.git"
@@ -25,6 +29,8 @@ files:
- "bitcoin-deps-linux64-gitian-r5.zip"
- "boost-linux32-1.55.0-gitian-r1.zip"
- "boost-linux64-1.55.0-gitian-r1.zip"
+- "qt-linux32-4.6.4-gitian-r1.tar.gz"
+- "qt-linux64-4.6.4-gitian-r1.tar.gz"
script: |
STAGING="$HOME/install"
OPTFLAGS='-O2'
@@ -32,16 +38,28 @@ script: |
TEMPDIR="$HOME/tempdir"
export TZ=UTC
export LIBRARY_PATH="$STAGING/lib"
+ export PATH="$STAGING/bin:$PATH"
mkdir -p ${BINDIR}
#
mkdir -p $STAGING
cd $STAGING
unzip ../build/bitcoin-deps-linux${GBUILD_BITS}-gitian-r5.zip
unzip ../build/boost-linux${GBUILD_BITS}-1.55.0-gitian-r1.zip
+ tar -zxf ../build/qt-linux${GBUILD_BITS}-4.6.4-gitian-r1.tar.gz
cd ../build
+ # Avoid exporting *any* symbols from the executable
+ # This avoids conflicts between the libraries statically linked into bitcoin and any
+ # libraries we may link dynamically (such as Qt and OpenSSL, see issue #4094).
+ # It also avoids start-up overhead to not export any unnecessary symbols.
+ # To do this, build a linker script that marks all symbols as local.
+ LINKER_SCRIPT=$HOME/build/linker_version_script
+ echo '
+ {
+ local: *;
+ };' > $LINKER_SCRIPT
function do_configure {
- ./configure "$@" --enable-upnp-default --prefix=$STAGING --with-protoc-bindir=$STAGING/host/bin --with-boost=$STAGING --disable-maintainer-mode --disable-dependency-tracking PKG_CONFIG_PATH="$STAGING/lib/pkgconfig" CPPFLAGS="-I$STAGING/include ${OPTFLAGS}" LDFLAGS="-L$STAGING/lib ${OPTFLAGS}" CXXFLAGS="-frandom-seed=bitcoin ${OPTFLAGS}" BOOST_CHRONO_EXTRALIBS="-lrt" --enable-glibc-back-compat
+ ./configure "$@" --enable-upnp-default --prefix=$STAGING --with-protoc-bindir=$STAGING/host/bin --with-boost=$STAGING --disable-maintainer-mode --disable-dependency-tracking PKG_CONFIG_PATH="$STAGING/lib/pkgconfig" CPPFLAGS="-I$STAGING/include ${OPTFLAGS}" LDFLAGS="-L$STAGING/lib -Wl,--version-script=$LINKER_SCRIPT ${OPTFLAGS}" CXXFLAGS="-frandom-seed=bitcoin ${OPTFLAGS}" BOOST_CHRONO_EXTRALIBS="-lrt" --enable-glibc-back-compat
}
#
cd bitcoin
diff --git a/contrib/gitian-descriptors/qt-linux.yml b/contrib/gitian-descriptors/qt-linux.yml
new file mode 100644
index 0000000000..1462df3289
--- /dev/null
+++ b/contrib/gitian-descriptors/qt-linux.yml
@@ -0,0 +1,263 @@
+---
+name: "qt-linux"
+suites:
+- "precise"
+architectures:
+- "i386"
+- "amd64"
+packages:
+- "zip"
+- "unzip"
+- "faketime"
+- "unzip"
+- "libxext-dev"
+reference_datetime: "2011-01-30 00:00:00"
+remotes: []
+files:
+- "qt-everywhere-opensource-src-4.6.4.tar.gz"
+script: |
+ export FAKETIME=$REFERENCE_DATETIME
+ export TZ=UTC
+ if [ "$GBUILD_BITS" == "32" ]; then
+ ARCH='i386-linux-gnu'
+ else
+ ARCH='x86_64-linux-gnu'
+ fi
+ # The purpose of this gitian build is not to actually build Qt, but to export
+ # the headers as well as pkgconfig files in a useable format so that we can
+ # pretend to link against an older version. The goal is to link to the
+ # system version of Qt 4.
+ # Also build development tools.
+ INSTALLPREFIX="$HOME/install"
+ # Integrity Check
+ echo "9ad4d46c721b53a429ed5a2eecfd3c239a9ab566562f183f99d3125f1a234250 qt-everywhere-opensource-src-4.6.4.tar.gz" | sha256sum -c
+ # Make install directories
+ mkdir -p $INSTALLPREFIX
+ mkdir -p $INSTALLPREFIX/include
+ PKGCONFIGDIR=$INSTALLPREFIX/lib/pkgconfig
+ mkdir -p $PKGCONFIGDIR
+ #
+ tar xzf qt-everywhere-opensource-src-4.6.4.tar.gz
+ cd qt-everywhere-opensource-src-4.6.4
+ QTBUILDDIR=$(pwd)
+
+ # Need to build 4.6-versioned host utilities as well (lrelease/qrc/lupdate/...)
+ ./configure -prefix $INSTALLPREFIX -confirm-license -release -opensource -no-qt3support -no-multimedia -no-audio-backend -no-phonon -no-phonon-backend -no-declarative -no-script -no-scripttools -no-javascript-jit -no-webkit -no-svg -no-xmlpatterns -no-sql-sqlite -no-nis -no-cups -no-iconv -no-dbus -no-gif -no-libtiff -no-opengl -nomake examples -nomake demos -nomake docs
+ #
+ make $MAKEOPTS -C src/tools install # (rcc, uic, moc)
+ make $MAKEOPTS -C tools/linguist/lrelease install # (lrelease)
+ # install includes and pkgconfig files
+ for DIR in src/corelib src/gui src/testlib src/dbus src/network; do
+ (
+ cd $DIR
+ # extract module (QtCore/QtNetwork/...) from Makefile
+ MODULE=$(grep "QMAKE_TARGET *=" Makefile | cut -d = -f 2 | xargs)
+ # patch makefile so that not everything is build first
+ sed -i 's/first: all/first:/g' Makefile
+ make install_flat_headers install_class_headers install_targ_headers
+ # create and install pkgconfig descriptor
+ make ../../lib/pkgconfig/$MODULE.pc
+ sed -e "s,$QTBUILDDIR,$INSTALLPREFIX,g" ../../lib/pkgconfig/$MODULE.pc > $PKGCONFIGDIR/$MODULE.pc
+ # create links to existing Qt libraries
+ ln -sf /usr/lib/${ARCH}/lib${MODULE}.so.4 ${INSTALLPREFIX}/lib/lib${MODULE}.so
+ )
+ done
+
+ # Write our own configuration header, same as Ubuntu
+ # When we don't do this, the configuration will be without STL support (the QString from/to stdString methods)
+ QCONFIG=$INSTALLPREFIX/include/Qt/qconfig.h
+ echo '
+ /* Qt Edition */
+ #ifndef QT_EDITION
+ # define QT_EDITION QT_EDITION_OPENSOURCE
+ #endif
+ ' > $QCONFIG
+
+ if [ "$GBUILD_BITS" == "32" ]; then
+ echo '
+ /* Machine byte-order */
+ #define Q_BIG_ENDIAN 4321
+ #define Q_LITTLE_ENDIAN 1234
+ #define QT_BUILD_KEY "i386 linux g++-4 full-config"
+ #define QT_BUILD_KEY_COMPAT "i686 Linux g++-4 full-config"
+
+ #ifdef QT_BOOTSTRAPPED
+ #define Q_BYTE_ORDER Q_LITTLE_ENDIAN
+ #else
+ #define Q_BYTE_ORDER Q_LITTLE_ENDIAN
+ #endif
+ /* Machine Architecture */
+ #ifndef QT_BOOTSTRAPPED
+ # define QT_ARCH_I386
+ #else
+ # define QT_ARCH_I386
+ #endif
+ /* Compile time features */
+ #define QT_LARGEFILE_SUPPORT 64
+ #define QT_POINTER_SIZE 4
+ ' >> $QCONFIG
+ else
+ echo '
+ /* Machine byte-order */
+ #define Q_BIG_ENDIAN 4321
+ #define Q_LITTLE_ENDIAN 1234
+ #define QT_BUILD_KEY "x86_64 linux g++-4 full-config"
+ #define QT_BUILD_KEY_COMPAT "x86_64 Linux g++-4 full-config"
+
+ #ifdef QT_BOOTSTRAPPED
+ #define Q_BYTE_ORDER Q_LITTLE_ENDIAN
+ #else
+ #define Q_BYTE_ORDER Q_LITTLE_ENDIAN
+ #endif
+ /* Machine Architecture */
+ #ifndef QT_BOOTSTRAPPED
+ # define QT_ARCH_X86_64
+ #else
+ # define QT_ARCH_X86_64
+ #endif
+ /* Compile time features */
+ #define QT_LARGEFILE_SUPPORT 64
+ #define QT_POINTER_SIZE 8
+ ' >> $QCONFIG
+ fi
+
+ echo '
+ #ifndef QT_BOOTSTRAPPED
+
+ #if defined(QT_NO_EGL) && defined(QT_EGL)
+ # undef QT_NO_EGL
+ #elif !defined(QT_NO_EGL) && !defined(QT_EGL)
+ # define QT_NO_EGL
+ #endif
+
+ #if defined(QT_NO_GSTREAMER) && defined(QT_GSTREAMER)
+ # undef QT_NO_GSTREAMER
+ #elif !defined(QT_NO_GSTREAMER) && !defined(QT_GSTREAMER)
+ # define QT_NO_GSTREAMER
+ #endif
+
+ #if defined(QT_NO_ICD) && defined(QT_ICD)
+ # undef QT_NO_ICD
+ #elif !defined(QT_NO_ICD) && !defined(QT_ICD)
+ # define QT_NO_ICD
+ #endif
+
+ #if defined(QT_NO_IMAGEFORMAT_JPEG) && defined(QT_IMAGEFORMAT_JPEG)
+ # undef QT_NO_IMAGEFORMAT_JPEG
+ #elif !defined(QT_NO_IMAGEFORMAT_JPEG) && !defined(QT_IMAGEFORMAT_JPEG)
+ # define QT_NO_IMAGEFORMAT_JPEG
+ #endif
+
+ #if defined(QT_NO_IMAGEFORMAT_MNG) && defined(QT_IMAGEFORMAT_MNG)
+ # undef QT_NO_IMAGEFORMAT_MNG
+ #elif !defined(QT_NO_IMAGEFORMAT_MNG) && !defined(QT_IMAGEFORMAT_MNG)
+ # define QT_NO_IMAGEFORMAT_MNG
+ #endif
+
+ #if defined(QT_NO_IMAGEFORMAT_TIFF) && defined(QT_IMAGEFORMAT_TIFF)
+ # undef QT_NO_IMAGEFORMAT_TIFF
+ #elif !defined(QT_NO_IMAGEFORMAT_TIFF) && !defined(QT_IMAGEFORMAT_TIFF)
+ # define QT_NO_IMAGEFORMAT_TIFF
+ #endif
+
+ #if defined(QT_NO_MULTIMEDIA) && defined(QT_MULTIMEDIA)
+ # undef QT_NO_MULTIMEDIA
+ #elif !defined(QT_NO_MULTIMEDIA) && !defined(QT_MULTIMEDIA)
+ # define QT_NO_MULTIMEDIA
+ #endif
+
+ #if defined(QT_NO_OPENVG) && defined(QT_OPENVG)
+ # undef QT_NO_OPENVG
+ #elif !defined(QT_NO_OPENVG) && !defined(QT_OPENVG)
+ # define QT_NO_OPENVG
+ #endif
+
+ #if defined(QT_NO_PHONON) && defined(QT_PHONON)
+ # undef QT_NO_PHONON
+ #elif !defined(QT_NO_PHONON) && !defined(QT_PHONON)
+ # define QT_NO_PHONON
+ #endif
+
+ #if defined(QT_NO_PULSEAUDIO) && defined(QT_PULSEAUDIO)
+ # undef QT_NO_PULSEAUDIO
+ #elif !defined(QT_NO_PULSEAUDIO) && !defined(QT_PULSEAUDIO)
+ # define QT_NO_PULSEAUDIO
+ #endif
+
+ #if defined(QT_NO_S60) && defined(QT_S60)
+ # undef QT_NO_S60
+ #elif !defined(QT_NO_S60) && !defined(QT_S60)
+ # define QT_NO_S60
+ #endif
+
+ #if defined(QT_NO_STYLE_S60) && defined(QT_STYLE_S60)
+ # undef QT_NO_STYLE_S60
+ #elif !defined(QT_NO_STYLE_S60) && !defined(QT_STYLE_S60)
+ # define QT_NO_STYLE_S60
+ #endif
+
+ #if defined(QT_NO_SXE) && defined(QT_SXE)
+ # undef QT_NO_SXE
+ #elif !defined(QT_NO_SXE) && !defined(QT_SXE)
+ # define QT_NO_SXE
+ #endif
+
+ #if defined(QT_NO_WEBKIT) && defined(QT_WEBKIT)
+ # undef QT_NO_WEBKIT
+ #elif !defined(QT_NO_WEBKIT) && !defined(QT_WEBKIT)
+ # define QT_NO_WEBKIT
+ #endif
+
+ #if defined(QT_NO_ZLIB) && defined(QT_ZLIB)
+ # undef QT_NO_ZLIB
+ #elif !defined(QT_NO_ZLIB) && !defined(QT_ZLIB)
+ # define QT_NO_ZLIB
+ #endif
+
+ #if defined(QT_RUNTIME_XCURSOR) && defined(QT_NO_RUNTIME_XCURSOR)
+ # undef QT_RUNTIME_XCURSOR
+ #elif !defined(QT_RUNTIME_XCURSOR) && !defined(QT_NO_RUNTIME_XCURSOR)
+ # define QT_RUNTIME_XCURSOR
+ #endif
+
+ #if defined(QT_RUNTIME_XFIXES) && defined(QT_NO_RUNTIME_XFIXES)
+ # undef QT_RUNTIME_XFIXES
+ #elif !defined(QT_RUNTIME_XFIXES) && !defined(QT_NO_RUNTIME_XFIXES)
+ # define QT_RUNTIME_XFIXES
+ #endif
+
+ #if defined(QT_RUNTIME_XINERAMA) && defined(QT_NO_RUNTIME_XINERAMA)
+ # undef QT_RUNTIME_XINERAMA
+ #elif !defined(QT_RUNTIME_XINERAMA) && !defined(QT_NO_RUNTIME_XINERAMA)
+ # define QT_RUNTIME_XINERAMA
+ #endif
+
+ #if defined(QT_RUNTIME_XINPUT) && defined(QT_NO_RUNTIME_XINPUT)
+ # undef QT_RUNTIME_XINPUT
+ #elif !defined(QT_RUNTIME_XINPUT) && !defined(QT_NO_RUNTIME_XINPUT)
+ # define QT_RUNTIME_XINPUT
+ #endif
+
+ #if defined(QT_RUNTIME_XRANDR) && defined(QT_NO_RUNTIME_XRANDR)
+ # undef QT_RUNTIME_XRANDR
+ #elif !defined(QT_RUNTIME_XRANDR) && !defined(QT_NO_RUNTIME_XRANDR)
+ # define QT_RUNTIME_XRANDR
+ #endif
+
+ #if defined(QT_USE_MATH_H_FLOATS) && defined(QT_NO_USE_MATH_H_FLOATS)
+ # undef QT_USE_MATH_H_FLOATS
+ #elif !defined(QT_USE_MATH_H_FLOATS) && !defined(QT_NO_USE_MATH_H_FLOATS)
+ # define QT_USE_MATH_H_FLOATS
+ #endif
+
+ #endif // QT_BOOTSTRAPPED
+
+ #define QT_VISIBILITY_AVAILABLE
+ ' >> $QCONFIG
+ cp $QCONFIG $INSTALLPREFIX/include/QtCore/qconfig.h
+
+ cd $INSTALLPREFIX
+ # as zip stores file timestamps, use faketime to intercept stat calls to set dates for all files to reference date
+ export LD_PRELOAD=/usr/lib/faketime/libfaketime.so.1
+ # Create a .tar.gz because .zip has problems with symbolic links
+ find | sort | tar --no-recursion -cT /dev/stdin --mode='u+rw,go+r-w,a+X' --owner=0 --group=0 --mtime="$REFERENCE_DATETIME" | gzip -n > $OUTDIR/qt-linux${GBUILD_BITS}-4.6.4-gitian-r1.tar.gz
diff --git a/doc/bootstrap.md b/doc/bootstrap.md
index fefd33831a..685b768f8b 100644
--- a/doc/bootstrap.md
+++ b/doc/bootstrap.md
@@ -1,6 +1,6 @@
### Bootstrap the Blockchain Synchronization
-Normally the Bitcoin client will download the transaction and network information, called the blockchain, from network by syncing with the other clients. This can be a process that can take multiple days as the [Bitcoin block chain](https://blockchain.info/charts/blocks-size) has grown to more than 15 gigabytes, and is growing almost a gigabyte every month. Luckily there is a safe and fast way to speed up this process. We’ll show you how to bootstrap your blockchain to bring your client up to speed in just a few simple steps.
+Normally the Bitcoin client will download the transaction and network information, called the blockchain, from the network by syncing with the other clients. This can be a process that can take multiple days as the [Bitcoin block chain](https://blockchain.info/charts/blocks-size) has grown to more than 15 gigabytes, and is growing almost a gigabyte every month. Luckily there is a safe and fast way to speed up this process. We’ll show you how to bootstrap your blockchain to bring your client up to speed in just a few simple steps.
### Requirements
@@ -8,7 +8,7 @@ A fresh install of the Bitcoin client software.
### Download the blockchain via Bittorent
-Jeff Garzik, Bitcoin core developer, offers an [torrent file](https://bitcointalk.org/index.php?topic=145386.0) for bootstrapping purposes that is updated often. Bittorrent is a protocol that speeds up the downloading of large files by using the other clients in the network. Example free and safe open-source clients are [Deluge](http://deluge-torrent.org/) or [QBittorent](http://www.qbittorrent.org/). A guide to installing and configuring the torrent clients can be found [here](http://dev.deluge-torrent.org/wiki/UserGuide) for Deluge and [here](http://qbforums.shiki.hu/) for QBittorent. A further in-depth tutorial on Bittorent can be found [here](http://www.howtogeek.com/howto/31846/bittorrent-for-beginners-how-get-started-downloading-torrents/).
+Jeff Garzik, Bitcoin core developer, offers an [torrent file](https://bitcointalk.org/index.php?topic=145386.0) for bootstrapping purposes that is updated often. Bittorrent is a protocol that speeds up the downloading of large files by using the other clients in the network. Examples of free and safe open-source clients are [Deluge](http://deluge-torrent.org/) or [QBittorent](http://www.qbittorrent.org/). A guide to installing and configuring the torrent clients can be found [here](http://dev.deluge-torrent.org/wiki/UserGuide) for Deluge and [here](http://qbforums.shiki.hu/) for QBittorent. A further in-depth tutorial on Bittorent can be found [here](http://www.howtogeek.com/howto/31846/bittorrent-for-beginners-how-get-started-downloading-torrents/).
With the client installed we’ll proceed to download the blockchain torrent file. Use the following magnet link:
@@ -35,7 +35,7 @@ The download page should look like this, with a countdown to the download. If it
![Fig3](img/bootstrap3.png)
### Importing the blockchain
-Exit the Bitcoin Client software if you have it running. Be sure not to have an actively used wallet in use. Now we are going to copy the download of the blockchain to the Bitcoin client data directory. You should run the client software at least once so it can generate the data directory. Copy the downloaded bootstrap.dat file into the Bitcoin data folder.
+Exit the Bitcoin Client software if you have it running. Be sure not to have an actively used wallet in use. We are going to copy the download of the blockchain to the Bitcoin client data directory. You should run the client software at least once so it can generate the data directory. Copy the downloaded bootstrap.dat file into the Bitcoin data folder.
**For Windows users:**
Open explorer, and type into the address bar:
@@ -58,6 +58,7 @@ The directory is hidden in your User folder. Go to:
### Importing the blockchain
Now start the Bitcoin client software. It should show "Importing blocks from disk" like the image below.
![Fig5](img/bootstrap5.png)
+
Wait until the import finishes. The client will download the last days not covered by the import. Congratulations you have successfully imported the blockchain!
### Is this safe?
diff --git a/doc/build-unix.md b/doc/build-unix.md
index 498bfa1e0f..f990b69c84 100644
--- a/doc/build-unix.md
+++ b/doc/build-unix.md
@@ -32,10 +32,6 @@ turned off by default. See the configure options for upnp behavior desired:
--disable-upnp-default (the default) UPnP support turned off by default at runtime
--enable-upnp-default UPnP support turned on by default at runtime
-IPv6 support may be disabled by setting:
-
- --disable-ipv6 Disable IPv6 support
-
Licenses of statically linked libraries:
Berkeley DB New BSD license with additional requirement that linked
software must be free open source
diff --git a/doc/release-process.md b/doc/release-process.md
index cd60684f42..b93c163748 100644
--- a/doc/release-process.md
+++ b/doc/release-process.md
@@ -47,12 +47,15 @@ Release Process
wget 'https://svn.boost.org/trac/boost/raw-attachment/ticket/7262/boost-mingw.patch' -O \
boost-mingw-gas-cross-compile-2013-03-03.patch
wget 'https://download.qt-project.org/official_releases/qt/5.2/5.2.0/single/qt-everywhere-opensource-src-5.2.0.tar.gz'
+ wget 'https://download.qt-project.org/archive/qt/4.6/qt-everywhere-opensource-src-4.6.4.tar.gz'
wget 'https://protobuf.googlecode.com/files/protobuf-2.5.0.tar.bz2'
cd ..
./bin/gbuild ../bitcoin/contrib/gitian-descriptors/boost-linux.yml
mv build/out/boost-*.zip inputs/
./bin/gbuild ../bitcoin/contrib/gitian-descriptors/deps-linux.yml
mv build/out/bitcoin-deps-*.zip inputs/
+ ./bin/gbuild ../bitcoin/contrib/gitian-descriptors/qt-linux.yml
+ mv build/out/qt-*.tar.gz inputs/
./bin/gbuild ../bitcoin/contrib/gitian-descriptors/boost-win.yml
mv build/out/boost-*.zip inputs/
./bin/gbuild ../bitcoin/contrib/gitian-descriptors/deps-win.yml
@@ -68,6 +71,8 @@ Release Process
571789867d172500fa96d63d0ba8c5b1e1a3d6f44f720eddf2f93665affc88b3 bitcoin-deps-linux64-gitian-r5.zip
f29b7d9577417333fb56e023c2977f5726a7c297f320b175a4108cf7cd4c2d29 boost-linux32-1.55.0-gitian-r1.zip
88232451c4104f7eb16e469ac6474fd1231bd485687253f7b2bdf46c0781d535 boost-linux64-1.55.0-gitian-r1.zip
+ 74ec2d301cf1a9d03b194153f545102ba45dad02b390485212fe6717de486361 qt-linux32-4.6.4-gitian-r1.tar.gz
+ 01d0477e299467f09280f15424781154e2b1ea4072c5edb16e044c234954fd9a qt-linux64-4.6.4-gitian-r1.tar.gz
60dc2d3b61e9c7d5dbe2f90d5955772ad748a47918ff2d8b74e8db9b1b91c909 boost-win32-1.55.0-gitian-r6.zip
f65fcaf346bc7b73bc8db3a8614f4f6bee2f61fcbe495e9881133a7c2612a167 boost-win64-1.55.0-gitian-r6.zip
97e62002d338885336bb24e7cbb9471491294bd8857af7a83d18c0961f864ec0 bitcoin-deps-win32-gitian-r11.zip
diff --git a/src/init.cpp b/src/init.cpp
index 6e6e4beed9..c33a3f8f55 100644
--- a/src/init.cpp
+++ b/src/init.cpp
@@ -689,12 +689,6 @@ bool AppInit2(boost::thread_group& threadGroup)
SetLimited(net);
}
}
-#if defined(USE_IPV6)
-#if ! USE_IPV6
- else
- SetLimited(NET_IPV6);
-#endif
-#endif
CService addrProxy;
bool fProxy = false;
@@ -706,10 +700,8 @@ bool AppInit2(boost::thread_group& threadGroup)
if (!IsLimited(NET_IPV4))
SetProxy(NET_IPV4, addrProxy, nSocksVersion);
if (nSocksVersion > 4) {
-#ifdef USE_IPV6
if (!IsLimited(NET_IPV6))
SetProxy(NET_IPV6, addrProxy, nSocksVersion);
-#endif
SetNameProxy(addrProxy, nSocksVersion);
}
fProxy = true;
@@ -751,9 +743,7 @@ bool AppInit2(boost::thread_group& threadGroup)
else {
struct in_addr inaddr_any;
inaddr_any.s_addr = INADDR_ANY;
-#ifdef USE_IPV6
fBound |= Bind(CService(in6addr_any, GetListenPort()), BF_NONE);
-#endif
fBound |= Bind(CService(inaddr_any, GetListenPort()), !fBound ? BF_REPORT_ERROR : BF_NONE);
}
if (!fBound)
diff --git a/src/m4/ax_boost_base.m4 b/src/m4/ax_boost_base.m4
index 4f93a0e094..e025a7e1ca 100644
--- a/src/m4/ax_boost_base.m4
+++ b/src/m4/ax_boost_base.m4
@@ -92,7 +92,10 @@ if test "x$want_boost" = "xyes"; then
libsubdirs="lib"
ax_arch=`uname -m`
case $ax_arch in
- x86_64|ppc64|s390x|sparc64|aarch64)
+ x86_64)
+ libsubdirs="lib64 libx32 lib lib64"
+ ;;
+ ppc64|s390x|sparc64|aarch64)
libsubdirs="lib64 lib lib64"
;;
esac
diff --git a/src/net.cpp b/src/net.cpp
index a0208c9605..a73ff73ebd 100644
--- a/src/net.cpp
+++ b/src/net.cpp
@@ -917,11 +917,7 @@ void ThreadSocketHandler()
BOOST_FOREACH(SOCKET hListenSocket, vhListenSocket)
if (hListenSocket != INVALID_SOCKET && FD_ISSET(hListenSocket, &fdsetRecv))
{
-#ifdef USE_IPV6
struct sockaddr_storage sockaddr;
-#else
- struct sockaddr sockaddr;
-#endif
socklen_t len = sizeof(sockaddr);
SOCKET hSocket = accept(hListenSocket, (struct sockaddr*)&sockaddr, &len);
CAddress addr;
@@ -1582,11 +1578,7 @@ bool BindListenPort(const CService &addrBind, string& strError)
int nOne = 1;
// Create socket for listening for incoming connections
-#ifdef USE_IPV6
struct sockaddr_storage sockaddr;
-#else
- struct sockaddr sockaddr;
-#endif
socklen_t len = sizeof(sockaddr);
if (!addrBind.GetSockAddr((struct sockaddr*)&sockaddr, &len))
{
@@ -1627,7 +1619,6 @@ bool BindListenPort(const CService &addrBind, string& strError)
return false;
}
-#ifdef USE_IPV6
// some systems don't have IPV6_V6ONLY but are always v6only; others do have the option
// and enable it by default or not. Try to enable it, if possible.
if (addrBind.IsIPv6()) {
@@ -1645,7 +1636,6 @@ bool BindListenPort(const CService &addrBind, string& strError)
setsockopt(hListenSocket, IPPROTO_IPV6, nParameterId, (const char*)&nProtLevel, sizeof(int));
#endif
}
-#endif
if (::bind(hListenSocket, (struct sockaddr*)&sockaddr, len) == SOCKET_ERROR)
{
@@ -1712,7 +1702,6 @@ void static Discover(boost::thread_group& threadGroup)
if (AddLocal(addr, LOCAL_IF))
LogPrintf("IPv4 %s: %s\n", ifa->ifa_name, addr.ToString());
}
-#ifdef USE_IPV6
else if (ifa->ifa_addr->sa_family == AF_INET6)
{
struct sockaddr_in6* s6 = (struct sockaddr_in6*)(ifa->ifa_addr);
@@ -1720,7 +1709,6 @@ void static Discover(boost::thread_group& threadGroup)
if (AddLocal(addr, LOCAL_IF))
LogPrintf("IPv6 %s: %s\n", ifa->ifa_name, addr.ToString());
}
-#endif
}
freeifaddrs(myaddrs);
}
diff --git a/src/netbase.cpp b/src/netbase.cpp
index 2b300e5dd3..ec275f738c 100644
--- a/src/netbase.cpp
+++ b/src/netbase.cpp
@@ -78,11 +78,7 @@ bool static LookupIntern(const char *pszName, std::vector<CNetAddr>& vIP, unsign
aiHint.ai_socktype = SOCK_STREAM;
aiHint.ai_protocol = IPPROTO_TCP;
-#ifdef USE_IPV6
aiHint.ai_family = AF_UNSPEC;
-#else
- aiHint.ai_family = AF_INET;
-#endif
#ifdef WIN32
aiHint.ai_flags = fAllowLookup ? 0 : AI_NUMERICHOST;
#else
@@ -102,13 +98,11 @@ bool static LookupIntern(const char *pszName, std::vector<CNetAddr>& vIP, unsign
vIP.push_back(CNetAddr(((struct sockaddr_in*)(aiTrav->ai_addr))->sin_addr));
}
-#ifdef USE_IPV6
if (aiTrav->ai_family == AF_INET6)
{
assert(aiTrav->ai_addrlen >= sizeof(sockaddr_in6));
vIP.push_back(CNetAddr(((struct sockaddr_in6*)(aiTrav->ai_addr))->sin6_addr));
}
-#endif
aiTrav = aiTrav->ai_next;
}
@@ -321,11 +315,7 @@ bool static ConnectSocketDirectly(const CService &addrConnect, SOCKET& hSocketRe
{
hSocketRet = INVALID_SOCKET;
-#ifdef USE_IPV6
struct sockaddr_storage sockaddr;
-#else
- struct sockaddr sockaddr;
-#endif
socklen_t len = sizeof(sockaddr);
if (!addrConnect.GetSockAddr((struct sockaddr*)&sockaddr, &len)) {
LogPrintf("Cannot connect to %s: unsupported network\n", addrConnect.ToString());
@@ -585,12 +575,10 @@ CNetAddr::CNetAddr(const struct in_addr& ipv4Addr)
memcpy(ip+12, &ipv4Addr, 4);
}
-#ifdef USE_IPV6
CNetAddr::CNetAddr(const struct in6_addr& ipv6Addr)
{
memcpy(ip, &ipv6Addr, 16);
}
-#endif
CNetAddr::CNetAddr(const char *pszIp, bool fAllowLookup)
{
@@ -764,11 +752,7 @@ std::string CNetAddr::ToStringIP() const
if (IsTor())
return EncodeBase32(&ip[6], 10) + ".onion";
CService serv(*this, 0);
-#ifdef USE_IPV6
struct sockaddr_storage sockaddr;
-#else
- struct sockaddr sockaddr;
-#endif
socklen_t socklen = sizeof(sockaddr);
if (serv.GetSockAddr((struct sockaddr*)&sockaddr, &socklen)) {
char name[1025] = "";
@@ -813,13 +797,11 @@ bool CNetAddr::GetInAddr(struct in_addr* pipv4Addr) const
return true;
}
-#ifdef USE_IPV6
bool CNetAddr::GetIn6Addr(struct in6_addr* pipv6Addr) const
{
memcpy(pipv6Addr, ip, 16);
return true;
}
-#endif
// get canonical identifier of an address' group
// no two connections will be attempted to addresses with the same group
@@ -993,23 +975,19 @@ CService::CService(const struct in_addr& ipv4Addr, unsigned short portIn) : CNet
{
}
-#ifdef USE_IPV6
CService::CService(const struct in6_addr& ipv6Addr, unsigned short portIn) : CNetAddr(ipv6Addr), port(portIn)
{
}
-#endif
CService::CService(const struct sockaddr_in& addr) : CNetAddr(addr.sin_addr), port(ntohs(addr.sin_port))
{
assert(addr.sin_family == AF_INET);
}
-#ifdef USE_IPV6
CService::CService(const struct sockaddr_in6 &addr) : CNetAddr(addr.sin6_addr), port(ntohs(addr.sin6_port))
{
assert(addr.sin6_family == AF_INET6);
}
-#endif
bool CService::SetSockAddr(const struct sockaddr *paddr)
{
@@ -1017,11 +995,9 @@ bool CService::SetSockAddr(const struct sockaddr *paddr)
case AF_INET:
*this = CService(*(const struct sockaddr_in*)paddr);
return true;
-#ifdef USE_IPV6
case AF_INET6:
*this = CService(*(const struct sockaddr_in6*)paddr);
return true;
-#endif
default:
return false;
}
@@ -1093,7 +1069,6 @@ bool CService::GetSockAddr(struct sockaddr* paddr, socklen_t *addrlen) const
paddrin->sin_port = htons(port);
return true;
}
-#ifdef USE_IPV6
if (IsIPv6()) {
if (*addrlen < (socklen_t)sizeof(struct sockaddr_in6))
return false;
@@ -1106,7 +1081,6 @@ bool CService::GetSockAddr(struct sockaddr* paddr, socklen_t *addrlen) const
paddrin6->sin6_port = htons(port);
return true;
}
-#endif
return false;
}
diff --git a/src/netbase.h b/src/netbase.h
index af40aee94b..95b1795767 100644
--- a/src/netbase.h
+++ b/src/netbase.h
@@ -77,10 +77,8 @@ class CNetAddr
int GetReachabilityFrom(const CNetAddr *paddrPartner = NULL) const;
void print() const;
-#ifdef USE_IPV6
CNetAddr(const struct in6_addr& pipv6Addr);
bool GetIn6Addr(struct in6_addr* pipv6Addr) const;
-#endif
friend bool operator==(const CNetAddr& a, const CNetAddr& b);
friend bool operator!=(const CNetAddr& a, const CNetAddr& b);
@@ -121,10 +119,8 @@ class CService : public CNetAddr
std::string ToStringIPPort() const;
void print() const;
-#ifdef USE_IPV6
CService(const struct in6_addr& ipv6Addr, unsigned short port);
CService(const struct sockaddr_in6& addr);
-#endif
IMPLEMENT_SERIALIZE
(