Skip to content

Commit

Permalink
rename spork
Browse files Browse the repository at this point in the history
  • Loading branch information
sapphire-pt committed Jan 9, 2021
1 parent 8563131 commit df8f051
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3630,7 +3630,7 @@ bool CheckBlockTime(const CBlockHeader& block, CValidationState& state, CBlockIn
return state.DoS(100, error("%s : block timestamp mask not valid", __func__), REJECT_INVALID, "invalid-time-mask");

// Check block time limit
if(blockTime > sporkManager.GetSporkValue(SPORK_104_MAX_BLOCKS)) {
if(blockTime > sporkManager.GetSporkValue(SPORK_104_MAX_BLOCK_TIME)) {
return state.Invalid(error("%s : block reached time limit", __func__), REJECT_INVALID, "time-limit");
}

Expand Down
2 changes: 1 addition & 1 deletion src/spork.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ std::vector<CSporkDef> sporkDefs = {
MAKE_SPORK_DEF(SPORK_101_SERVICES_ENFORCEMENT, 4070908800ULL), // OFF
MAKE_SPORK_DEF(SPORK_102_FORCE_ENABLED_MASTERNODE, 4070908800ULL), // OFF
MAKE_SPORK_DEF(SPORK_103_PING_MESSAGE_SALT, 4070908800ULL), // OFF
MAKE_SPORK_DEF(SPORK_104_MAX_BLOCKS, 4070908800ULL), // OFF
MAKE_SPORK_DEF(SPORK_104_MAX_BLOCK_TIME, 4070908800ULL), // OFF

// Unused dummy sporks.
//TODO: Needed to be removed in the future when the old nodes cut from the network.
Expand Down
2 changes: 1 addition & 1 deletion src/sporkid.h
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ enum SporkId : int32_t {
SPORK_101_SERVICES_ENFORCEMENT = 10100,
SPORK_102_FORCE_ENABLED_MASTERNODE = 10101,
SPORK_103_PING_MESSAGE_SALT = 10102,
SPORK_104_MAX_BLOCKS = 10103,
SPORK_104_MAX_BLOCK_TIME = 10103,

// Unused dummy sporks.
//TODO needed to be removed in the future when the old nodes cut from the network.
Expand Down

0 comments on commit df8f051

Please sign in to comment.