Skip to content
This repository has been archived by the owner on Mar 13, 2024. It is now read-only.

Commit

Permalink
Merge pull request #50 from ReinhardvdBerg/patch-5
Browse files Browse the repository at this point in the history
VERSIONBITS Fix
  • Loading branch information
digibyte committed Apr 6, 2017
2 parents 17bd990 + 8be6196 commit e249996
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/versionbits.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,13 @@
#include <map>

/** What block version to use for new blocks (pre versionbits) */
static const int32_t VERSIONBITS_LAST_OLD_BLOCK_VERSION = 4;
static const int32_t VERSIONBITS_LAST_OLD_BLOCK_VERSION = 2;
/** What bits to set in version for versionbits blocks */
static const int32_t VERSIONBITS_TOP_BITS = 0x20000UL;
static const int32_t VERSIONBITS_TOP_BITS = 0x20000002UL;
/** What bitmask determines whether versionbits is in use */
static const int32_t VERSIONBITS_TOP_MASK = 0xF0000UL;
static const int32_t VERSIONBITS_TOP_MASK = 0xF0000000UL;
/** Total bits available for versionbits */
static const int32_t VERSIONBITS_NUM_BITS = 16;
/** Total bits used for Multi Algo */
static const int32_t VERSIONBITS_NUM_BITS_TO_SKIP = 12;

enum ThresholdState {
THRESHOLD_DEFINED,
Expand Down

0 comments on commit e249996

Please sign in to comment.