Skip to content

Commit

Permalink
Merge pull request #332 from HorizenOfficial/cr/prepare_release_2.0.2…
Browse files Browse the repository at this point in the history
…2_AddressIndexing

prepare release 2.0.22 address indexing
  • Loading branch information
cronicc authored Oct 19, 2020
2 parents 68a2721 + 24a24f2 commit 61c70c3
Show file tree
Hide file tree
Showing 14 changed files with 228 additions and 126 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Zen 2.0.21-1-bitcore
Zen 2.0.22-bitcore
==============

What is Horizen?
Expand Down
6 changes: 3 additions & 3 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@ dnl require autoconf 2.60 (AS_ECHO/AS_ECHO_N)
AC_PREREQ([2.60])
define(_CLIENT_VERSION_MAJOR, 2)
define(_CLIENT_VERSION_MINOR, 0)
define(_CLIENT_VERSION_REVISION, 21)
define(_CLIENT_VERSION_BUILD, 51)
define(_CLIENT_VERSION_REVISION, 22)
define(_CLIENT_VERSION_BUILD, 50)
define(_ZC_BUILD_VAL, m4_if(m4_eval(_CLIENT_VERSION_BUILD < 25), 1, m4_incr(_CLIENT_VERSION_BUILD), m4_eval(_CLIENT_VERSION_BUILD < 50), 1, m4_eval(_CLIENT_VERSION_BUILD - 24), m4_eval(_CLIENT_VERSION_BUILD == 50), 1, , m4_eval(_CLIENT_VERSION_BUILD - 50)))
define(_CLIENT_VERSION_SUFFIX, m4_if(m4_eval(_CLIENT_VERSION_BUILD < 25), 1, _CLIENT_VERSION_REVISION-beta$1, m4_eval(_CLIENT_VERSION_BUILD < 50), 1, _CLIENT_VERSION_REVISION-rc$1, m4_eval(_CLIENT_VERSION_BUILD == 50), 1, _CLIENT_VERSION_REVISION, _CLIENT_VERSION_REVISION-$1)))
define(_CLIENT_VERSION_IS_RELEASE, true)
define(_COPYRIGHT_YEAR, 2019)
define(_COPYRIGHT_YEAR, 2020)
AC_INIT([Zcash],[_CLIENT_VERSION_MAJOR._CLIENT_VERSION_MINOR._CLIENT_VERSION_SUFFIX(_ZC_BUILD_VAL)],[https://github.com/zcash/zcash/issues],[zcash])
AC_CONFIG_SRCDIR([src/main.cpp])
AC_CONFIG_HEADERS([src/config/bitcoin-config.h])
Expand Down
17 changes: 10 additions & 7 deletions doc/authors.md
Original file line number Diff line number Diff line change
@@ -1,29 +1,30 @@
Zcash Contributors
==================

Jack Grigg (768)
Jack Grigg (773)
Simon Liu (338)
FranckDG (219)
Sean Bowe (204)
Daira Hopwood (142)
cronicc (122)
Wladimir J. van der Laan (122)
Nathan Wilcox (106)
cronicc (103)
Jay Graber (75)
Taylor Hornby (74)
Jonas Schnelli (74)
Taylor Hornby (73)
Alberto Sala (58)
Cory Fields (45)
Kevin Gallagher (38)
MarcoOl94 (32)
MarcoOl94 (34)
pierstab (29)
syd (28)
Alberto Sala (27)
Pieter Wuille (24)
joshuayabut (20)
nomnombtc (18)
Paige Peterson (13)
fanquake (12)
Luke Dashjr (12)
abi87 (11)
MarcoFalke (11)
Jake Tarren (11)
hellcatz (10)
Expand All @@ -39,12 +40,12 @@ root (7)
Philip Kaufmann (7)
PeaStew (7)
Pavel Janík (6)
abi87 (5)
Patrick Strateman (5)
Johnathan Corgan (5)
Daniel Cousens (5)
str4d (4)
kpcyrd (4)
alsala (4)
Reza Barazesh (4)
Per Grön (4)
João Barbosa (4)
Expand Down Expand Up @@ -73,6 +74,7 @@ dexX7 (2)
daniel (2)
codeparticle (2)
calebogden (2)
ca333 (2)
aniemerg (2)
Stephen (2)
Scott (2)
Expand Down Expand Up @@ -106,18 +108,19 @@ Alex van der Peet (2)
Alberto Garoffolo (2)
Adam Weiss (2)
Adam Brown (2)
​Felix Ippolitov (1)
pier (1)
nickolay (1)
mrbandrews (1)
koljenovic (1)
kazcw (1)
isle2983 (1)
fgius (1)
ca333 (1)
ayleph (1)
Tom Ritter (1)
Stefano (1)
S. Matthew English (1)
PowerVANO (1)
Paragon Initiative Enterprises, LLC (1)
Oleksandr Iozhytsia (1)
Miles Manley (1)
Expand Down
14 changes: 7 additions & 7 deletions doc/man/zen-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.47.3.
.TH ZEN-CLI "1" "May 2020" "zen-cli v2.0.21-1" "User Commands"
.TH ZEN-CLI "1" "October 2020" "zen-cli v2.0.22" "User Commands"
.SH NAME
zen-cli \- manual page for zen-cli v2.0.21-1
zen-cli \- manual page for zen-cli v2.0.22
.SH DESCRIPTION
Horizen RPC client version v2.0.21-1
Horizen RPC client version v2.0.22
.SS "Usage:"
.TP
zen\-cli [options] <command> [params]
Expand Down Expand Up @@ -64,10 +64,10 @@ Timeout in seconds during HTTP requests, or 0 for no timeout. (default:
900)
.SH COPYRIGHT

Copyright (C) 2009-2019 The Bitcoin Core Developers
Copyright (C) 2015-2019 The Zcash Developers
Copyright (C) 2015-2019 Zdeveloper.org
Copyright (C) 2015-2019 Zen Blockchain Foundation
Copyright (C) 2009-2020 The Bitcoin Core Developers
Copyright (C) 2015-2020 The Zcash Developers
Copyright (C) 2015-2020 Zdeveloper.org
Copyright (C) 2015-2020 Zen Blockchain Foundation

This is experimental software.

Expand Down
14 changes: 7 additions & 7 deletions doc/man/zen-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.47.3.
.TH ZEN-TX "1" "May 2020" "zen-tx v2.0.21-1" "User Commands"
.TH ZEN-TX "1" "October 2020" "zen-tx v2.0.22" "User Commands"
.SH NAME
zen-tx \- manual page for zen-tx v2.0.21-1
zen-tx \- manual page for zen-tx v2.0.22
.SH DESCRIPTION
Zencash zen\-tx utility version v2.0.21-1
Zencash zen\-tx utility version v2.0.22
.SS "Usage:"
.TP
zen\-tx [options] <hex\-tx> [commands]
Expand Down Expand Up @@ -85,10 +85,10 @@ set=NAME:JSON\-STRING
Set register NAME to given JSON\-STRING
.SH COPYRIGHT

Copyright (C) 2009-2019 The Bitcoin Core Developers
Copyright (C) 2015-2019 The Zcash Developers
Copyright (C) 2015-2019 Zdeveloper.org
Copyright (C) 2015-2019 Zen Blockchain Foundation
Copyright (C) 2009-2020 The Bitcoin Core Developers
Copyright (C) 2015-2020 The Zcash Developers
Copyright (C) 2015-2020 Zdeveloper.org
Copyright (C) 2015-2020 Zen Blockchain Foundation

This is experimental software.

Expand Down
21 changes: 13 additions & 8 deletions doc/man/zend.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.47.3.
.TH ZEND "1" "May 2020" "zend v2.0.21-1" "User Commands"
.TH ZEND "1" "October 2020" "zend v2.0.22" "User Commands"
.SH NAME
zend \- manual page for zend v2.0.21-1
zend \- manual page for zend v2.0.22
.SH DESCRIPTION
Zen Daemon version v2.0.21-1
Zen Daemon version v2.0.22
.SS "Usage:"
.TP
zend [options]
Expand Down Expand Up @@ -51,7 +51,7 @@ Specify data directory
\fB\-disabledeprecation=\fR<version>
.IP
Disable block\-height node deprecation and automatic shutdown (example:
\fB\-disabledeprecation\fR=\fI\,2\/\fR.0.21-1)
\fB\-disabledeprecation\fR=\fI\,2\/\fR.0.22)
.HP
\fB\-exportdir=\fR<dir>
.IP
Expand Down Expand Up @@ -214,6 +214,11 @@ Tor control port to use if onion listening enabled (default:
.IP
Tor control port password (default: empty)
.HP
\fB\-tlsfallbacknontls=\fR<0 or 1>
.IP
If a TLS connection fails, the next connection attempt of the same peer
(based on IP address) takes place without TLS (default: 1)
.HP
\fB\-tlsvalidate=\fR<0 or 1>
.IP
Connect to peers only with valid certificates (default: 0)
Expand Down Expand Up @@ -518,10 +523,10 @@ Number of seconds between metrics refreshes (default: 1 if running in a
console, 600 otherwise)
.SH COPYRIGHT

Copyright (C) 2009-2019 The Bitcoin Core Developers
Copyright (C) 2015-2019 The Zcash Developers
Copyright (C) 2015-2019 Zdeveloper.org
Copyright (C) 2015-2019 Zen Blockchain Foundation
Copyright (C) 2009-2020 The Bitcoin Core Developers
Copyright (C) 2015-2020 The Zcash Developers
Copyright (C) 2015-2020 Zdeveloper.org
Copyright (C) 2015-2020 Zen Blockchain Foundation

This is experimental software.

Expand Down
107 changes: 107 additions & 0 deletions doc/release-notes/release-notes-2.0.22.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,107 @@
Notable changes
===============

* Soft Fork at mainnet block 835968/testnet block 735700 with minor changes to OP_CBAH handling
* Extend OP_CBAH unit tests
* Security hardening of TLS P2P code, only allow PFS ciphers, limit TLS versions to 1.2/1.3
* Extend TLS unit tests
* Extend the 'getblock' RPC command with additional verbosity level, adding transaction information in the format of the getrawtransaction RPC call
* Add fetch-params.ps1 powershell script for Windows trusted setup DL and verification
* Fix for gcc10 compatibility
* Updates of dependencies OpenSSL, Univalue, libsodium
* Rename GH organization to HorizenOfficial

Changelog
=========

Alberto Sala (31):
WIP:Replay protection fixes
Added gtest for new rpfixfork in forkmanager
Added py test for tx_null_replay with different msg sizes pre-post rp fix fork
Added some ut for checkblockatheight scripts
First implementation for verifying cbh script before cpu intensive sign verification
Added py test for replay protection fixes
Moved code for checking rp data from tx checker obj into a suited function commonly used; removed noisy traces
Minor changes to py test
Fixes and comments after albene code review
Removed status handling from rp attribute class and modified checker function
Removed redundant check for rp attributes
Added bool data member in rpAttributes to be set when cbh opcode is found in a script
Restored exact comparison against sizeof uint256 for hash in Solver; renamed test and fixed type in func name
WIP: preliminary modifications and traces, to be continued
Prevented TLS1.0/1.1 and added ciphers for PFS support in TLS 1.2; Moved net cleanup func from global obj dtor to static func; - Handled to error in TLS separatedly from others in order not to use non-TLS connection if this happens; Used non deprecated api in creating ssl ctx; added fix for Secure Client-Initiated Renegotiation DoS threat; added py test; added more traces and a new 'tls' category
Non-tls compatibility achieved via a build defined macro, is now set via -tlsfallbacknontls zend option
tls py test: using ciphers supported by several openssl versions for portability
Modifications after code review
Modifications after code review
Removed useless option setting
Modification to the list of cipher to support in TLS1.2
Fixed typo on tlsprotocols.py test
Removed #if0 block
Fix wrong bool condition assignment
Removed unused var in GetChance() func
Absorbing pr https://github.com/HorizenOfficial/zen/pull/321 with minor change
Added checks for minimal encoding height in rp
Added UTs for rp data encodings
Further modif and UT tests for minimal encoding
Modified check of minimal push using the same code of interpreter.cpp
Added test of tx with non minimal encoding in py script

Jack Grigg (5):
Add test vectors for small-order Ed25519 pubkeys
Patch libsodium 1.0.15 pubkey validation onto 1.0.18
Patch libsodium 1.0.15 signature validation onto 1.0.18
test: Minor tweaks to comments in LibsodiumPubkeyValidation
depends: Remove comments from libsodium signature validation patch

MarcoOl94 (2):
Porting getblock verbose improvement
Modified help of getblock

PowerVANO (1):
Added setup_zend.bat and fetch-params.ps1

Taylor Hornby (1):
Avoid names starting with __.

abi87 (6):
Cleanup headers and forward declarations
Added py test description
First changes following final code review
Renamed enum to allow for windows compilation
Fixed socket fd check for portability
Removed pass-by-value

alsala (4):
tls py test: fixed setting of unsupported cipher; fixed tls1.3 protocol connection
Fixed typo in a comment
Update src/net.h
Update src/init.cpp

ca333 (1):
update libsodium to v1.0.18

cronicc (19):
Update openssl from 1.1.1d to 1.1.1g
Update univalue to v1.1.1
Fix MacOS build issue "conversion from 'size_t' (aka 'unsigned long') to 'const UniValue' is ambiguous"
Replace calls to deprecated method push_back(Pair()) with pushKV()
Disable aria2 installation on MacOS and use wget as alternative downloader
CI fixes:
Rename org to HorizenOfficial
Remove redundant Building section from README
Update src/net.cpp
Update src/net.cpp
Fix typo
Set rpfix fork activation height
Extend fetch-params.ps1:
Set mainnet/testnet checkpoint blocks
Set next deprecation block 920000
Set version to 2.0.22, set copyright year 2020
Rename threads from zcash to horizen
Regenerate man pages
Add release-notes

​Felix Ippolitov (1):
Fix build with gcc10

18 changes: 10 additions & 8 deletions src/chainparams.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -149,11 +149,12 @@ class CMainParams : public CChainParams {
( 543000, uint256S("0x00000000111469e247ecb152e57c371147775b56173260950075dcb471614fed"))
( 596000, uint256S("0x000000000656846513b2d3faf3a70f59dc22fffcb8e14401ec5a17eec8994410"))
( 671000, uint256S("0x00000000097174dacaf850075917d1a24145fce88a800881ece709bb8f8746cf"))
( 724100, uint256S("0x000000000ab34fd9c61be9f10a11a97f63a0f26c8f530e67a6397fb9934709dc")),
1589319810, // * UNIX timestamp of last checkpoint block
14588555, // * total number of transactions between genesis and last checkpoint
( 724100, uint256S("0x000000000ab34fd9c61be9f10a11a97f63a0f26c8f530e67a6397fb9934709dc"))
( 812000, uint256S("0x0000000000bccf70e0d2caa0473279decddb798f456d5a4bb399898e00eb4ce9")),
1602660459, // * UNIX timestamp of last checkpoint block
17503039, // * total number of transactions between genesis and last checkpoint
// (the tx=... number in the SetBestChain debug.log lines)
11604 // * estimated number of transactions per day after checkpoint
12416 // * estimated number of transactions per day after checkpoint
// total number of tx / (checkpoint block height / (24 * 24))
};

Expand Down Expand Up @@ -245,11 +246,12 @@ class CTestNetParams : public CMainParams {
(467550, uint256S("0x0007f73f339ea99e920e83da38d7537ce7d0028d48e709c88b1b89adf521b4f9"))
(520000, uint256S("0x00052e65426a0ffbb90893208a6c89a82816abbed328fa2be5a647828609e61a"))
(595000, uint256S("0x0000da85ddc79fdd297e996d6b6b887fc5b345619b7a6726c496941dcf830966"))
(643000, uint256S("0x0000cabf39e3ac435d54b95c32e6173d6bb1b060066ecb7453d2146a0dd40947")),
1589272118, // * UNIX timestamp of last checkpoint block
1325872, // * total number of transactions between genesis and last checkpoint
(643000, uint256S("0x0000cabf39e3ac435d54b95c32e6173d6bb1b060066ecb7453d2146a0dd40947"))
(729000, uint256S("0x00013f6d5315f29094287bf0981b177098c5d467422bc4ab7764f88f11333f5f")),
1602709259, // * UNIX timestamp of last checkpoint block
1474883, // * total number of transactions between genesis and last checkpoint
// (the tx=... number in the SetBestChain debug.log lines)
1187 // total number of tx / (checkpoint block height / (24 * 24))
1165 // total number of tx / (checkpoint block height / (24 * 24))
};

// commented out - seems to make no sense but kept around for reference just in case
Expand Down
6 changes: 3 additions & 3 deletions src/clientversion.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@
//! These need to be macros, as clientversion.cpp's and bitcoin*-res.rc's voodoo requires it
#define CLIENT_VERSION_MAJOR 2
#define CLIENT_VERSION_MINOR 0
#define CLIENT_VERSION_REVISION 21
#define CLIENT_VERSION_BUILD 51
#define CLIENT_VERSION_REVISION 22
#define CLIENT_VERSION_BUILD 50

//! Set to true for release, false for prerelease or test build
#define CLIENT_VERSION_IS_RELEASE true
Expand All @@ -44,7 +44,7 @@
* Copyright year (2009-this)
* Todo: update this when changing our copyright comments in the source
*/
#define COPYRIGHT_YEAR 2019
#define COPYRIGHT_YEAR 2020

#endif //HAVE_CONFIG_H

Expand Down
2 changes: 1 addition & 1 deletion src/deprecation.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
#ifndef ZCASH_DEPRECATION_H
#define ZCASH_DEPRECATION_H

static const int APPROX_RELEASE_HEIGHT = 727104;
static const int APPROX_RELEASE_HEIGHT = 815168;
static const int WEEKS_UNTIL_DEPRECATION = 26;
static const int DEPRECATION_HEIGHT = APPROX_RELEASE_HEIGHT + (WEEKS_UNTIL_DEPRECATION * 7 * 24 * 24);

Expand Down
4 changes: 2 additions & 2 deletions src/init.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ void Shutdown()
/// for example if the data directory was found to be locked.
/// Be sure that anything that writes files or flushes caches only does this if the respective
/// module was initialized.
RenameThread("zcash-shutoff");
RenameThread("horizen-shutoff");
mempool.AddTransactionsUpdated(1);

StopHTTPRPC();
Expand Down Expand Up @@ -637,7 +637,7 @@ void CleanupBlockRevFiles()

void ThreadImport(std::vector<boost::filesystem::path> vImportFiles)
{
RenameThread("zcash-loadblk");
RenameThread("horizen-loadblk");
// -reindex
if (fReindex) {
CImportingNow imp;
Expand Down
Loading

0 comments on commit 61c70c3

Please sign in to comment.