Skip to content

Commit

Permalink
Merge branch 'master' into 2023_DMN_GUI
Browse files Browse the repository at this point in the history
  • Loading branch information
Liquid369 authored Mar 8, 2023
2 parents 8d1de7f + 9240e15 commit 4679799
Show file tree
Hide file tree
Showing 655 changed files with 1,052 additions and 1,006 deletions.
81 changes: 40 additions & 41 deletions .github/workflows/build-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,18 +6,18 @@ jobs:
env:
SHELLCHECK_VERSION: v0.7.1
LC_ALL: C
runs-on: ubuntu-18.04
runs-on: ubuntu-20.04
defaults:
run:
shell: bash
steps:
- name: Checkout Repo
uses: actions/checkout@v2
uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Initialize Python
uses: actions/setup-python@v2
uses: actions/setup-python@v4
with:
python-version: 3.6

Expand Down Expand Up @@ -74,7 +74,7 @@ jobs:
matrix:
config:
- name: Linux
os: ubuntu-18.04
os: ubuntu-20.04
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
cc: gcc
cxx: g++
Expand All @@ -87,7 +87,7 @@ jobs:

steps:
- name: Get Source
uses: actions/checkout@v2
uses: actions/checkout@v3

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

- name: ccache cache files
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: .ccache
key: cmake-${{ matrix.config.name }}-ccache-${{ steps.ccache_cache_timestamp.outputs.timestamp }}
Expand Down Expand Up @@ -144,41 +141,41 @@ jobs:
matrix:
config:
- name: ARM 32-bit
os: ubuntu-18.04
os: ubuntu-20.04
host: arm-linux-gnueabihf
apt_get: python3 g++-arm-linux-gnueabihf

- name: AARCH64
os: ubuntu-18.04
os: ubuntu-20.04
host: aarch64-linux-gnu
apt_get: python3 g++-aarch64-linux-gnu

- name: Win64
os: ubuntu-18.04
os: ubuntu-20.04
host: x86_64-w64-mingw32
apt_get: python3 nsis g++-mingw-w64-x86-64 wine-binfmt wine64

- name: 32-bit + dash
os: ubuntu-18.04
os: ubuntu-20.04
host: i686-pc-linux-gnu
apt_get: g++-multilib python3-zmq

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

- name: macOS 10.12
os: ubuntu-18.04
os: ubuntu-20.04
host: x86_64-apple-darwin16
apt_get: cmake imagemagick libcap-dev librsvg2-bin libz-dev libbz2-dev libtiff-tools python3-dev python3-setuptools
XCODE_VERSION: 11.3.1
XCODE_BUILD_ID: 11C505

steps:
- name: Get Source
uses: actions/checkout@v2
uses: actions/checkout@v3

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

- name: depends cache files
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: |
depends/built
Expand Down Expand Up @@ -254,7 +248,8 @@ jobs:
matrix:
config:
- name: ARM 32-bit [GOAL:install] [no unit or functional tests]
os: ubuntu-18.04
id: ARM32
os: ubuntu-20.04
host: arm-linux-gnueabihf
apt_get: python3 g++-arm-linux-gnueabihf
unit_tests: false
Expand All @@ -265,7 +260,8 @@ jobs:
BITCOIN_CONFIG: "--with-gui=qt5 --enable-glibc-back-compat --enable-reduce-exports --disable-online-rust CXXFLAGS=-Wno-psabi"

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

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

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

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

- name: x86_64 Linux [GOAL:install] [bionic] [no depends only system libs]
os: ubuntu-18.04
- name: x86_64 Linux [GOAL:install] [focal] [no depends only system libs]
id: Linux-x86_64-nodepends
os: ubuntu-20.04
host: x86_64-unknown-linux-gnu
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
unit_tests: true
Expand All @@ -312,7 +312,8 @@ jobs:
BITCOIN_CONFIG: "--enable-zmq --with-incompatible-bdb --with-gui=qt5 CPPFLAGS='-DARENA_DEBUG -DDEBUG_LOCKORDER'"

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

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

steps:
- name: Get Source
uses: actions/checkout@v2
uses: actions/checkout@v3

- name: Setup Environment
run: |
Expand All @@ -352,7 +354,7 @@ jobs:
- name: depends cache files
if: matrix.config.no_depends != 1
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: |
depends/built
Expand All @@ -364,20 +366,17 @@ jobs:
- name: Prepare ccache timestamp
id: ccache_cache_timestamp
shell: cmake -P {0}
run: |
string(TIMESTAMP current_date "%Y-%m-%d-%H;%M;%S" UTC)
message("::set-output name=timestamp::${current_date}")
run: echo "timestamp=$(date +%Y-%m-%dT%H:%M:%S%z)" >> $GITHUB_OUTPUT

