Skip to content

Commit a68bb9f

Browse files
committed
Merge branch 'master' into single_prodname
2 parents 027fdb8 + fd13fe7 commit a68bb9f

File tree

532 files changed

+26116
-7533
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

532 files changed

+26116
-7533
lines changed

.travis.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# - A travis bug causes caches to trample eachother when using the same
33
# compiler key (which we don't use anyway). This is worked around for now by
44
# replacing the "compilers" with a build name prefixed by the no-op ":"
5-
# command. See: https://github.com/travis-ci/casher/issues/6
5+
# command. See: https://github.com/travis-ci/travis-ci/issues/4393
66

77
os: linux
88
language: cpp
@@ -64,6 +64,7 @@ script:
6464
- test -n "$USE_SHELL" && eval '"$USE_SHELL" -c "./autogen.sh"' || ./autogen.sh
6565
- ./configure --cache-file=config.cache $BITCOIN_CONFIG_ALL $BITCOIN_CONFIG || ( cat config.log && false)
6666
- make distdir PACKAGE=bitcoin VERSION=$HOST
67+
- if [ "$RUN_TESTS" = "true" ]; then contrib/devtools/check-doc.py; fi
6768
- cd bitcoin-$HOST
6869
- ./configure --cache-file=../config.cache $BITCOIN_CONFIG_ALL $BITCOIN_CONFIG || ( cat config.log && false)
6970
- make $MAKEJOBS $GOAL || ( echo "Build failure. Verbose build follows." && make $GOAL V=1 ; false )

CONTRIBUTING.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,8 @@ Anyone may participate in peer review which is expressed by comments in the pull
9595
- Concept ACK means "I agree in the general principle of this pull request";
9696
- Nit refers to trivial, often non-blocking issues.
9797

98+
Reviewers should include the commit hash which they reviewed in their comments.
99+
98100
Project maintainers reserve the right to weigh the opinions of peer reviewers using common sense judgement and also may weight based on meritocracy: Those that have demonstrated a deeper commitment and understanding towards the project (over time) or have clear domain expertise may naturally have more weight, as one would expect in all walks of life.
99101

100102
Where a patch set affects consensus critical code, the bar will be set much higher in terms of discussion and peer review requirements, keeping in mind that mistakes could be very costly to the wider community. This includes refactoring of consensus critical code.

COPYING

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
The MIT License (MIT)
22

3-
Copyright (c) 2009-2015 The Bitcoin Core developers
3+
Copyright (c) 2009-2016 The Bitcoin Core developers
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

Makefile.am

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,9 @@ OSX_QT_TRANSLATIONS = da,de,es,hu,ru,uk,zh_CN,zh_TW
3333

