Skip to content

Commit

Permalink
Merge branch 'blackbird'
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisgibson01 committed Oct 18, 2023
2 parents 89d55a8 + 1728cfb commit e31cc43
Show file tree
Hide file tree
Showing 75 changed files with 1,081 additions and 428 deletions.
4 changes: 3 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ endforeach()

option(enable_debug "Enable debug (lockorder)" OFF)
if(enable_debug)
add_definitions(-DDEBUG -DDEBUG_LOCKORDER)
add_definitions(-DDEBUG -DDEBUG_LOCKORDER -D_GLIBCXX_ASSERTIONS)
endif()

option(enable_metrics "Enable metrics" OFF)
Expand Down Expand Up @@ -110,6 +110,8 @@ set(CMAKE_MODULE_PATH
${CMAKE_CURRENT_SOURCE_DIR}/cmake/modules
)

set(CMAKE_EXPORT_COMPILE_COMMANDS ON)

# If ccache is available, then use it.
find_program(CCACHE ccache)
if(CCACHE)
Expand Down
4 changes: 2 additions & 2 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ dnl require autoconf 2.60 (AS_ECHO/AS_ECHO_N)
AC_PREREQ([2.60])
define(_CLIENT_VERSION_MAJOR, 1)
define(_CLIENT_VERSION_MINOR, 0)
define(_CLIENT_VERSION_REVISION, 15)
define(_CLIENT_VERSION_BUILD, 1)
define(_CLIENT_VERSION_REVISION, 16)
define(_CLIENT_VERSION_BUILD, 0)
define(_COPYRIGHT_YEAR, 2023)
define(_COPYRIGHT_HOLDERS,[The %s Association])
define(_COPYRIGHT_HOLDERS_SUBSTITUTION,[[Bitcoin]])
Expand Down
12 changes: 0 additions & 12 deletions contrib/devtools/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,18 +8,6 @@ check-doc.py
Check if all command line args are documented. The return value indicates the
number of undocumented args.

clang-format-diff.py
===================

A script to format unified git diffs according to [.clang-format](../../src/.clang-format).

For instance, to format the last commit with 0 lines of context,
the script should be called from the git root folder as follows.

```
git diff -U0 HEAD~1.. | ./contrib/devtools/clang-format-diff.py -p1 -i -v
```

copyright\_header.py
====================

Expand Down
163 changes: 0 additions & 163 deletions contrib/devtools/clang-format-diff.py

This file was deleted.

2 changes: 1 addition & 1 deletion contrib/gitian-descriptors/gitian-linux.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
name: "bitcoin-sv-1.0.15.1-linux"
name: "bitcoin-sv-1.0.16-linux"
enable_cache: true
suites:
- "focal"
Expand Down
2 changes: 1 addition & 1 deletion contrib/gitian-descriptors/gitian-win.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
name: "bitcoin-sv-1.0.15.1-win"
name: "bitcoin-sv-1.0.16-win"
enable_cache: true
suites:
- "bionic"
Expand Down
2 changes: 1 addition & 1 deletion doc/Doxyfile
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ PROJECT_NAME = "Bitcoin SV"
# could be handy for archiving the generated documentation or if some version
# control system is used.

PROJECT_NUMBER = 1.0.15.1
PROJECT_NUMBER = 1.0.16

