Skip to content

Commit

Permalink
Stake modifier work
Browse files Browse the repository at this point in the history
Change MAKX_MONEY value from 21M to 10M.
Sync improvements for older clients.
TimeHash wrapper for stake modifier hash timestamps (fixes old uint256 sorting issue).
Some further work to stake modifier genetion (WIP)
Added some debug code for debugging stake modier generation
:q
q
  • Loading branch information
akyo8 committed Feb 19, 2021
1 parent c8e1daf commit 63bba49
Show file tree
Hide file tree
Showing 6 changed files with 587 additions and 11 deletions.
2 changes: 1 addition & 1 deletion src/amount.h
Expand Up @@ -22,7 +22,7 @@ static const CAmount COIN = 100000000;
* critical; in unusual circumstances like a(nother) overflow bug that allowed
* for the creation of coins out of thin air modification could lead to a fork.
* */
static const CAmount MAX_MONEY = 21000000 * COIN;
static const CAmount MAX_MONEY = 10000000 * COIN;
inline bool MoneyRange(const CAmount& nValue) { return (nValue >= 0 && nValue <= MAX_MONEY); }

#endif // BITCOIN_AMOUNT_H
1 change: 1 addition & 0 deletions src/chain.h
Expand Up @@ -69,6 +69,7 @@ class CBlockFileInfo
nUndoSize = 0;
nFlags = 0;
nStakeModifier = 0;
nStakeModifierChecksum = 0;
hashProofOfStake = arith_uint256();
prevoutStake.SetNull();
nStakeTime = 0;
Expand Down
2 changes: 1 addition & 1 deletion src/init.cpp
Expand Up @@ -59,7 +59,7 @@
#include <util/threadnames.h>
#include <util/translation.h>
#include <validation.h>

#include <pos.h>
#include <validationinterface.h>
#include <walletinitinterface.h>

Expand Down

0 comments on commit 63bba49

Please sign in to comment.