Skip to content

Commit e8ea36c

Browse files
2 parents 52f0411 + d5e709b commit e8ea36c

18 files changed

+64
-39
lines changed

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,9 @@ The `master` branch is meant to be stable. Development is normally done in separ
3737
[Tags](https://github.com/dashpay/dash/tags) are created to indicate new official,
3838
stable release versions of Dash Core.
3939

40+
The `develop` branch is regularly built (see doc/build-*.md for instructions) and tested, but is not guaranteed to be
41+
completely stable.
42+
4043
The contribution workflow is described in [CONTRIBUTING.md](CONTRIBUTING.md)
4144
and useful hints for developers can be found in [doc/developer-notes.md](doc/developer-notes.md).
4245

ci/test/00_setup_env.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ export LC_ALL=C.UTF-8
88

99
# The root dir.
1010
# The ci system copies this folder.
11-
# This is where the build is done (depends and dist).
11+
# This is where the depends build is done.
1212
BASE_ROOT_DIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )"/../../ >/dev/null 2>&1 && pwd )
1313
export BASE_ROOT_DIR
1414

@@ -59,8 +59,10 @@ export CCACHE_DIR=${CCACHE_DIR:-$CACHE_DIR/ccache}
5959
# The depends dir.
6060
# This folder exists on the ci host and ci guest. Changes are propagated back and forth.
6161
export DEPENDS_DIR=${DEPENDS_DIR:-$BASE_ROOT_DIR/depends}
62-
# Folder where the build is done (bin and lib).
62+
# Folder where the build result is put (bin and lib).
6363
export BASE_OUTDIR=${BASE_OUTDIR:-$BASE_SCRATCH_DIR/out/$HOST}
64+
# Folder where the build is done (dist and out-of-tree build).
65+
export BASE_BUILD_DIR=${BASE_BUILD_DIR:-$BASE_SCRATCH_DIR/build-ci}
6466
export PREVIOUS_RELEASES_DIR=${PREVIOUS_RELEASES_DIR:-$BASE_ROOT_DIR/releases/$HOST}
6567
export SDK_URL=${SDK_URL:-https://bitcoincore.org/depends-sources/sdks}
6668
export DOCKER_PACKAGES=${DOCKER_PACKAGES:-build-essential libtool autotools-dev automake pkg-config bsdmainutils curl ca-certificates ccache python3 rsync git procps}

ci/test/04_install.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ if [ "$TRAVIS_OS_NAME" == "osx" ]; then
1818
${CI_RETRY_EXE} pip3 install $PIP_PACKAGES
1919
fi
2020

21-
mkdir -p "${BASE_SCRATCH_DIR}"
21+
# Create folders that are mounted into the docker
2222
mkdir -p "${CCACHE_DIR}"
2323
mkdir -p "${PREVIOUS_RELEASES_DIR}"
2424

configure.ac

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1871,7 +1871,7 @@ echo " gprof enabled = $enable_gprof"
18711871
echo " werror = $enable_werror"
18721872
echo
18731873
echo " target os = $TARGET_OS"
1874-
echo " build os = $BUILD_OS"
1874+
echo " build os = $build_os"
18751875
echo
18761876
echo " CC = $CC"
18771877
echo " CFLAGS = $PTHREAD_CFLAGS $CFLAGS"

doc/fuzzing.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ To quickly get started fuzzing Dash Core using [libFuzzer](https://llvm.org/docs
88
$ git clone https://github.com/dashpay/dash
99
$ cd dash/
1010
$ ./autogen.sh
11-
$ CC=clang CXX=clang++ ./configure --enable-fuzz --with-sanitizers=address,fuzzer,undefined --enable-c++17
11+
$ CC=clang CXX=clang++ ./configure --enable-fuzz --with-sanitizers=address,fuzzer,undefined
1212
# macOS users: If you have problem with this step then make sure to read "macOS hints for
1313
# libFuzzer" on https://github.com/dashpay/dash/blob/develop/doc/fuzzing.md#macos-hints-for-libfuzzer
1414
$ make
@@ -123,7 +123,7 @@ You may also need to take care of giving the correct path for `clang` and
123123
Full configure that was tested on macOS Catalina with `brew` installed `llvm`:
124124
125125
```sh
126-
./configure --enable-fuzz --with-sanitizers=fuzzer,address,undefined CC=/usr/local/opt/llvm/bin/clang CXX=/usr/local/opt/llvm/bin/clang++ --disable-asm --enable-c++17
126+
./configure --enable-fuzz --with-sanitizers=fuzzer,address,undefined CC=/usr/local/opt/llvm/bin/clang CXX=/usr/local/opt/llvm/bin/clang++ --disable-asm
127127
```
128128
129129
Read the [libFuzzer documentation](https://llvm.org/docs/LibFuzzer.html) for more information. This [libFuzzer tutorial](https://github.com/google/fuzzing/blob/master/tutorial/libFuzzerTutorial.md) might also be of interest.
@@ -142,7 +142,7 @@ $ make -C AFLplusplus/ source-only
142142
$ ./autogen.sh
143143
# If afl-clang-lto is not available, see
144144
# https://github.com/AFLplusplus/AFLplusplus#a-selecting-the-best-afl-compiler-for-instrumenting-the-target
145-
$ CC=$(pwd)/AFLplusplus/afl-clang-lto CXX=$(pwd)/AFLplusplus/afl-clang-lto++ ./configure --enable-fuzz --enable-c++17
145+
$ CC=$(pwd)/AFLplusplus/afl-clang-lto CXX=$(pwd)/AFLplusplus/afl-clang-lto++ ./configure --enable-fuzz
146146
$ make
147147
# For macOS you may need to ignore x86 compilation checks when running "make". If so,
148148
# try compiling using: AFL_NO_X86=1 make
@@ -169,7 +169,7 @@ $ git clone https://github.com/google/honggfuzz
169169
$ cd honggfuzz/
170170
$ make
171171
$ cd ..
172-
$ CC=$(pwd)/honggfuzz/hfuzz_cc/hfuzz-clang CXX=$(pwd)/honggfuzz/hfuzz_cc/hfuzz-clang++ ./configure --enable-fuzz --with-sanitizers=address,undefined --enable-c++17
172+
$ CC=$(pwd)/honggfuzz/hfuzz_cc/hfuzz-clang CXX=$(pwd)/honggfuzz/hfuzz_cc/hfuzz-clang++ ./configure --enable-fuzz --with-sanitizers=address,undefined
173173
$ make
174174
$ mkdir -p inputs/
175175
$ FUZZ=process_message honggfuzz/honggfuzz -i inputs/ -- src/test/fuzz/fuzz

doc/release-notes-bitcoin-17219.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
Wallet
2+
------
3+
4+
5+
- The wallet can create a transaction without change even when the keypool is
6+
empty. Previously it failed. (#17219)
7+
8+

src/bitcoin-cli.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
#include <memory>
2727
#include <optional>
2828
#include <stdio.h>
29+
#include <string>
2930
#include <tuple>
3031

3132
#include <event2/buffer.h>
@@ -172,7 +173,7 @@ struct HTTPReply
172173
std::string body;
173174
};
174175

175-
static const char *http_errorstring(int code)
176+
static std::string http_errorstring(int code)
176177
{
177178
switch(code) {
178179
#if LIBEVENT_VERSION_NUMBER >= 0x02010300

src/core_read.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
#include <version.h>
1717

1818
#include <algorithm>
19+
#include <string>
1920

2021
namespace {
2122

@@ -31,10 +32,9 @@ opcodetype ParseOpCode(const std::string& s)
3132
if (op < OP_NOP && op != OP_RESERVED)
3233
continue;
3334

34-
const char* name = GetOpName(static_cast<opcodetype>(op));
35-
if (strcmp(name, "OP_UNKNOWN") == 0)
35+
std::string strName = GetOpName(static_cast<opcodetype>(op));
36+
if (strName == "OP_UNKNOWN")
3637
continue;
37-
std::string strName(name);
3838
mapOpNames[strName] = static_cast<opcodetype>(op);
3939
// Convenience: OP_ADD and just ADD are both recognized:
4040
if (strName.compare(0, 3, "OP_") == 0) { // strName starts with "OP_"

src/rpc/mining.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -849,6 +849,7 @@ static UniValue getblocktemplate(const JSONRPCRequest& request)
849849
result.pushKV("capabilities", aCaps);
850850

851851
UniValue aRules(UniValue::VARR);
852+
aRules.push_back("csv");
852853
UniValue vbavailable(UniValue::VOBJ);
853854
for (int j = 0; j < (int)Consensus::MAX_VERSION_BITS_DEPLOYMENTS; ++j) {
854855
Consensus::DeploymentPos pos = Consensus::DeploymentPos(j);

src/script/script.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,9 @@
66
#include <script/script.h>
77
#include <util/strencodings.h>
88

9-
const char* GetOpName(opcodetype opcode)
9+
#include <string>
10+
11+
std::string GetOpName(opcodetype opcode)
1012
{
1113
switch (opcode)
1214
{

0 commit comments

Comments
 (0)