Skip to content

Commit

Permalink
Hardfork: Introduce new protocol version & versionbits.
Browse files Browse the repository at this point in the history
Protocol version: 70016 (BTG_HARD_FORK_VERSION)
Version bits: 0x60000000
  • Loading branch information
h4x3rotab committed Sep 29, 2017
1 parent 204af32 commit 505a8bd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion src/version.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
* network protocol versioning
*/

static const int PROTOCOL_VERSION = 70015;
static const int PROTOCOL_VERSION = 70016;

//! initial proto version, to be increased after version/verack negotiation
static const int INIT_PROTO_VERSION = 209;
Expand Down Expand Up @@ -42,4 +42,6 @@ static const int SHORT_IDS_BLOCKS_VERSION = 70014;
//! not banning for invalid compact blocks starts with this version
static const int INVALID_CB_NO_BAN_VERSION = 70015;

static const int BTG_HARD_FORK_VERSION = 70016;

#endif // BITCOIN_VERSION_H
2 changes: 1 addition & 1 deletion src/versionbits.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
/** What block version to use for new blocks (pre versionbits) */
static const int32_t VERSIONBITS_LAST_OLD_BLOCK_VERSION = 4;
/** What bits to set in version for versionbits blocks */
static const int32_t VERSIONBITS_TOP_BITS = 0x20000000UL;
static const int32_t VERSIONBITS_TOP_BITS = 0x60000000UL;
/** What bitmask determines whether versionbits is in use */
static const int32_t VERSIONBITS_TOP_MASK = 0xE0000000UL;
/** Total bits available for versionbits */
Expand Down

0 comments on commit 505a8bd

Please sign in to comment.