# Using the PROJECT_BRIEF tag one can provide an optional one line description
# for a project that appears at the top of each page and should give viewer a
Expand Down
5 changes: 2 additions & 3 deletions doc/developer-notes.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,8 @@ accepting code contributions.
Various coding styles have been used during the history of the codebase,
and the result is not very consistent. However, we're now trying to converge to
a single style, so please use it in new code. Old code will be converted
gradually and you are encouraged to use the provided
[clang-format-diff script](/contrib/devtools/README.md#clang-format-diffpy)
to clean up the patch automatically before submitting a pull request.
gradually and you are encouraged to use clang-format-diff to clean up the patch
automatically before submitting a pull request.

- Basic rules specified in [src/.clang-format](/src/.clang-format).
- Braces on new lines for namespaces, classes, functions, methods.
Expand Down
8 changes: 4 additions & 4 deletions doc/man/bitcoin-cli.1
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
.\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.48.1.
.TH BITCOIN-CLI "1" "June 2023" "bitcoin-cli v1.0.15.1" "User Commands"
.\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.49.3.
.TH BITCOIN-CLI "1" "September 2023" "bitcoin-cli v1.0.16.0" "User Commands"
.SH NAME
bitcoin-cli \- manual page for bitcoin-cli v1.0.15.1
bitcoin-cli \- manual page for bitcoin-cli v1.0.16.0
.SH DESCRIPTION
Bitcoin SV RPC client version v1.0.15.1\-dev
Bitcoin SV RPC client version v1.0.16.0\-dev
.SS "Usage:"
.IP
bitcoin\-cli [options] Send command to Bitcoin SV
Expand Down
8 changes: 4 additions & 4 deletions doc/man/bitcoin-tx.1
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
.\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.48.1.
.TH BITCOIN-TX "1" "June 2023" "bitcoin-tx v1.0.15.1" "User Commands"
.\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.49.3.
.TH BITCOIN-TX "1" "September 2023" "bitcoin-tx v1.0.16.0" "User Commands"
.SH NAME
bitcoin-tx \- manual page for bitcoin-tx v1.0.15.1
bitcoin-tx \- manual page for bitcoin-tx v1.0.16.0
.SH DESCRIPTION
Bitcoin SV bitcoin\-tx utility version v1.0.15.1\-dev
Bitcoin SV bitcoin\-tx utility version v1.0.16.0\-dev
.SS "Usage:"
.TP
bitcoin\-tx [options] <hex\-tx> [commands]
Expand Down
8 changes: 4 additions & 4 deletions doc/man/bitcoind.1
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
.\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.48.1.
.TH BITCOIND "1" "June 2023" "bitcoind v1.0.15.1" "User Commands"
.\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.49.3.
.TH BITCOIND "1" "September 2023" "bitcoind v1.0.16.0" "User Commands"
.SH NAME
bitcoind \- manual page for bitcoind v1.0.15.1
bitcoind \- manual page for bitcoind v1.0.16.0
.SH DESCRIPTION
Bitcoin SV version v1.0.15.1\-dev
Bitcoin SV version v1.0.16.0\-dev
.SS "Usage:"
.TP
bitcoind [options]
Expand Down
22 changes: 22 additions & 0 deletions doc/release-notes-v1.0.15.1.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# Bitcoin SV Node software – v1.0.15.1 Release

Overview
========

The 1.0.15.1 node release is a recommended upgrade from version 1.0.15.

Features in 1.0.15.1
--------------------

* Refactor to remove possible exploit in p2p layer.
* Ecosystem improvement proposal.

Other items
-----------

* Additional functional tests.

New or modified configuration options
-------------------------------------

* None
23 changes: 14 additions & 9 deletions doc/release-notes.md
Original file line number Diff line number Diff line change
@@ -1,22 +1,27 @@
# Bitcoin SV Node software – v1.0.15.1 Release
# Bitcoin SV Node software – v1.0.16 Release


Overview
========

The 1.0.15.1 node release is a recommended upgrade from version 1.0.15.
The 1.0.16 node release is a recommended upgrade from version 1.0.15.1.


Features in 1.0.15.1
Features in 1.0.16
--------------------

* Refactor to remove possible exploit in p2p layer.
* SAST scan updates to improve code safety.
* Tuned compiler configuration parameters.
* Tuned build benchmark configuration parameters.
* Fixed core dump in shutdown routine occasionally encountered while running the functional tests framework.
* Address sanitizer bug fixes.
* Guards against a potential race condition.
* Thread management optimisation.
* Ecosystem improvement proposal.


Other items
-----------

* Additional functional tests.

New or modified configuration options
-------------------------------------
* STN Reset - includes an updated chain height block hash.

* None
2 changes: 2 additions & 0 deletions src/Makefile.test.include
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ BITCOIN_TESTS =\
test/addrman_tests.cpp \
test/amount_tests.cpp \
test/allocator_tests.cpp \
test/array_parser_tests.cpp \
test/base32_tests.cpp \
test/base58_tests.cpp \
test/base64_tests.cpp \
Expand Down Expand Up @@ -118,6 +119,7 @@ BITCOIN_TESTS =\
test/miner_info_ref_tests.cpp \
test/miner_tests.cpp \
test/minerid_tests.cpp \
test/mod_n_byte_parser.h \
test/msg_buffer_tests.cpp \
test/msg_parser_buffer_tests.cpp \
test/multisig_tests.cpp \
Expand Down
10 changes: 9 additions & 1 deletion src/arith_uint256.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,8 @@ template unsigned int base_uint<256>::bits() const;
// This implementation directly uses shifts instead of going through an
// intermediate MPI representation.
arith_uint256 &arith_uint256::SetCompact(uint32_t nCompact, bool *pfNegative,
bool *pfOverflow) {
bool *pfOverflow)
{
int nSize = nCompact >> 24;
uint32_t nWord = nCompact & 0x007fffff;
if (nSize <= 3) {
Expand Down Expand Up @@ -228,3 +229,10 @@ arith_uint256 UintToArith256(const uint256 &a) {
b.pn[x] = ReadLE32(a.begin() + x * 4);
return b;
}

std::ostream& operator<<(std::ostream& os, const arith_uint256& a)
{
os << a.ToString();
return os;
}

1 change: 1 addition & 0 deletions src/arith_uint256.h
Original file line number Diff line number Diff line change
Expand Up @@ -293,6 +293,7 @@ class arith_uint256 : public base_uint<256> {
bool *pfOverflow = nullptr);
uint32_t GetCompact(bool fNegative = false) const;

friend std::ostream& operator<<(std::ostream&, const arith_uint256&);
friend uint256 ArithToUint256(const arith_uint256 &);
friend arith_uint256 UintToArith256(const uint256 &);
};
Expand Down

0 comments on commit e31cc43

Please sign in to comment.