Skip to content

Commit 4679799

Browse files
authored
Merge branch 'master' into 2023_DMN_GUI
2 parents 8d1de7f + 9240e15 commit 4679799

655 files changed

Lines changed: 1052 additions & 1006 deletions

File tree

Some content is hidden

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

.github/workflows/build-and-test.yml

Lines changed: 40 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -6,18 +6,18 @@ jobs:
66
env:
77
SHELLCHECK_VERSION: v0.7.1
88
LC_ALL: C
9-
runs-on: ubuntu-18.04
9+
runs-on: ubuntu-20.04
1010
defaults:
1111
run:
1212
shell: bash
1313
steps:
1414
- name: Checkout Repo
15-
uses: actions/checkout@v2
15+
uses: actions/checkout@v3
1616
with:
1717
fetch-depth: 0
1818

1919
- name: Initialize Python
20-
uses: actions/setup-python@v2
20+
uses: actions/setup-python@v4
2121
with:
2222
python-version: 3.6
2323

@@ -74,7 +74,7 @@ jobs:
7474
matrix:
7575
config:
7676
- name: Linux
77-
os: ubuntu-18.04
77+
os: ubuntu-20.04
7878
packages: python3-zmq qttools5-dev qtbase5-dev qttools5-dev-tools libqt5svg5-dev libqt5charts5-dev libevent-dev bsdmainutils libboost-system-dev libboost-filesystem-dev libboost-chrono-dev libboost-test-dev libboost-thread-dev libdb5.3++-dev libminiupnpc-dev libzmq3-dev libqrencode-dev libgmp-dev libsodium-dev cargo
7979
cc: gcc
8080
cxx: g++
@@ -87,7 +87,7 @@ jobs:
8787

8888
steps:
8989
- name: Get Source
90-
uses: actions/checkout@v2
90+
uses: actions/checkout@v3
9191

9292
- name: Setup Environment
9393
run: |
@@ -102,13 +102,10 @@ jobs:
102102
103103
- name: Prepare ccache timestamp
104104
id: ccache_cache_timestamp
105-
shell: cmake -P {0}
106-
run: |
107-
string(TIMESTAMP current_date "%Y-%m-%d-%H;%M;%S" UTC)
108-
message("::set-output name=timestamp::${current_date}")
105+
run: echo "timestamp=$(date +%Y-%m-%dT%H:%M:%S%z)" >> $GITHUB_OUTPUT
109106

110107
- name: ccache cache files
111-
uses: actions/cache@v2
108+
uses: actions/cache@v3
112109
with:
113110
path: .ccache
114111
key: cmake-${{ matrix.config.name }}-ccache-${{ steps.ccache_cache_timestamp.outputs.timestamp }}
@@ -144,41 +141,41 @@ jobs:
144141
matrix:
145142
config:
146143
- name: ARM 32-bit
147-
os: ubuntu-18.04
144+
os: ubuntu-20.04
148145
host: arm-linux-gnueabihf
149146
apt_get: python3 g++-arm-linux-gnueabihf
150147

151148
- name: AARCH64
152-
os: ubuntu-18.04
149+
os: ubuntu-20.04
153150
host: aarch64-linux-gnu
154151
apt_get: python3 g++-aarch64-linux-gnu
155152

156153
- name: Win64
157-
os: ubuntu-18.04
154+
os: ubuntu-20.04
158155
host: x86_64-w64-mingw32
159156
apt_get: python3 nsis g++-mingw-w64-x86-64 wine-binfmt wine64
160157

161158
- name: 32-bit + dash
162-
os: ubuntu-18.04
159+
os: ubuntu-20.04
163160
host: i686-pc-linux-gnu
164161
apt_get: g++-multilib python3-zmq
165162

166163
- name: x86_64 Linux
167-
os: ubuntu-18.04
164+
os: ubuntu-20.04
168165
host: x86_64-unknown-linux-gnu
169166
apt_get: python3-zmq qtbase5-dev qttools5-dev-tools libqt5svg5-dev libqt5charts5-dev libqrencode-dev libdbus-1-dev libharfbuzz-dev
170167
dep_opts: NO_QT=1 NO_UPNP=1 NO_NATPMP=1 DEBUG=1 ALLOW_HOST_PACKAGES=1
171168

172169
- name: macOS 10.12
173-
os: ubuntu-18.04
170+
os: ubuntu-20.04
174171
host: x86_64-apple-darwin16
175172
apt_get: cmake imagemagick libcap-dev librsvg2-bin libz-dev libbz2-dev libtiff-tools python3-dev python3-setuptools
176173
XCODE_VERSION: 11.3.1
177174
XCODE_BUILD_ID: 11C505
178175

