Skip to content

Commit a16eea7

Browse files
authored
Merge pull request #32 from stakecube/upstream-update-3
[Core] Minor Upstream Updates
2 parents 86dd127 + 7da6732 commit a16eea7

Some content is hidden

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

71 files changed

+865
-2649
lines changed

.cirrus.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ task:
1616
ccache_cache:
1717
folder: "/tmp/ccache_dir"
1818
install_script:
19-
- pkg install -y autoconf automake boost-libs git gmake libevent libtool openssl pkgconf python3 ccache
19+
- pkg install -y autoconf automake boost-libs git gmake libevent libtool pkgconf python3 ccache
2020
- ./contrib/install_db4.sh $(pwd)
2121
- ccache --max-size=${CCACHE_SIZE}
2222
configure_script:

.gitignore

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,4 +160,7 @@ osx_volname
160160
dist/
161161
*.background.tiff
162162

163-
/guix-build-*
163+
/guix-build-*
164+
165+
# vscode
166+
.vscode/

.vscode/settings.json

Lines changed: 0 additions & 113 deletions
This file was deleted.

ci/scc/matrix.sh

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,13 +53,12 @@ elif [ "$BUILD_TARGET" = "win64" ]; then
5353
export DIRECT_WINE_EXEC_TESTS=true
5454
elif [ "$BUILD_TARGET" = "linux32" ]; then
5555
export HOST=i686-pc-linux-gnu
56-
export DEP_OPTS="NO_PROTOBUF=1"
57-
export BITCOIN_CONFIG="--enable-zmq --disable-bip70 --enable-reduce-exports --enable-crash-hooks"
56+
export BITCOIN_CONFIG="--enable-zmq --enable-reduce-exports --enable-crash-hooks"
5857
export USE_SHELL="/bin/scc"
5958
export PYZMQ=true
6059
elif [ "$BUILD_TARGET" = "linux32_ubsan" ]; then
6160
export HOST=i686-pc-linux-gnu
62-
export BITCOIN_CONFIG="--enable-zmq --disable-bip70 --enable-reduce-exports --enable-crash-hooks --with-sanitizers=undefined"
61+
export BITCOIN_CONFIG="--enable-zmq --enable-reduce-exports --enable-crash-hooks --with-sanitizers=undefined"
6362
export USE_SHELL="/bin/scc"
6463
export PYZMQ=true
6564
elif [ "$BUILD_TARGET" = "linux64" ]; then

configure.ac

Lines changed: 15 additions & 89 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ AC_PREREQ([2.69])
22
define(_CLIENT_VERSION_MAJOR, 3)
33
define(_CLIENT_VERSION_MINOR, 4)
44
define(_CLIENT_VERSION_REVISION, 0)
5-
define(_CLIENT_VERSION_BUILD, 1)
5+
define(_CLIENT_VERSION_BUILD, 4)
66
define(_CLIENT_VERSION_RC, 0)
7-
define(_CLIENT_VERSION_IS_RELEASE, true)
7+
define(_CLIENT_VERSION_IS_RELEASE, false)
88
define(_COPYRIGHT_YEAR, 2023)
99
define(_COPYRIGHT_HOLDERS,[The %s developers])
1010
define(_COPYRIGHT_HOLDERS_SUBSTITUTION,[[SCC Core]])
@@ -246,25 +246,11 @@ AC_ARG_WITH([system-univalue],
246246
[system_univalue=$withval],
247247
[system_univalue=no]
248248
)
249-
250-
AC_ARG_WITH([openssl],
251-
[AS_HELP_STRING([--with-openssl],
252-
[enable openssl (default is yes if OpenSSL is found)])],
253-
[use_openssl=$withval],
254-
[use_openssl=yes])
255-
256249
AC_ARG_ENABLE([zmq],
257250
[AS_HELP_STRING([--disable-zmq],
258251
[disable ZMQ notifications])],
259252
[use_zmq=$enableval],
260253
[use_zmq=yes])
261-
AC_ARG_ENABLE([bip70],
262-
[AS_HELP_STRING([--disable-bip70],
263-
[disable BIP70 (payment protocol) support in GUI (enabled by default)])],
264-
[enable_bip70=$enableval],
265-
[enable_bip70=auto])
266-
267-
AC_ARG_WITH([protoc-bindir],[AS_HELP_STRING([--with-protoc-bindir=BIN_DIR],[specify protoc bin path])], [protoc_bin_path=$withval], [])
268254