3434
DIST_DOCS = $(wildcard doc/*.md) $(wildcard doc/release-notes/*.md)
3535

36+
BIN_CHECKS=$(top_srcdir)/contrib/devtools/symbol-check.py \
37+
$(top_srcdir)/contrib/devtools/security-check.py
38+
3639
WINDOWS_PACKAGING = $(top_srcdir)/share/pixmaps/bitcoin.ico \
3740
$(top_srcdir)/share/pixmaps/nsis-header.bmp \
3841
$(top_srcdir)/share/pixmaps/nsis-wizard.bmp \
@@ -227,7 +230,7 @@ endif
227230

228231
dist_noinst_SCRIPTS = autogen.sh
229232

230-
EXTRA_DIST = $(top_srcdir)/share/genbuild.sh qa/pull-tester/rpc-tests.py qa/rpc-tests $(DIST_DOCS) $(WINDOWS_PACKAGING) $(OSX_PACKAGING)
233+
EXTRA_DIST = $(top_srcdir)/share/genbuild.sh qa/pull-tester/rpc-tests.py qa/rpc-tests $(DIST_DOCS) $(WINDOWS_PACKAGING) $(OSX_PACKAGING) $(BIN_CHECKS)
231234

232235
CLEANFILES = $(OSX_DMG) $(BITCOIN_WIN_INSTALLER)
233236

README.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ Bitcoin Core integration/staging tree
33

44
[![Build Status](https://travis-ci.org/bitcoin/bitcoin.svg?branch=master)](https://travis-ci.org/bitcoin/bitcoin)
55

6-
https://www.bitcoin.org
6+
https://bitcoincore.org
77

88
What is Bitcoin?
99
----------------
@@ -15,13 +15,14 @@ out collectively by the network. Bitcoin Core is the name of open source
1515
software which enables the use of this currency.
1616

1717
For more information, as well as an immediately useable, binary version of
18-
the Bitcoin Core software, see https://www.bitcoin.org/en/download.
18+
the Bitcoin Core software, see https://www.bitcoin.org/en/download, or read the
19+
[original whitepaper](https://bitcoincore.org/bitcoin.pdf).
1920

2021
License
2122
-------
2223

2324
Bitcoin Core is released under the terms of the MIT license. See [COPYING](COPYING) for more
24-
information or see http://opensource.org/licenses/MIT.
25+
information or see https://opensource.org/licenses/MIT.
2526

2627
Development Process
2728
-------------------
@@ -48,7 +49,7 @@ lots of money.
4849

4950
### Automated Testing
5051

51-
Developers are strongly encouraged to write unit tests for new code, and to
52+
Developers are strongly encouraged to write [unit tests](/doc/unit-tests.md) for new code, and to
5253
submit new unit tests for old code. Unit tests can be compiled and run
5354
(assuming they weren't disabled in configure) with: `make check`
5455

configure.ac

Lines changed: 48 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
dnl require autoconf 2.60 (AS_ECHO/AS_ECHO_N)
22
AC_PREREQ([2.60])
33
define(_CLIENT_VERSION_MAJOR, 0)
4-
define(_CLIENT_VERSION_MINOR, 11)
4+
define(_CLIENT_VERSION_MINOR, 12)
55
define(_CLIENT_VERSION_REVISION, 99)
66
define(_CLIENT_VERSION_BUILD, 0)
77
define(_CLIENT_VERSION_IS_RELEASE, false)
8-
define(_COPYRIGHT_YEAR, 2015)
8+
define(_COPYRIGHT_YEAR, 2016)
99
define(_COPYRIGHT_HOLDERS,[The %s developers])
1010
define(_COPYRIGHT_HOLDERS_SUBSTITUTION,[Bitcoin Core])
11-
AC_INIT([Bitcoin Core],[_CLIENT_VERSION_MAJOR._CLIENT_VERSION_MINOR._CLIENT_VERSION_REVISION],[https://github.com/bitcoin/bitcoin/issues],[bitcoin],[http://bitcoin.org/])
11+
AC_INIT([Bitcoin Core],[_CLIENT_VERSION_MAJOR._CLIENT_VERSION_MINOR._CLIENT_VERSION_REVISION],[https://github.com/bitcoin/bitcoin/issues],[bitcoin],[https://bitcoincore.org/])
1212
AC_CONFIG_SRCDIR([src/main.cpp])
1313
AC_CONFIG_HEADERS([src/config/bitcoin-config.h])
1414
AC_CONFIG_AUX_DIR([build-aux])
@@ -66,6 +66,8 @@ AC_PATH_PROG([GIT], [git])
6666
AC_PATH_PROG(CCACHE,ccache)
6767
AC_PATH_PROG(XGETTEXT,xgettext)
6868
AC_PATH_PROG(HEXDUMP,hexdump)
69+
AC_PATH_TOOL(READELF, readelf)
70+
AC_PATH_TOOL(CPPFILT, c++filt)
6971

7072
AC_ARG_VAR(PYTHONPATH, Augments the default search path for python module files)
7173

@@ -416,6 +418,10 @@ AX_GCC_FUNC_ATTRIBUTE([dllimport])
416418

417419
if test x$use_glibc_compat != xno; then
418420

421+
#glibc absorbed clock_gettime in 2.17. librt (its previous location) is safe to link
422+
#in anyway for back-compat.
423+
AC_CHECK_LIB([rt],[clock_gettime],, AC_MSG_ERROR(lib missing))
424+
419425
#__fdelt_chk's params and return type have changed from long unsigned int to long int.
420426
# See which one is present here.
421427
AC_MSG_CHECKING(__fdelt_chk type)
@@ -429,7 +435,8 @@ if test x$use_glibc_compat != xno; then
429435
[ fdelt_type="long int"])
430436
AC_MSG_RESULT($fdelt_type)
431437
AC_DEFINE_UNQUOTED(FDELT_TYPE, $fdelt_type,[parameter and return value type for __fdelt_chk])
432-
438+
else
439+
AC_SEARCH_LIBS([clock_gettime],[rt])
433440
fi
434441

435442
if test x$TARGET_OS != xwindows; then
@@ -496,8 +503,6 @@ AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <sys/socket.h>]],
496503
[ AC_MSG_RESULT(no)]
497504
)
498505

499-
AC_SEARCH_LIBS([clock_gettime],[rt])
500-
501506
AC_MSG_CHECKING([for visibility attribute])
502507
AC_LINK_IFELSE([AC_LANG_SOURCE([
503508
int foo_def( void ) __attribute__((visibility("default")));
@@ -626,6 +631,42 @@ if test x$use_boost = xyes; then
626631

627632
BOOST_LIBS="$BOOST_LDFLAGS $BOOST_SYSTEM_LIB $BOOST_FILESYSTEM_LIB $BOOST_PROGRAM_OPTIONS_LIB $BOOST_THREAD_LIB $BOOST_CHRONO_LIB"
628633

634+
635+
dnl If boost (prior to 1.57) was built without c++11, it emulated scoped enums
636+
dnl using c++98 constructs. Unfortunately, this implementation detail leaked into
637+
dnl the abi. This was fixed in 1.57.
638+
639+
dnl When building against that installed version using c++11, the headers pick up
640+
dnl on the native c++11 scoped enum support and enable it, however it will fail to
641+
dnl link. This can be worked around by disabling c++11 scoped enums if linking will
642+
dnl fail.
643+
dnl BOOST_NO_SCOPED_ENUMS was changed to BOOST_NO_CXX11_SCOPED_ENUMS in 1.51.
644+
645+
TEMP_LIBS="$LIBS"
646+
LIBS="$BOOST_LIBS $LIBS"
647+
TEMP_CPPFLAGS="$CPPFLAGS"
648+
CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
649+
AC_MSG_CHECKING([for mismatched boost c++11 scoped enums])
650+
AC_LINK_IFELSE([AC_LANG_PROGRAM([[
651+
#include "boost/config.hpp"
652+
#include "boost/version.hpp"
653+
#if !defined(BOOST_NO_SCOPED_ENUMS) && !defined(BOOST_NO_CXX11_SCOPED_ENUMS) && BOOST_VERSION < 105700
654+
#define BOOST_NO_SCOPED_ENUMS
655+
#define BOOST_NO_CXX11_SCOPED_ENUMS
656+
#define CHECK
657+
#endif
658+
#include "boost/filesystem.hpp"
659+
]],[[
660+
#if defined(CHECK)
661+
boost::filesystem::copy_file("foo", "bar");
662+
#else
663+
choke;
664+
#endif
665+
]])],
666+
[AC_MSG_RESULT(mismatched); BOOST_CPPFLAGS="$BOOST_CPPFLAGS -DBOOST_NO_SCOPED_ENUMS -DBOOST_NO_CXX11_SCOPED_ENUMS"], [AC_MSG_RESULT(ok)])
667+
LIBS="$TEMP_LIBS"
668+
CPPFLAGS="$TEMP_CPPFLAGS"
669+
629670
dnl Boost >= 1.50 uses sleep_for rather than the now-deprecated sleep, however
630671
dnl it was broken from 1.50 to 1.52 when backed by nanosleep. Use sleep_for if
631672
dnl a working version is available, else fall back to sleep. sleep was removed
@@ -907,6 +948,7 @@ AM_CONDITIONAL([USE_LCOV],[test x$use_lcov = xyes])
907948
AM_CONDITIONAL([USE_COMPARISON_TOOL],[test x$use_comparison_tool != xno])
908949
AM_CONDITIONAL([USE_COMPARISON_TOOL_REORG_TESTS],[test x$use_comparison_tool_reorg_test != xno])
909950
AM_CONDITIONAL([GLIBC_BACK_COMPAT],[test x$use_glibc_compat = xyes])
951+
AM_CONDITIONAL([HARDEN],[test x$use_hardening = xyes])
910952

911953
AC_DEFINE(CLIENT_VERSION_MAJOR, _CLIENT_VERSION_MAJOR, [Major version])
912954
AC_DEFINE(CLIENT_VERSION_MINOR, _CLIENT_VERSION_MINOR, [Minor version])

contrib/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@ Repository Tools
1111

1212
### [Developer tools](/contrib/devtools) ###
1313
Specific tools for developers working on this repository.
14-
Contains the script `github-merge.sh` for merging github pull requests securely and signing them using GPG.
14+
Contains the script `github-merge.py` for merging github pull requests securely and signing them using GPG.
1515

1616
### [Verify-Commits](/contrib/verify-commits) ###
17-
Tool to verify that every merge commit was signed by a developer using the above `github-merge.sh` script.
17+
Tool to verify that every merge commit was signed by a developer using the above `github-merge.py` script.
1818

1919
### [Linearize](/contrib/linearize) ###
2020
Construct a linear, no-fork, best version of the blockchain.

contrib/debian/control

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ Build-Depends: debhelper,
2323
libprotobuf-dev, protobuf-compiler,
2424
python
2525
Standards-Version: 3.9.2
26-
Homepage: https://www.bitcoin.org/
26+
Homepage: https://bitcoincore.org/
2727
Vcs-Git: git://github.com/bitcoin/bitcoin.git
2828
Vcs-Browser: https://github.com/bitcoin/bitcoin
2929

contrib/debian/copyright

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ Upstream-Contact: Satoshi Nakamoto <satoshin@gmx.com>
55
Source: https://github.com/bitcoin/bitcoin
66

77
Files: *
8-
Copyright: 2009-2015, Bitcoin Core Developers
8+
Copyright: 2009-2016, Bitcoin Core Developers
99
License: Expat
1010
Comment: The Bitcoin Core Developers encompasses the current developers listed on bitcoin.org,
1111
as well as the numerous contributors to the project.
@@ -21,6 +21,7 @@ License: GPL-3+
2121

2222
Files: src/qt/res/icons/add.png
2323
src/qt/res/icons/address-book.png
24+
src/qt/res/icons/chevron.png
2425
src/qt/res/icons/configure.png
2526
src/qt/res/icons/debugwindow.png
2627
src/qt/res/icons/edit.png
@@ -56,6 +57,8 @@ Comment: Inspired by Stephan Hutchings Typicons
5657

5758
Files: src/qt/res/icons/tx_mined.png
5859
src/qt/res/src/mine.svg
60+
src/qt/res/icons/fontbigger.png
61+
src/qt/res/icons/fontsmaller.png
5962
Copyright: Jonas Schnelli
6063
License: Expat
6164
Comment:

contrib/debian/manpages/bitcoin-cli.1

Lines changed: 2 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
.TH BITCOIN-CLI "1" "February 2015" "bitcoin-cli 0.10"
1+
.TH BITCOIN-CLI "1" "February 2016" "bitcoin-cli 0.12"
22
.SH NAME
33
bitcoin-cli \- a remote procedure call client for Bitcoin Core.
44
.SH SYNOPSIS
@@ -11,31 +11,7 @@ This manual page documents the bitcoin-cli program. bitcoin-cli is an RPC client
1111
.SH OPTIONS
1212
.TP
1313
\fB\-?\fR
14-
Show the help message.
15-
.TP
16-
\fB\-conf=\fR<file>
17-
Specify configuration file (default: bitcoin.conf).
18-
.TP
19-
\fB\-datadir=\fR<dir>
20-
Specify data directory.
21-
.TP
22-
\fB\-testnet\fR
23-
Connect to a Bitcoin Core instance running in testnet mode.
24-
.TP
25-
\fB\-regtest\fR
26-
Connect to a Bitcoin Core instance running in regtest mode (see documentation for -regtest on bitcoind).
27-
.TP
28-
\fB\-rpcuser=\fR<user>
29-
Username for JSON\-RPC connections.
30-
.TP
31-
\fB\-rpcpassword=\fR<pw>
32-
Password for JSON\-RPC connections.
33-
.TP
34-
\fB\-rpcport=\fR<port>
35-
Listen for JSON\-RPC connections on <port> (default: 8332 or testnet: 18332).
36-
.TP
37-
\fB\-rpcconnect=\fR<ip>
38-
Send commands to node running on <ip> (default: 127.0.0.1).
14+
Show possible options.
3915

4016
.SH "SEE ALSO"
4117
\fBbitcoind\fP, \fBbitcoin.conf\fP

0 commit comments

Comments
 (0)