179176
steps:
180177
- name: Get Source
181-
uses: actions/checkout@v2
178+
uses: actions/checkout@v3
182179

183180
- name: Setup Environment
184181
run: |
@@ -187,13 +184,10 @@ jobs:
187184
188185
- name: Prepare Depends timestamp
189186
id: depends_cache_timestamp
190-
shell: cmake -P {0}
191-
run: |
192-
string(TIMESTAMP current_date "%Y-%m-%d-%H;%M;%S" UTC)
193-
message("::set-output name=timestamp::${current_date}")
187+
run: echo "timestamp=$(date +%Y-%m-%dT%H:%M:%S%z)" >> $GITHUB_OUTPUT
194188

195189
- name: depends cache files
196-
uses: actions/cache@v2
190+
uses: actions/cache@v3
197191
with:
198192
path: |
199193
depends/built
@@ -254,7 +248,8 @@ jobs:
254248
matrix:
255249
config:
256250
- name: ARM 32-bit [GOAL:install] [no unit or functional tests]
257-
os: ubuntu-18.04
251+
id: ARM32
252+
os: ubuntu-20.04
258253
host: arm-linux-gnueabihf
259254
apt_get: python3 g++-arm-linux-gnueabihf
260255
unit_tests: false
@@ -265,7 +260,8 @@ jobs:
265260
BITCOIN_CONFIG: "--with-gui=qt5 --enable-glibc-back-compat --enable-reduce-exports --disable-online-rust CXXFLAGS=-Wno-psabi"
266261

267262
- name: AARCH64 [GOAL:install] [no unit or functional tests]
268-
os: ubuntu-18.04
263+
id: ARM64
264+
os: ubuntu-20.04
269265
host: aarch64-linux-gnu
270266
apt_get: python3 g++-aarch64-linux-gnu
271267
unit_tests: false
@@ -274,16 +270,18 @@ jobs:
274270
BITCOIN_CONFIG: "--with-gui=qt5 --enable-glibc-back-compat --enable-reduce-exports --disable-online-rust"
275271

276272
- name: Win64 [GOAL:deploy] [no unit or functional tests]
277-
os: ubuntu-18.04
273+
id: Win64
274+
os: ubuntu-20.04
278275
host: x86_64-w64-mingw32
279276
apt_get: python3 nsis g++-mingw-w64-x86-64 wine-binfmt wine64
280277
unit_tests: false
281278
functional_tests: false
282279
goal: deploy
283280
BITCOIN_CONFIG: "--with-gui=auto --enable-reduce-exports --disable-online-rust"
284281

285-
- name: x86_64 Linux [GOAL:install] [bionic]
286-
os: ubuntu-18.04
282+
- name: x86_64 Linux [GOAL:install] [focal]
283+
id: Linux-x86_64
284+
os: ubuntu-20.04
287285
host: x86_64-unknown-linux-gnu
288286
apt_get: python3-zmq qtbase5-dev qttools5-dev-tools libqt5svg5-dev libqt5charts5-dev libqrencode-dev libdbus-1-dev libharfbuzz-dev
289287
unit_tests: true
@@ -292,8 +290,9 @@ jobs:
292290
test_runner_extra: "--coverage --all --exclude feature_dbcrash"
293291
BITCOIN_CONFIG: "--enable-zmq --with-gui=qt5 --enable-glibc-back-compat --enable-reduce-exports --disable-online-rust"
294292

295-
- name: x86_64 Linux [GOAL:install] [bionic] [no GUI no unit tests - only functional tests on legacy pre-HD wallets]
296-
os: ubuntu-18.04
293+
- name: x86_64 Linux [GOAL:install] [focal] [no GUI no unit tests - only functional tests on legacy pre-HD wallets]
294+
id: Linux-x86_64-nogui
295+
os: ubuntu-20.04
297296
host: x86_64-unknown-linux-gnu
298297
apt_get: python3-zmq
299298
unit_tests: false
@@ -302,8 +301,9 @@ jobs:
302301
test_runner_extra: "--legacywallet"
303302
BITCOIN_CONFIG: "--enable-zmq --with-gui=no --enable-glibc-back-compat --enable-reduce-exports --disable-online-rust"
304303