269255
AC_ARG_ENABLE(man,
270256
[AS_HELP_STRING([--disable-man],
@@ -692,16 +678,8 @@ case $host in
692678
dnl Homebrew where each one is located, then adjust paths accordingly.
693679
dnl It's safe to add these paths even if the functionality is disabled by
694680
dnl the user (--without-wallet or --without-gui for example).
695-
696681
bdb_prefix=`$BREW --prefix berkeley-db4 2>/dev/null`
697682
qt5_prefix=`$BREW --prefix qt5 2>/dev/null`
698-
if test x$use_openssl != xno; then
699-
openssl_prefix=`$BREW --prefix openssl 2>/dev/null`
700-
if test x$openssl_prefix != x; then
701-
PKG_CONFIG_PATH="$openssl_prefix/lib/pkgconfig:$PKG_CONFIG_PATH"
702-
export PKG_CONFIG_PATH
703-
fi
704-
fi
705683
if test x$bdb_prefix != x; then
706684
CPPFLAGS="$CPPFLAGS -I$bdb_prefix/include"
707685
LIBS="$LIBS -L$bdb_prefix/lib"
@@ -929,7 +907,7 @@ if test x$TARGET_OS = xdarwin; then
929907
AX_CHECK_LINK_FLAG([[-Wl,-bind_at_load]], [HARDENED_LDFLAGS="$HARDENED_LDFLAGS -Wl,-bind_at_load"])
930908
fi
931909

932-
AC_CHECK_HEADERS([endian.h sys/endian.h byteswap.h stdio.h stdlib.h unistd.h strings.h sys/types.h sys/stat.h sys/select.h sys/prctl.h])
910+
AC_CHECK_HEADERS([endian.h sys/endian.h byteswap.h stdio.h stdlib.h unistd.h strings.h sys/types.h sys/stat.h sys/select.h sys/prctl.h sys/sysctl.h vm/vm_param.h sys/vmmeter.h sys/resources.h])
933911

934912
# FD_ZERO may be dependent on a declaration of memcpy, e.g. in SmartOS
935913
# check that it fails to build without memcpy, then that it builds with
@@ -1105,6 +1083,18 @@ AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <unistd.h>
11051083
[ AC_MSG_RESULT(no)]
11061084
)
11071085

1086+
AC_MSG_CHECKING(for sysctl)
1087+
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <sys/types.h>
1088+
#include <sys/sysctl.h>]],
1089+
[[ static const int name[2] = {CTL_KERN, KERN_VERSION};
1090+
#ifdef __linux__
1091+
#error "Don't use sysctl on Linux, it's deprecated even when it works"
1092+
#endif
1093+
sysctl(name, 2, nullptr, nullptr, nullptr, 0); ]])],
1094+
[ AC_MSG_RESULT(yes); AC_DEFINE(HAVE_SYSCTL, 1,[Define this symbol if the BSD sysctl() is available]) ],
1095+
[ AC_MSG_RESULT(no)]
1096+
)
1097+
11081098
AC_MSG_CHECKING(for sysctl KERN_ARND)
11091099
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <sys/types.h>
11101100
#include <sys/sysctl.h>]],
@@ -1239,7 +1229,6 @@ if test "x$enable_fuzz" = "xyes"; then
12391229
bitcoin_enable_qt_dbus=no
12401230
enable_wallet=no
12411231
use_bench=no
1242-
use_openssl=no
12431232
use_upnp=no
12441233
use_natpmp=no
12451234
use_zmq=no
@@ -1435,13 +1424,6 @@ if test x$use_pkgconfig = xyes; then
14351424
m4_ifdef(
14361425
[PKG_CHECK_MODULES],
14371426
[
1438-
if test x$use_openssl != xno; then
1439-
PKG_CHECK_MODULES([SSL], [libssl],, [use_openssl=no])
1440-
PKG_CHECK_MODULES([CRYPTO], [libcrypto],, [use_openssl=no])
1441-
fi
1442-
if test x$enable_bip70 != xno; then
1443-
BITCOIN_QT_CHECK([PKG_CHECK_MODULES([PROTOBUF], [protobuf], [have_protobuf=yes], [have_protobuf=no])])
1444-
fi
14451427
if test x$use_qr != xno; then
14461428
BITCOIN_QT_CHECK([PKG_CHECK_MODULES([QR], [libqrencode], [have_qrencode=yes], [have_qrencode=no])])
14471429
fi
@@ -1464,13 +1446,6 @@ if test x$use_pkgconfig = xyes; then
14641446
]
14651447
)
14661448
else
1467-
if test x$use_openssl != xno; then
1468-
AC_CHECK_HEADER([openssl/crypto.h],,[use_openssl=no])
1469-
AC_CHECK_LIB([crypto], [main],CRYPTO_LIBS=-lcrypto, [use_openssl=no])
1470-
1471-
AC_CHECK_HEADER([openssl/ssl.h],, [use_openssl=no])
1472-
AC_CHECK_LIB([ssl], [main],SSL_LIBS=-lssl, [use_openssl=no])
1473-
fi
14741449

