Skip to content

Commit 1deab35

Browse files
authored
Merge pull request #2159 from UdjinM6/mergetomaster1231
Merge develop 0.12.3.1 into master
2 parents e596762 + eebfa79 commit 1deab35

File tree

1,095 files changed

+82255
-39732
lines changed

Some content is hidden

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

1,095 files changed

+82255
-39732
lines changed

.github/ISSUE_TEMPLATE.md

+37
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
<!--- Remove sections that do not apply -->
2+
3+
This issue tracker is only for technical issues related to Dash Core.
4+
5+
General Dash questions and/or support requests and are best directed to the [Dashpay Reddit](https://www.reddit.com/r/dashpay/).
6+
7+
To report critical security issues, email [email protected] instead of creating Github issues.
8+
9+
### Describe the issue
10+
11+
### Can you reliably reproduce the issue?
12+
#### If so, please list the steps to reproduce below:
13+
1.
14+
2.
15+
3.
16+
17+
### Expected behaviour
18+
Tell us what should happen
19+
20+
### Actual behaviour
21+
Tell us what happens instead
22+
23+
### Screenshots.
24+
If the issue is related to the GUI, screenshots can be added to this issue via drag & drop.
25+
26+
### What version of Dash Core are you using?
27+
List the version number/commit ID, and if it is an official binary, self compiled or a distribution package such as PPA.
28+
29+
### Machine specs:
30+
- OS:
31+
- CPU:
32+
- RAM:
33+
- Disk size:
34+
- Disk Type (HD/SDD):
35+
36+
### Any extra information that might be useful in the debugging process.
37+
This is normally the contents of a `debug.log` or `config.log` file. Raw text or a link to a pastebin type site are preferred.

.gitignore

+8-7
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,6 @@ libconftest.dylib*
6262
*.o
6363
*.o-*
6464
*.patch
65-
.dash
6665
*.a
6766
*.pb.cc
6867
*.pb.h
@@ -108,13 +107,8 @@ coverage_percent.txt
108107
linux-coverage-build
109108
linux-build
110109
win32-build
111-
qa/pull-tester/run-bitcoind-for-test.sh
112110
qa/pull-tester/tests_config.py
113-
qa/pull-tester/cache/*
114-
qa/pull-tester/test.*/*
115-
qa/tmp
116-
cache/
117-
share/BitcoindComparisonTool.jar
111+
qa/cache/*
118112

119113
!src/leveldb*/Makefile
120114

@@ -124,6 +118,7 @@ share/BitcoindComparisonTool.jar
124118
/doc/doxygen/
125119

126120
libdashconsensus.pc
121+
contrib/devtools/split-debug.sh
127122
src/qt/dash-qt.bash
128123
qa/pull-tester/tests-config.sh
129124

@@ -132,3 +127,9 @@ dash-cli
132127
dashd
133128
dash-qt
134129
make
130+
131+
/docker/bin
132+
133+
# CLion
134+
.idea
135+
cmake-build-debug

.travis.yml

+33-12
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@ group: deprecated-2017Q3
1313
os: linux
1414
language: generic
1515

16+
services:
17+
- docker
18+
1619
cache:
1720
apt: true
1821
ccache: true
@@ -23,8 +26,13 @@ cache:
2326

2427
env:
2528
global:
29+
# DOCKER_HUB_USER
30+
- secure: "J0T+zrRBBzBnxoioCD378cRSJUF8Vms32QMmrENVVfuJl03oBQv0QxSatLEiD4PtRPrN00mJ8/k/HdqFQ0SN1yg6a00duOZ6C9jk6t/fExBO1LNhp3Z7lcaMUrNEyRN6sgfVeznDVTGj9jBQU2HNlwHk0UD9BNp/k+Bjhrtw7Njp9JTLZKBgxrXk0WZmfk0d75Q+9DajA1j2tSfWVpwzv6HMGfqIH1wsVEakBY+tnaE6EO3IdzdWHhf/iV+Tx0tL0Qz/6mejgSuoGLTJLmeTrceTTmsDlN3B95y+XfcYDs6EP7gpzN8Ffg/mLV8xJ2Myj7+b1o+smMJZE5tLuPIeAu0YsfkPNa/tNLotOlDxF72per0kXyNYbRf+JrpxiOu9pLCtdtd40V2SsiNhpQqHVy+b+wkkqo2syTHT+9UNkqEi3WFm6TqFuOeQNtDm6R0hRl/Talw/ZEeKs68z1Cf6VyBrZG5LqtOurtWlKwXCe/Tr1i2g4BEAcbywphtCCcfgMK9YSGQnjKkGk6k9gVEa2bneYLZz1RSh2OpXnIsIJOX7X0hNd5xtQDLgbpSUlKwVcEriWeGe12GCszKNX9gdEo2bHeq4xAJ6BE+ot745z9dc+nC2BJ6Su+I5L6zBg4m2FWn0TWhPvz/6JR26t6ls/E7m+hkwJTCHnIUiFmmzpEw="
31+
# DOCKER_HUB_PASSWORD
32+
- secure: "RLzlMhfLqwSBrZqJOVOd61suXBn+HtUR3vOZfuFYF/Qmjjj5TE41+rObZmzc54hP/ZL+OH6blnibpvfDXlX+eN38ivFQfuxkJIGL68SJsEwNBRwW39Yw6Hl5RdI41MLCH7ByN15wifLp1JKBilHJ7XGMOUjI7P0yl7JjX8GBXUCtJbVLRugo80/yn+XQ1NdnlpbpYHNjMEQFWSODPa3pSK5McWvyQjDZDgS+IkdrZmIYJPMa7bmKH5I/edUPSmXQT905FgEwq9u8XR0SyBopli21EK9l6GkXIIvmDTYz5vT26Apvi2B4Aoazlklg+KNRUJuLGerpt6kbnU0gMSUChVkFfFhOk6GRSN3a/AUfD2FOudvMhet2QvlPHx+GYdEUr5XVo5HW42pHsqfD6eDtHd8VLTsHP0q4C8V85fNMv21lkkehy2ry8fx/RRy6x4O2wg2mua+79UkGKXp75gMKzWEcth34PCFCOu37l2F8R/ANnrQ52K/8vIQ88TtU2OpYX89fHjLojBxu+WKEBGZH2LRPsZBOUHeeO5C/xKDrhZU24ORnMW8wg66Qg5GIX1KI4a8yp73Mpues5hzpJ6wkMuRrQt40ymKndLCjv8KSd+5BfP6Or/KIrzDNYdZaasjk7JNi6rcZmm9d3fTAo+Ja/mjpUCIOo3SX14luzVCJIig="
2633
- MAKEJOBS=-j5
2734
- RUN_TESTS=false
35+
- CHECK_DOC=0
2836
- BOOST_TEST_RANDOM=1$TRAVIS_BUILD_ID
2937
- CCACHE_SIZE=400M
3038
- CCACHE_TEMPDIR=/tmp/.ccache-temp
@@ -33,56 +41,69 @@ env:
3341
- SDK_URL=https://bitcoincore.org/depends-sources/sdks
3442
- PYTHON_DEBUG=1
3543
- WINEDEBUG=fixme-all
44+
- DOCKER_BUILD=false
3645

3746
matrix:
3847
# ARM
3948
- HOST=arm-linux-gnueabihf PPA="ppa:bitcoin/bitcoin" PACKAGES="g++-arm-linux-gnueabihf" DEP_OPTS="NO_QT=1" CHECK_DOC=1 GOAL="install" BITCOIN_CONFIG="--enable-glibc-back-compat --enable-reduce-exports"
4049
# Win32
41-
- HOST=i686-w64-mingw32 DPKG_ADD_ARCH="i386" DEP_OPTS="NO_QT=1" PPA="ppa:bitcoin/bitcoin" PACKAGES="python3 nsis g++-mingw-w64-i686 wine1.7 bc" RUN_TESTS=true GOAL="install" BITCOIN_CONFIG="--enable-gui --enable-reduce-exports" MAKEJOBS="-j4" WINE=true
50+
- HOST=i686-w64-mingw32 DPKG_ADD_ARCH="i386" DEP_OPTS="NO_QT=1" PPA="ppa:bitcoin/bitcoin" PACKAGES="python3 nsis g++-mingw-w64-i686 wine1.7 bc" RUN_TESTS=true GOAL="install" BITCOIN_CONFIG="--enable-gui --enable-reduce-exports" MAKEJOBS="-j4"
4251
# 32-bit + dash
4352
- HOST=i686-pc-linux-gnu PPA="ppa:bitcoin/bitcoin" PACKAGES="g++-multilib bc python3-zmq" DEP_OPTS="NO_QT=1" RUN_TESTS=true GOAL="install" BITCOIN_CONFIG="--enable-zmq --enable-glibc-back-compat --enable-reduce-exports LDFLAGS=-static-libstdc++" USE_SHELL="/bin/dash" PYZMQ=true
4453
# Win64
45-
- HOST=x86_64-w64-mingw32 DPKG_ADD_ARCH="i386" DEP_OPTS="NO_QT=1" PPA="ppa:bitcoin/bitcoin" PACKAGES="python3 nsis g++-mingw-w64-x86-64 wine1.7 bc" RUN_TESTS=true GOAL="install" BITCOIN_CONFIG="--enable-gui --enable-reduce-exports" MAKEJOBS="-j4" WINE=true
54+
- HOST=x86_64-w64-mingw32 DPKG_ADD_ARCH="i386" DEP_OPTS="NO_QT=1" PPA="ppa:bitcoin/bitcoin" PACKAGES="python3 nsis g++-mingw-w64-x86-64 wine1.7 bc" RUN_TESTS=true GOAL="install" BITCOIN_CONFIG="--enable-gui --enable-reduce-exports" MAKEJOBS="-j4"
4655
# dashd
4756
- HOST=x86_64-unknown-linux-gnu PPA="ppa:bitcoin/bitcoin" PACKAGES="bc python3-zmq" DEP_OPTS="NO_QT=1 NO_UPNP=1 DEBUG=1" RUN_TESTS=true GOAL="install" BITCOIN_CONFIG="--enable-zmq --enable-glibc-back-compat --enable-reduce-exports" CPPFLAGS="-DDEBUG_LOCKORDER -DENABLE_DASH_DEBUG" PYZMQ=true
4857
# No wallet
4958
- HOST=x86_64-unknown-linux-gnu PPA="ppa:bitcoin/bitcoin" PACKAGES="python3" DEP_OPTS="NO_WALLET=1" RUN_TESTS=true GOAL="install" BITCOIN_CONFIG="--enable-glibc-back-compat --enable-reduce-exports"
5059
# Cross-Mac
51-
- HOST=x86_64-apple-darwin11 PPA="ppa:bitcoin/bitcoin" PACKAGES="cmake imagemagick libcap-dev librsvg2-bin libz-dev libbz2-dev libtiff-tools python-dev" BITCOIN_CONFIG="--enable-gui --enable-reduce-exports" OSX_SDK=10.9 GOAL="deploy"
60+
- HOST=x86_64-apple-darwin11 PPA="ppa:bitcoin/bitcoin" PACKAGES="cmake imagemagick libcap-dev librsvg2-bin libz-dev libbz2-dev libtiff-tools python3-dev" BITCOIN_CONFIG="--enable-gui --enable-reduce-exports" OSX_SDK=10.11 GOAL="deploy"
61+
# dashd release build (for docker)
62+
- HOST=x86_64-unknown-linux-gnu PPA="ppa:bitcoin/bitcoin" PACKAGES="bc python3-zmq" DEP_OPTS="NO_QT=1 NO_UPNP=1" GOAL="install" BITCOIN_CONFIG="--enable-zmq --enable-glibc-back-compat --enable-reduce-exports" PYZMQ=true DOCKER_BUILD=true
5263

5364
before_install:
5465
- git clone https://github.com/dashpay/dash_hash
55-
- travis_retry sudo apt-get install python-dev
66+
- travis_retry sudo apt-get install python3-pip python3-dev
5667
- travis_retry sudo add-apt-repository ppa:ubuntu-wine/ppa -y
5768
- export PATH=$(echo $PATH | tr ':' "\n" | sed '/\/opt\/python/d' | tr "\n" ":" | sed "s|::|:|g")
5869
install:
59-
- if [ "$PYZMQ" = "true" ]; then pip install pyzmq --user ; fi
70+
- if [ "$PYZMQ" = "true" ]; then pip3 install pyzmq --user ; fi
6071
- if [ -n "$PPA" ]; then travis_retry sudo add-apt-repository "$PPA" -y; fi
6172
- if [ -n "$DPKG_ADD_ARCH" ]; then sudo dpkg --add-architecture "$DPKG_ADD_ARCH" ; fi
6273
- if [ -n "$PACKAGES" ]; then travis_retry sudo apt-get update; fi
6374
- if [ -n "$PACKAGES" ]; then travis_retry sudo apt-get install --no-install-recommends --no-upgrade -qq $PACKAGES; fi
64-
- cd dash_hash && python setup.py install --user && cd ..
75+
- cd dash_hash && python3 setup.py install --user && cd ..
6576
before_script:
6677
- unset CC; unset CXX
6778
- unset DISPLAY
79+
# Make sure stdout is in blocking mode. Otherwise builds will fail due to large writes to stdout
80+
# See https://github.com/travis-ci/travis-ci/issues/4704. If this gets fixed, this line can also be removed.
81+
- python3 -c 'import os,sys,fcntl; flags = fcntl.fcntl(sys.stdout, fcntl.F_GETFL); fcntl.fcntl(sys.stdout, fcntl.F_SETFL, flags&~os.O_NONBLOCK);'
82+
#- if [ "$CHECK_DOC" = 1 ]; then contrib/devtools/check-doc.py; fi TODO reenable after all Bitcoin PRs have been merged and docs fully fixed
6883
- mkdir -p depends/SDKs depends/sdk-sources
6984
- if [ -n "$OSX_SDK" -a ! -f depends/sdk-sources/MacOSX${OSX_SDK}.sdk.tar.gz ]; then curl --location --fail $SDK_URL/MacOSX${OSX_SDK}.sdk.tar.gz -o depends/sdk-sources/MacOSX${OSX_SDK}.sdk.tar.gz; fi
7085
- if [ -n "$OSX_SDK" -a -f depends/sdk-sources/MacOSX${OSX_SDK}.sdk.tar.gz ]; then tar -C depends/SDKs -xf depends/sdk-sources/MacOSX${OSX_SDK}.sdk.tar.gz; fi
7186
- make $MAKEJOBS -C depends HOST=$HOST $DEP_OPTS
7287
script:
88+
- export TRAVIS_COMMIT_LOG=`git log --format=fuller -1`
7389
- if [ -n "$USE_SHELL" ]; then export CONFIG_SHELL="$USE_SHELL"; fi
7490
- OUTDIR=$BASE_OUTDIR/$TRAVIS_PULL_REQUEST/$TRAVIS_JOB_NUMBER-$HOST
7591
- BITCOIN_CONFIG_ALL="--disable-dependency-tracking --prefix=$TRAVIS_BUILD_DIR/depends/$HOST --bindir=$OUTDIR/bin --libdir=$OUTDIR/lib"
7692
- depends/$HOST/native/bin/ccache --max-size=$CCACHE_SIZE
7793
- test -n "$USE_SHELL" && eval '"$USE_SHELL" -c "./autogen.sh"' || ./autogen.sh
78-
- ./configure --cache-file=config.cache $BITCOIN_CONFIG_ALL $BITCOIN_CONFIG || ( cat config.log && false)
79-
- make distdir PACKAGE=dash VERSION=$HOST
80-
- cd dash-$HOST
94+
- mkdir build && cd build
95+
- ../configure --cache-file=config.cache $BITCOIN_CONFIG_ALL $BITCOIN_CONFIG || ( cat config.log && false)
96+
- make distdir VERSION=$HOST
97+
- cd dashcore-$HOST
8198
- ./configure --cache-file=../config.cache $BITCOIN_CONFIG_ALL $BITCOIN_CONFIG || ( cat config.log && false)
8299
- make $MAKEJOBS $GOAL || ( echo "Build failure. Verbose build follows." && make $GOAL V=1 ; false )
83100
- export LD_LIBRARY_PATH=$TRAVIS_BUILD_DIR/depends/$HOST/lib
84-
- if [ "$RUN_TESTS" = "true" -a "$WINE" != "true" ]; then travis_wait 30 make $MAKEJOBS check VERBOSE=1; fi
85-
- if [ "$RUN_TESTS" = "true" -a "$WINE" = "true" ]; then wine src/test/test_dash.exe --log_level=test_suite; fi
101+
- if [ "$RUN_TESTS" = "true" ]; then travis_wait 30 make $MAKEJOBS check VERBOSE=1; fi
86102
- if [ "$RUN_TESTS" = "true" ]; then qa/pull-tester/rpc-tests.py --coverage; fi
103+
- cd ../..
104+
- if [ "$DOCKER_BUILD" = "true" ]; then BUILD_DIR=build/dashcore-$HOST ./docker/build-docker.sh; fi
87105
after_script:
88-
- if [ "$TRAVIS_PULL_REQUEST" != "false" ]; then (echo "Upload goes here. Something like: scp -r $BASE_OUTDIR server" || echo "upload failed"); fi
106+
- echo $TRAVIS_COMMIT_RANGE
107+
- echo $TRAVIS_COMMIT_LOG
108+
after_success:
109+
- if [ "$TRAVIS_PULL_REQUEST" = "false" -a "$TRAVIS_BRANCH" = "develop" -a "$DOCKER_BUILD" = "true" ]; then docker login -u $DOCKER_HUB_USER -p $DOCKER_HUB_PASSWORD && ./docker/push-docker.sh; fi

CMakeLists.txt

+65
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
# This CMakeLists.txt is not meant to actually work!
2+
# It only serves as a dummy project to make CLion work properly when it comes to symbol resolution and all the nice
3+
# features dependent on that. Building must still be done on the command line using the automake build chain
4+
# If you load this project in CLion and would like to run/debug executables, make sure to remove the "Build" entry from
5+
# the run/debug configuration as otherwise CLion will try to build this project with cmake, failing horribly.
6+
# You'll also have to manually change the executable in the configuration to the correct path of the already built executable
7+
8+
cmake_minimum_required(VERSION 3.7)
9+
project(dash)
10+
11+
set(CMAKE_CXX_STANDARD 11)
12+
13+
include_directories(
14+
src
15+
src/leveldb/include
16+
src/univalue/include
17+
)
18+
19+
add_definitions(
20+
-DENABLE_WALLET=1
21+
)
22+
23+
file(GLOB SOURCE_FILES
24+
src/bench/*.cpp
25+
src/bench/*.h
26+
src/compat/*.cpp
27+
src/compat/*.h
28+
src/consensus/*.h
29+
src/consensus/*.cpp
30+
src/crypto/*.c
31+
src/crypto/*.h
32+
src/crypto/*.cpp
33+
src/leveldb/db/*.cc
34+
src/leveldb/db/*.h
35+
src/leveldb/include/*.h
36+
src/policy/*.cpp
37+
src/policy/*.h
38+
src/primitives/*.cpp
39+
src/primitives/*.h
40+
src/qt/test/*.cpp
41+
src/qt/test/*.h
42+
src/qt/*.cpp
43+
src/qt/*.h
44+
src/script/*.cpp
45+
src/script/*.h
46+
src/secp256k1/include/*.h
47+
src/test/*.cpp
48+
src/test/*.h
49+
src/univalue/include/*.h
50+
src/univalue/lib/*.cpp
51+
src/univalue/lib/*.h
52+
src/wallet/test/*.cpp
53+
src/wallet/*.cpp
54+
src/wallet/*.h
55+
src/zmq/*.cpp
56+
src/zmq/*.h
57+
src/*.cpp
58+
src/*.h
59+
src/evo/*.h
60+
src/evo/*.cpp
61+
src/rpc/*.cpp
62+
src/rpc/*.h
63+
)
64+
65+
add_executable(dash ${SOURCE_FILES})

0 commit comments

Comments
 (0)