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

VERSIONBITS Fix #50

Merged
merged 1 commit into from
Apr 6, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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