Skip to content

Instantly share code, notes, and snippets.

@hyc
Created May 30, 2019 20:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hyc/2788b90482cdafe388a70b97c28828c6 to your computer and use it in GitHub Desktop.
Save hyc/2788b90482cdafe388a70b97c28828c6 to your computer and use it in GitHub Desktop.
Private testnet block versions
commit a4838d293e34ea9eb52a52183ba31ee62f54d036
Author: Howard Chu <hyc@symas.com>
Date: Thu May 30 10:06:44 2019 +0100
debug branch
diff --git a/src/cryptonote_core/blockchain.cpp b/src/cryptonote_core/blockchain.cpp
index 108de6a0c..86c44c38f 100644
--- a/src/cryptonote_core/blockchain.cpp
+++ b/src/cryptonote_core/blockchain.cpp
@@ -134,22 +134,22 @@ static const struct {
{ 1, 1, 0, 1341378000 },
// version 2 starts from block 624634, which is on or around the 23rd of November, 2015. Fork time finalised on 2015-11-20. No fork voting occurs for the v2 fork.
- { 2, 624634, 0, 1445355000 },
+ { 2, 5, 0, 1445355000 },
// versions 3-5 were passed in rapid succession from September 18th, 2016
- { 3, 800500, 0, 1472415034 },
- { 4, 801219, 0, 1472415035 },
- { 5, 802660, 0, 1472415036 + 86400*180 }, // add 5 months on testnet to shut the update warning up since there's a large gap to v6
-
- { 6, 971400, 0, 1501709789 },
- { 7, 1057027, 0, 1512211236 },
- { 8, 1057058, 0, 1533211200 },
- { 9, 1057778, 0, 1533297600 },
- { 10, 1154318, 0, 1550153694 },
- { 11, 1155038, 0, 1550225678 },
- { 12, 1212880, 0, 1558044000 }, /* FIXME: set actual height and datestamp */
+ { 3, 10, 0, 1472415034 },
+ { 4, 15, 0, 1472415035 },
+ { 5, 20, 0, 1472415036 + 86400*180 }, // add 5 months on testnet to shut the update warning up since there's a large gap to v6
+
+ { 6, 25, 0, 1501709789 },
+ { 7, 30, 0, 1512211236 },
+ { 8, 35, 0, 1533211200 },
+ { 9, 40, 0, 1533297600 },
+ { 10, 45, 0, 1550153694 },
+ { 11, 50, 0, 1550225678 },
+ { 12, 55, 0, 1558044000 }, /* FIXME: set actual height and datestamp */
};
-static const uint64_t testnet_hard_fork_version_1_till = 624633;
+static const uint64_t testnet_hard_fork_version_1_till = 4;
static const struct {
uint8_t version;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment