Skip to content

Commit

Permalink
Decrease effectiveness of timewarp attack (#45)
Browse files Browse the repository at this point in the history
* Decrease effectiveness of timewarp attack

* update block

* set blockheight

* Update comment with new height

* update version

* Increment version to 1.4.0

* Update clientversion.h
  • Loading branch information
egyptianbman authored and NickRHill committed Jun 15, 2018
1 parent 2ec9a88 commit 0b774f3
Show file tree
Hide file tree
Showing 9 changed files with 18 additions and 18 deletions.
4 changes: 2 additions & 2 deletions configure.ac
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
dnl require autoconf 2.60 (AS_ECHO/AS_ECHO_N)
AC_PREREQ([2.60])
define(_CLIENT_VERSION_MAJOR, 1)
define(_CLIENT_VERSION_MINOR, 3)
define(_CLIENT_VERSION_REVISION, 1)
define(_CLIENT_VERSION_MINOR, 4)
define(_CLIENT_VERSION_REVISION, 0)
define(_CLIENT_VERSION_BUILD, 51)
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)))
Expand Down
6 changes: 3 additions & 3 deletions contrib/debian/changelog
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
bitcoinz (1.3.0) stable; urgency=medium
bitcoinz (1.4.0) stable; urgency=high

* 1.3.0 release.
* 1.4.0 release.

-- The BitcoinZ Community <[email protected]> Sat, 10 June 2018 00:15:00 +0100
-- The BitcoinZ Community <[email protected]> Fri, 15 June 2018 00:15:00 +0100
2 changes: 1 addition & 1 deletion contrib/debian/control
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ Vcs-Git: https://github.com/btcz/bitcoinz.git
Vcs-Browser: https://github.com/btcz

Package: bitcoinz
Version: 1.3.0
Version: 1.4.0
Depends: ${shlibs:Depends}
Architecture: all
Description: BitcoinZ is a decentralized community project based on the Bitcoin and Zcash codebase.
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: "bitcoinz-1.3.0"
name: "bitcoinz-1.4.0"
enable_cache: true
distro: "debian"
suites:
Expand Down
6 changes: 3 additions & 3 deletions doc/man/bitcoinz-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 BITCOINZ-CLI "1" "June 2018" "bitcoinz-cli v1.3.0" "User Commands"
.TH BITCOINZ-CLI "1" "June 2018" "bitcoinz-cli v1.4.0" "User Commands"
.SH NAME
bitcoinz-cli \- manual page for bitcoinz-cli v1.3.0
bitcoinz-cli \- manual page for bitcoinz-cli v1.4.0
.SH DESCRIPTION
BitcoinZ RPC client version v1.3.0
BitcoinZ RPC client version v1.4.0
.PP
In order to ensure you are adequately protecting your privacy when using
BitcoinZ, please see <https://z.cash/support/security/index.html>.
Expand Down
6 changes: 3 additions & 3 deletions doc/man/bitcoinz-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 BITCOINZ-TX "1" "June 2018" "bitcoinz-tx v1.3.0" "User Commands"
.TH BITCOINZ-TX "1" "June 2018" "bitcoinz-tx v1.4.0" "User Commands"
.SH NAME
bitcoinz-tx \- manual page for bitcoinz-tx v1.3.0
bitcoinz-tx \- manual page for bitcoinz-tx v1.4.0
.SH DESCRIPTION
BitcoinZ bitcoinz\-tx utility version v1.3.0
BitcoinZ bitcoinz\-tx utility version v1.4.0
.SS "Usage:"
.TP
bitcoinz\-tx [options] <hex\-tx> [commands]
Expand Down
6 changes: 3 additions & 3 deletions doc/man/bitcoinzd.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 BITCOINZD "1" "June 2018" "bitcoinzd v1.3.0" "User Commands"
.TH BITCOINZD "1" "June 2018" "bitcoinzd v1.4.0" "User Commands"
.SH NAME
bitcoinzd \- manual page for bitcoinzd v1.3.0
bitcoinzd \- manual page for bitcoinzd v1.4.0
.SH DESCRIPTION
BitcoinZ Daemon version v1.3.0
BitcoinZ Daemon version v1.4.0
.PP
In order to ensure you are adequately protecting your privacy when using
BitcoinZ, please see <https://z.cash/support/security/>.
Expand Down
2 changes: 1 addition & 1 deletion src/clientversion.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

//! These need to be macros, as clientversion.cpp's and bitcoin*-res.rc's voodoo requires it
#define CLIENT_VERSION_MAJOR 1
#define CLIENT_VERSION_MINOR 3
#define CLIENT_VERSION_MINOR 4
#define CLIENT_VERSION_REVISION 0
#define CLIENT_VERSION_BUILD 51

Expand Down
2 changes: 1 addition & 1 deletion src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3010,7 +3010,7 @@ bool CheckBlockHeader(const CBlockHeader& block, CValidationState& state, bool f
return state.Invalid(error("CheckBlockHeader(): block timestamp too far in the future"),
REJECT_INVALID, "time-too-new");

// starting at height 158750, decrease to 30 minute window to decrease effectiveness of timewarp attack.
// starting at height 159300, decrease to 30 minute window to decrease effectiveness of timewarp attack.
else if (nHeight >= chainParams.GetNewTimeRule() && block.GetBlockTime() > GetAdjustedTime() + 30 * 60)
return state.Invalid(error("CheckBlockHeader(): block timestamp too far in the future"),
REJECT_INVALID, "time-too-new");
Expand Down

0 comments on commit 0b774f3

Please sign in to comment.