Skip to content

Commit

Permalink
disable SPORK_116_TOT_SPLY_TRGT_EMISSION and SPORK_117_CIRC_SPLY_TRGT…
Browse files Browse the repository at this point in the history
…_EMISSION sporks, the dynamic rewards value will be determined by constant values
  • Loading branch information
pedro-at-decenomy committed Nov 19, 2024
1 parent 9469fba commit 704e36c
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 6 deletions.
4 changes: 2 additions & 2 deletions src/rewards.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -286,9 +286,9 @@ bool CRewards::ConnectBlock(CBlockIndex* pindex, CAmount nSubsidy, CCoinsViewCac
oss << "nCirculatingSupply without staked coins: " << FormatMoney(nCirculatingSupply) << std::endl;

// calculate target emissions
const auto nTotalEmissionRate = sporkManager.GetSporkValue(SPORK_116_TOT_SPLY_TRGT_EMISSION);
const auto nTotalEmissionRate = TOT_SPLY_TRGT_EMISSION;
oss << "nTotalEmissionRate: " << nTotalEmissionRate << std::endl;
const auto nCirculatingEmissionRate = sporkManager.GetSporkValue(SPORK_117_CIRC_SPLY_TRGT_EMISSION);
const auto nCirculatingEmissionRate = CIRC_SPLY_TRGT_EMISSION;
oss << "nCirculatingEmissionRate: " << nCirculatingEmissionRate << std::endl;
const auto nActualEmission = nSubsidy * nRewardAdjustmentInterval;
oss << "nActualEmission: " << FormatMoney(nActualEmission) << std::endl;
Expand Down
3 changes: 3 additions & 0 deletions src/rewards.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@

#include "main.h"

static const int64_t TOT_SPLY_TRGT_EMISSION = 50000;
static const int64_t CIRC_SPLY_TRGT_EMISSION = 100000;

class CBlockchainStatus
{
public:
Expand Down
4 changes: 2 additions & 2 deletions src/spork.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,6 @@ std::vector<CSporkDef> sporkDefs = {
MAKE_SPORK_DEF(SPORK_112_MASTERNODE_LAST_PAID_V2, 4070908800ULL), // OFF
MAKE_SPORK_DEF(SPORK_114_MN_PAYMENT_V2, 4070908800ULL), // OFF
MAKE_SPORK_DEF(SPORK_115_MN_COLLATERAL_WINDOW, 4070908800ULL), // OFF
MAKE_SPORK_DEF(SPORK_116_TOT_SPLY_TRGT_EMISSION, 50000ULL), // 5%
MAKE_SPORK_DEF(SPORK_117_CIRC_SPLY_TRGT_EMISSION, 100000ULL), // 10%
MAKE_SPORK_DEF(SPORK_118_MIN_BASE_FEE, 0ULL), // OFF
MAKE_SPORK_DEF(SPORK_119_MIN_ECON_FEE, 0ULL), // OFF

Expand All @@ -52,6 +50,8 @@ std::vector<CSporkDef> sporkDefs = {
MAKE_SPORK_DEF(SPORK_18_NOOP, 4070908800ULL), // OFF
MAKE_SPORK_DEF(SPORK_19_NOOP, 4070908800ULL), // OFF
MAKE_SPORK_DEF(SPORK_113_NOOP, 4070908800ULL), // OFF
MAKE_SPORK_DEF(SPORK_116_NOOP, 4070908800ULL), // OFF
MAKE_SPORK_DEF(SPORK_117_NOOP, 4070908800ULL), // OFF
};

CSporkManager sporkManager;
Expand Down
4 changes: 2 additions & 2 deletions src/sporkid.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,6 @@ enum SporkId : int32_t {
SPORK_112_MASTERNODE_LAST_PAID_V2 = 10111,
SPORK_114_MN_PAYMENT_V2 = 10113,
SPORK_115_MN_COLLATERAL_WINDOW = 10114,
SPORK_116_TOT_SPLY_TRGT_EMISSION = 10115,
SPORK_117_CIRC_SPLY_TRGT_EMISSION = 10116,
SPORK_118_MIN_BASE_FEE = 10117,
SPORK_119_MIN_ECON_FEE = 10118,

Expand All @@ -50,6 +48,8 @@ enum SporkId : int32_t {
SPORK_18_NOOP = 10017,
SPORK_19_NOOP = 10018,
SPORK_113_NOOP = 10112,
SPORK_116_NOOP = 10115,
SPORK_117_NOOP = 10116,
SPORK_INVALID = -1
};

Expand Down

0 comments on commit 704e36c

Please sign in to comment.