14751450
if test x$build_bitcoin_cli$build_bitcoind$bitcoin_enable_qt$use_tests != xnononono; then
14761451
AC_CHECK_HEADER([event2/event.h],, AC_MSG_ERROR(libevent headers missing),)
@@ -1503,22 +1478,12 @@ else
15031478
esac
15041479
fi
15051480

1506-
if test x$enable_bip70 != xno; then
1507-
BITCOIN_QT_CHECK(AC_CHECK_LIB([protobuf] ,[main],[PROTOBUF_LIBS=-lprotobuf], [have_protobuf=no]))
1508-
fi
15091481
if test x$use_qr != xno; then
15101482
BITCOIN_QT_CHECK([AC_CHECK_LIB([qrencode], [main],[QR_LIBS=-lqrencode], [have_qrencode=no])])
15111483
BITCOIN_QT_CHECK([AC_CHECK_HEADER([qrencode.h],, have_qrencode=no)])
15121484
fi
15131485
fi
15141486

1515-
save_CXXFLAGS="${CXXFLAGS}"
1516-
CXXFLAGS="${CXXFLAGS} ${CRYPTO_CFLAGS} ${SSL_CFLAGS}"
1517-
AC_CHECK_DECLS([EVP_MD_CTX_new],,,[AC_INCLUDES_DEFAULT
1518-
#include <openssl/x509_vfy.h>
1519-
])
1520-
CXXFLAGS="${save_CXXFLAGS}"
1521-
15221487
dnl univalue check
15231488

15241489
need_bundled_univalue=yes
@@ -1574,12 +1539,6 @@ AM_CONDITIONAL([EMBEDDED_UNIVALUE],[test x$need_bundled_univalue = xyes])
15741539
AC_SUBST(UNIVALUE_CFLAGS)
15751540
AC_SUBST(UNIVALUE_LIBS)
15761541