- name: ccache cache files
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: |
.ccache
.pivx-params
key: ${{ matrix.config.name }}-ccache-${{ steps.ccache_cache_timestamp.outputs.timestamp }}
key: ${{ matrix.config.id }}-ccache-${{ steps.ccache_cache_timestamp.outputs.timestamp }}
restore-keys: |
${{ matrix.config.name }}-ccache-
${{ matrix.config.id }}-ccache-
- name: Build Wallet
run: |
Expand Down
6 changes: 3 additions & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ if(CCACHE_PROGRAM)
message(STATUS "Found ccache: ${CCACHE_PROGRAM}")
set_property(GLOBAL PROPERTY RULE_LAUNCH_COMPILE "${CCACHE_PROGRAM}")
# Set up wrapper scripts
set(C_LAUNCHER "${CCACHE_PROGRAM}")
set(CXX_LAUNCHER "${CCACHE_PROGRAM}")
set(CMAKE_C_COMPILER_LAUNCHER "${CCACHE_PROGRAM}")
set(CMAKE_CXX_COMPILER_LAUNCHER "${CCACHE_PROGRAM}")
endif()

# Search for the cargo and rustc compilers required to build libzcashrust
Expand Down Expand Up @@ -85,7 +85,7 @@ find_package(GMP REQUIRED)
find_package(ZMQ)
find_package(Miniupnp)
find_package(NAT-PMP)
find_package(Boost COMPONENTS system filesystem thread REQUIRED)
find_package(Boost COMPONENTS system filesystem chrono thread REQUIRED)
find_package(Sodium REQUIRED)

# run autogen.sh if missing header files from configure on Linux/Mac
Expand Down
13 changes: 12 additions & 1 deletion Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,18 @@ $(BITCOIN_CLI_BIN): FORCE
$(MAKE) -C src $(@F)

if USE_LCOV
LCOV_FILTER_PATTERN=-p "/usr/include/" -p "/usr/lib/" -p "src/leveldb/" -p "src/crc32c/" -p "src/univalue" -p "src/secp256k1"
LCOV_FILTER_PATTERN= \
-p "/usr/local/" \
-p "/usr/include/" \
-p "/usr/lib/" \
-p "/usr/lib64" \
-p "src/leveldb/" \
-p "src/bench/" \
-p "src/crc32c/" \
-p "src/crypto/ctaes/" \
-p "src/univalue" \
-p "src/secp256k1" \
-p "depends"

baseline.info:
$(LCOV) -c -i -d $(abs_builddir)/src -o $@
Expand Down
2 changes: 1 addition & 1 deletion build-aux/snap/snapcraft.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# Copyright (c) 2019 The PIVX developers
name: pivx-core
base: core18
version: 5.4.99
version: 5.5.99
summary: PIVX (Private – Instant – Verified – Transaction)
description: |
PIVX is an MIT licensed,
Expand Down
4 changes: 2 additions & 2 deletions configure.ac
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
dnl require autoconf 2.60 (AS_ECHO/AS_ECHO_N)
AC_PREREQ([2.60])
define(_CLIENT_VERSION_MAJOR, 5)
define(_CLIENT_VERSION_MINOR, 4)
define(_CLIENT_VERSION_MINOR, 5)
define(_CLIENT_VERSION_REVISION, 99)
define(_CLIENT_VERSION_BUILD, 0)
define(_CLIENT_VERSION_RC, 0)
define(_CLIENT_VERSION_IS_RELEASE, false)
define(_COPYRIGHT_YEAR, 2021)
define(_COPYRIGHT_YEAR, 2023)
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/])
AC_CONFIG_SRCDIR([src/validation.cpp])
AC_CONFIG_HEADERS([src/config/pivx-config.h])
Expand Down
14 changes: 7 additions & 7 deletions contrib/devtools/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,31 +38,31 @@ Specifying `verbose` will list the full filenames of files of each category.

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

This subcommand also handles copyright headers that have only a single year. In
those cases:
```
// Copyright (c) <year> The PIVX developers
// Copyright (c) <year> The PIVX Core developers
```
will be updated to:
```
// Copyright (c) <year>-<lastModifiedYear> The PIVX developers
// Copyright (c) <year>-<lastModifiedYear> The PIVX Core developers
```
where the update is appropriate.

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

If the file already has a copyright for `The PIVX developers`, the
If the file already has a copyright for `The PIVX Core developers`, the
script will exit.

gen-manpages.sh
Expand Down
Loading

0 comments on commit 4679799

Please sign in to comment.