305-
- name: x86_64 Linux [GOAL:install] [bionic] [no depends only system libs]
306-
os: ubuntu-18.04
304+
- name: x86_64 Linux [GOAL:install] [focal] [no depends only system libs]
305+
id: Linux-x86_64-nodepends
306+
os: ubuntu-20.04
307307
host: x86_64-unknown-linux-gnu
308308
apt_get: python3-zmq qtbase5-dev qttools5-dev-tools libqt5svg5-dev libqt5charts5-dev libevent-dev bsdmainutils libboost-system-dev libboost-filesystem-dev libboost-chrono-dev libboost-test-dev libboost-thread-dev libdb5.3++-dev libminiupnpc-dev libnatpmp-dev libzmq3-dev libqrencode-dev libgmp-dev libsodium-dev cargo
309309
unit_tests: true
@@ -312,7 +312,8 @@ jobs:
312312
BITCOIN_CONFIG: "--enable-zmq --with-incompatible-bdb --with-gui=qt5 CPPFLAGS='-DARENA_DEBUG -DDEBUG_LOCKORDER'"
313313

314314
- name: macOS 10.12 [GOAL:deploy] [no functional tests]
315-
os: ubuntu-18.04
315+
id: macOS10.12
316+
os: ubuntu-20.04
316317
host: x86_64-apple-darwin16
317318
apt_get: cmake imagemagick libcap-dev librsvg2-bin libz-dev libbz2-dev libtiff-tools python3-dev python3-setuptools
318319
XCODE_VERSION: 11.3.1
@@ -323,6 +324,7 @@ jobs:
323324
BITCOIN_CONFIG: "--enable-gui --enable-reduce-exports --enable-werror --disable-online-rust"
324325

325326
- name: macOS 11 [GOAL:deploy] [native macOS using syslibs]
327+
id: macOS11
326328
os: macos-11
327329
host: x86_64-apple-darwin20.6.0
328330
brew_install: autoconf automake ccache berkeley-db4 libtool boost miniupnpc pkg-config python@3.8 qt5 zmq libevent qrencode gmp libsodium rust librsvg
@@ -336,7 +338,7 @@ jobs:
336338

337339
steps:
338340
- name: Get Source
339-
uses: actions/checkout@v2
341+
uses: actions/checkout@v3
340342

341343
- name: Setup Environment
342344
run: |
@@ -352,7 +354,7 @@ jobs:
352354
353355
- name: depends cache files
354356
if: matrix.config.no_depends != 1
355-
uses: actions/cache@v2
357+
uses: actions/cache@v3
356358
with:
357359
path: |
358360
depends/built
@@ -364,20 +366,17 @@ jobs:
364366
365367
- name: Prepare ccache timestamp
366368
id: ccache_cache_timestamp
367-
shell: cmake -P {0}
368-
run: |
369-
string(TIMESTAMP current_date "%Y-%m-%d-%H;%M;%S" UTC)
370-
message("::set-output name=timestamp::${current_date}")
369+
run: echo "timestamp=$(date +%Y-%m-%dT%H:%M:%S%z)" >> $GITHUB_OUTPUT
371370

372371
- name: ccache cache files
373-
uses: actions/cache@v2
372+
uses: actions/cache@v3
374373
with:
375374
path: |
376375
.ccache
377376
.pivx-params
378-
key: ${{ matrix.config.name }}-ccache-${{ steps.ccache_cache_timestamp.outputs.timestamp }}
377+
key: ${{ matrix.config.id }}-ccache-${{ steps.ccache_cache_timestamp.outputs.timestamp }}
379378
restore-keys: |
380-
${{ matrix.config.name }}-ccache-
379+
${{ matrix.config.id }}-ccache-
381380
382381
- name: Build Wallet
383382
run: |

CMakeLists.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ if(CCACHE_PROGRAM)
66
message(STATUS "Found ccache: ${CCACHE_PROGRAM}")
77
set_property(GLOBAL PROPERTY RULE_LAUNCH_COMPILE "${CCACHE_PROGRAM}")
88
# Set up wrapper scripts
9-
set(C_LAUNCHER "${CCACHE_PROGRAM}")
10-
set(CXX_LAUNCHER "${CCACHE_PROGRAM}")
9+
set(CMAKE_C_COMPILER_LAUNCHER "${CCACHE_PROGRAM}")
10+
set(CMAKE_CXX_COMPILER_LAUNCHER "${CCACHE_PROGRAM}")
1111
endif()
1212

1313
# Search for the cargo and rustc compilers required to build libzcashrust
@@ -85,7 +85,7 @@ find_package(GMP REQUIRED)
8585
find_package(ZMQ)
8686
find_package(Miniupnp)
8787
find_package(NAT-PMP)
88-
find_package(Boost COMPONENTS system filesystem thread REQUIRED)
88+
find_package(Boost COMPONENTS system filesystem chrono thread REQUIRED)
8989
find_package(Sodium REQUIRED)
9090

9191
# run autogen.sh if missing header files from configure on Linux/Mac

Makefile.am

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,18 @@ $(BITCOIN_CLI_BIN): FORCE
193193
$(MAKE) -C src $(@F)
194194