1577-
1578-
if test x$have_protobuf != xno &&
1579-
test x$enable_bip70 != xno; then
1580-
BITCOIN_QT_PATH_PROGS([PROTOC], [protoc],$protoc_bin_path)
1581-
fi
1582-
15831542
AC_MSG_CHECKING([whether to build sccd])
15841543
AM_CONDITIONAL([BUILD_BITCOIND], [test x$build_bitcoind = xyes])
15851544
AC_MSG_RESULT($build_bitcoind)
@@ -1728,33 +1687,6 @@ if test x$bitcoin_enable_qt != xno; then
17281687
else
17291688
AC_MSG_RESULT([no])
17301689
fi
1731-
1732-
AC_MSG_CHECKING([whether to build BIP70 support])
1733-
if test x$have_protobuf = xno; then
1734-
if test x$enable_bip70 = xyes; then
1735-
AC_MSG_ERROR(protobuf missing)
1736-
fi
1737-
enable_bip70=no
1738-
AC_MSG_RESULT(no)
1739-
elif test x$use_openssl = xno; then
1740-
if test x$enable_bip70 = xyes; then
1741-
AC_MSG_ERROR(OpenSSL missing)
1742-
fi
1743-
enable_bip70=no
1744-
AC_MSG_RESULT(no)
1745-
else
1746-
if test x$enable_bip70 != xno; then
1747-
AC_DEFINE([ENABLE_BIP70],[1],[Define if BIP70 support should be compiled in])
1748-
enable_bip70=yes
1749-
AC_MSG_RESULT([yes])
1750-
else
1751-
AC_MSG_RESULT([no])
1752-
fi
1753-
fi
1754-
fi
1755-
1756-
if test x$use_openssl = xyes; then
1757-
AC_DEFINE([USE_OPENSSL],[1],[Define to 1 to use OpenSSL])
17581690
fi
17591691

17601692
AM_CONDITIONAL([ENABLE_ZMQ], [test "x$use_zmq" = "xyes"])
@@ -1799,7 +1731,6 @@ AM_CONDITIONAL([ENABLE_TESTS],[test x$BUILD_TEST = xyes])
17991731
AM_CONDITIONAL([ENABLE_FUZZ],[test x$enable_fuzz = xyes])
18001732
AM_CONDITIONAL([ENABLE_QT],[test x$bitcoin_enable_qt = xyes])
18011733
AM_CONDITIONAL([ENABLE_QT_TESTS],[test x$BUILD_TEST_QT = xyes])
1802-
AM_CONDITIONAL([ENABLE_BIP70],[test x$enable_bip70 = xyes])
18031734
AM_CONDITIONAL([ENABLE_BENCH],[test x$use_bench = xyes])
18041735
AM_CONDITIONAL([USE_QRCODE], [test x$use_qr = xyes])
18051736
AM_CONDITIONAL([USE_LCOV],[test x$use_lcov = xyes])
@@ -1867,15 +1798,12 @@ AC_SUBST(BOOST_LIBS)
18671798
AC_SUBST(TESTDEFS)
18681799
AC_SUBST(MINIUPNPC_CPPFLAGS)
18691800
AC_SUBST(MINIUPNPC_LIBS)
1870-
AC_SUBST(CRYPTO_LIBS)
1871-
AC_SUBST(SSL_LIBS)
18721801
AC_SUBST(GMP_LIBS)
18731802
AC_SUBST(NATPMP_CPPFLAGS)
18741803
AC_SUBST(NATPMP_LIBS)
18751804
AC_SUBST(EVENT_LIBS)
18761805
AC_SUBST(EVENT_PTHREADS_LIBS)
18771806
AC_SUBST(ZMQ_LIBS)
1878-
AC_SUBST(PROTOBUF_LIBS)
18791807
AC_SUBST(QR_LIBS)
18801808
AC_SUBST(DSYMUTIL_FLAT)
18811809
AC_SUBST(HAVE_FDATASYNC)
@@ -1939,10 +1867,8 @@ echo "Options used to compile and link:"
19391867
echo " with wallet = $enable_wallet"
19401868
echo " with gui / qt = $bitcoin_enable_qt"
19411869
if test x$bitcoin_enable_qt != xno; then
1942-
echo " with bip70 = $enable_bip70"
19431870
echo " with qr = $use_qr"
19441871
fi
1945-
echo " with openssl = $use_openssl"
19461872
echo " with zmq = $use_zmq"
19471873
echo " with test = $use_tests"
19481874
echo " with bench = $use_bench"

contrib/dashd.bash-completion

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ _sccd() {
1515
_get_comp_words_by_ref -n = cur prev words cword
1616

1717
case "$cur" in
18-
-conf=*|-pid=*|-loadblock=*|-rootcertificates=*|-rpccookiefile=*|-wallet=*)
18+
-conf=*|-pid=*|-loadblock=*|-rpccookiefile=*|-wallet=*)
1919
cur="${cur#*=}"
2020
_filedir
2121
return 0

0 commit comments

Comments
 (0)