aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorWladimir J. van der Laan <laanwj@protonmail.com>2020-09-30 13:54:47 +0200
committerWladimir J. van der Laan <laanwj@protonmail.com>2020-09-30 14:05:19 +0200
commit5c435c78e36c543fe27d332523f157f714141226 (patch)
tree2cdcfaaaf96593c0707b258c73c338cb9fafe8eb /src
parent1769828684f16b53e5fbf65173f508b9ea1b4b9c (diff)
parentfac966142e00f6838cfd666ff8905078204d014e (diff)
Merge #20036: signet: Add assumed values for default signet
fac966142e00f6838cfd666ff8905078204d014e signet: Add assumed values for default signet (MarcoFalke) Pull request description: Doesn't matter much right now, but when the default signet is bigger, this might come in handy ACKs for top commit: jsarenik: Tested ACK fac966142e00f6838cfd666ff8905078204d014e laanwj: Tested ACK fac966142e00f6838cfd666ff8905078204d014e (did a new re-sync) kallewoof: utACK fac966142e00f6838cfd666ff8905078204d014e Tree-SHA512: ed2692f5896350f8dc81f9bc5d79fbf1a4544b8f724c5c667fcadec3a37e26e9833ac189a3067a0731fd7b17a0c94f6b44a641fffe448e42259f7b7b44910db1
Diffstat (limited to 'src')
-rw-r--r--src/chainparams.cpp26
1 files changed, 18 insertions, 8 deletions
diff --git a/src/chainparams.cpp b/src/chainparams.cpp
index d7f7888ef3..59bce33168 100644
--- a/src/chainparams.cpp
+++ b/src/chainparams.cpp
@@ -270,6 +270,17 @@ public:
vSeeds.emplace_back("178.128.221.177");
vSeeds.emplace_back("2a01:7c8:d005:390::5");
vSeeds.emplace_back("ntv3mtqw5wt63red.onion:38333");
+
+ consensus.nMinimumChainWork = uint256S("0x0000000000000000000000000000000000000000000000000000000d145533ce");
+ consensus.defaultAssumeValid = uint256S("0x00000128807d9175c494e24d805fc7854f7d79aa965cbb128342ad8b70cecfa5"); // 5348
+ m_assumed_blockchain_size = 1;
+ m_assumed_chain_state_size = 0;
+ chainTxData = ChainTxData{
+ // Data from RPC: getchaintxstats 4096 00000128807d9175c494e24d805fc7854f7d79aa965cbb128342ad8b70cecfa5
+ /* nTime */ 1601382000,
+ /* nTxCount */ 5435,
+ /* dTxRate */ 0.001898346323372538,
+ };
} else {
const auto signet_challenge = args.GetArgs("-signetchallenge");
if (signet_challenge.size() != 1) {
@@ -277,6 +288,13 @@ public:
}
bin = ParseHex(signet_challenge[0]);
+ m_assumed_blockchain_size = 0;
+ m_assumed_chain_state_size = 0;
+ chainTxData = ChainTxData{
+ 0,
+ 0,
+ 0,
+ };
LogPrintf("Signet with challenge %s\n", signet_challenge[0]);
}
@@ -313,8 +331,6 @@ public:
nDefaultPort = 38333;
nPruneAfterHeight = 1000;
- m_assumed_blockchain_size = 0;
- m_assumed_chain_state_size = 0;
genesis = CreateGenesisBlock(1598918400, 52613770, 0x1e0377ae, 1, 50 * COIN);
consensus.hashGenesisBlock = genesis.GetHash();
@@ -335,12 +351,6 @@ public:
fRequireStandard = true;
m_is_test_chain = true;
m_is_mockable_chain = false;
-
- chainTxData = ChainTxData{
- 0,
- 0,
- 0
- };
}
};