195195
if USE_LCOV
196-
LCOV_FILTER_PATTERN=-p "/usr/include/" -p "/usr/lib/" -p "src/leveldb/" -p "src/crc32c/" -p "src/univalue" -p "src/secp256k1"
196+
LCOV_FILTER_PATTERN= \
197+
-p "/usr/local/" \
198+
-p "/usr/include/" \
199+
-p "/usr/lib/" \
200+
-p "/usr/lib64" \
201+
-p "src/leveldb/" \
202+
-p "src/bench/" \
203+
-p "src/crc32c/" \
204+
-p "src/crypto/ctaes/" \
205+
-p "src/univalue" \
206+
-p "src/secp256k1" \
207+
-p "depends"
197208

198209
baseline.info:
199210
$(LCOV) -c -i -d $(abs_builddir)/src -o $@

build-aux/snap/snapcraft.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# Copyright (c) 2019 The PIVX developers
33
name: pivx-core
44
base: core18
5-
version: 5.4.99
5+
version: 5.5.99
66
summary: PIVX (Private – Instant – Verified – Transaction)
77
description: |
88
PIVX is an MIT licensed,

configure.ac

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
dnl require autoconf 2.60 (AS_ECHO/AS_ECHO_N)
22
AC_PREREQ([2.60])
33
define(_CLIENT_VERSION_MAJOR, 5)
4-
define(_CLIENT_VERSION_MINOR, 4)
4+
define(_CLIENT_VERSION_MINOR, 5)
55
define(_CLIENT_VERSION_REVISION, 99)
66
define(_CLIENT_VERSION_BUILD, 0)
77
define(_CLIENT_VERSION_RC, 0)
88
define(_CLIENT_VERSION_IS_RELEASE, false)
9-
define(_COPYRIGHT_YEAR, 2021)
9+
define(_COPYRIGHT_YEAR, 2023)
1010
AC_INIT([PIVX Core],m4_join([.], _CLIENT_VERSION_MAJOR, _CLIENT_VERSION_MINOR, _CLIENT_VERSION_REVISION, m4_if(_CLIENT_VERSION_BUILD, [0], [], _CLIENT_VERSION_BUILD))m4_if(_CLIENT_VERSION_RC, [0], [], [rc]_CLIENT_VERSION_RC),[https://github.com/pivx-project/pivx/issues],[pivx],[https://www.pivx.org/])
1111
AC_CONFIG_SRCDIR([src/validation.cpp])
1212
AC_CONFIG_HEADERS([src/config/pivx-config.h])

contrib/devtools/README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -38,31 +38,31 @@ Specifying `verbose` will list the full filenames of files of each category.
3838

3939
copyright\_header.py update \<base\_directory\> [verbose]
4040
---------------------------------------------------------
41-
Updates all the copyright headers of `The PIVX developers` which were
41+
Updates all the copyright headers of `The PIVX Core developers` which were
4242
changed in a year more recent than is listed. For example:
4343
```
44-
// Copyright (c) <firstYear>-<lastYear> The PIVX developers
44+
// Copyright (c) <firstYear>-<lastYear> The PIVX Core developers
4545
```
4646
will be updated to:
4747
```
48-
// Copyright (c) <firstYear>-<lastModifiedYear> The PIVX developers
48+
// Copyright (c) <firstYear>-<lastModifiedYear> The PIVX Core developers
4949
```
5050
where `<lastModifiedYear>` is obtained from the `git log` history.
5151

5252
This subcommand also handles copyright headers that have only a single year. In
5353
those cases:
5454
```
55-
// Copyright (c) <year> The PIVX developers
55+
// Copyright (c) <year> The PIVX Core developers
5656
```
5757
will be updated to:
5858
```
59-
// Copyright (c) <year>-<lastModifiedYear> The PIVX developers
59+
// Copyright (c) <year>-<lastModifiedYear> The PIVX Core developers
6060
```
6161
where the update is appropriate.
6262

6363
copyright\_header.py insert \<file\>
6464
------------------------------------
65-
Inserts a copyright header for `The PIVX developers` at the top of the
65+
Inserts a copyright header for `The PIVX Core developers` at the top of the
6666
file in either Python or C++ style as determined by the file extension. If the
6767
file is a Python file and it has `#!` starting the first line, the header is
6868
inserted in the line below it.
@@ -72,7 +72,7 @@ The copyright dates will be set to be `<year_introduced>-<current_year>` where
7272
`<year_introduced>` is equal to `<current_year>`, it will be set as a single
7373
year rather than two hyphenated years.
7474

75-
If the file already has a copyright for `The PIVX developers`, the
75+
If the file already has a copyright for `The PIVX Core developers`, the
7676
script will exit.
7777

7878
gen-manpages.sh

0 commit comments

Comments
 (0)