mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-17 13:07:54 +02:00
Add pegged_asset field to consensus params
This commit is contained in:
parent
8df0f0e8be
commit
000ab241f7
2 changed files with 7 additions and 0 deletions
|
|
@ -96,6 +96,9 @@ public:
|
|||
consensus.BIP65Height = 388381; // 000000000000000004c2b624ed5d7756c508d90fd0da2c7c679febfa6c4735f0
|
||||
consensus.BIP66Height = 363725; // 00000000000000000379eaa19dce8c9b722d46ae6a57c2f1a988119488b50931
|
||||
consensus.powLimit = uint256S("00000000ffffffffffffffffffffffffffffffffffffffffffffffffffffffff");
|
||||
|
||||
consensus.pegged_asset = BITCOINID;
|
||||
|
||||
// Peg-ins Bitcoin headers must have higher difficulty target than this field
|
||||
// This value must be sufficiently small to not preclude realistic parent
|
||||
// chain difficulty during network lifespan yet sufficiently large to
|
||||
|
|
@ -243,6 +246,8 @@ public:
|
|||
nDefaultPort = 7042;
|
||||
nPruneAfterHeight = 1000;
|
||||
|
||||
consensus.pegged_asset = BITCOINID;
|
||||
|
||||
genesis = CreateGenesisBlock(consensus, strNetworkID, defaultRegtestScript, 1296688602, genesisChallengeScript, 1, MAX_MONEY, 100, BITCOINID);
|
||||
consensus.hashGenesisBlock = genesis.GetHash();
|
||||
|
||||
|
|
|
|||
|
|
@ -8,6 +8,7 @@
|
|||
|
||||
#include "script/script.h"
|
||||
#include "uint256.h"
|
||||
#include "amount.h"
|
||||
#include <map>
|
||||
#include <string>
|
||||
|
||||
|
|
@ -65,6 +66,7 @@ struct Params {
|
|||
int64_t DifficultyAdjustmentInterval() const { return nPowTargetTimespan / nPowTargetSpacing; }
|
||||
uint256 nMinimumChainWork;
|
||||
CScript fedpegScript;
|
||||
CAsset pegged_asset;
|
||||
uint256 defaultAssumeValid;
|
||||
};
|
||||
} // namespace Consensus
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue