Page MenuHomePhabricator

D1612.id4537.diff
No OneTemporary

D1612.id4537.diff

diff --git a/doc/release-notes.md b/doc/release-notes.md
--- a/doc/release-notes.md
+++ b/doc/release-notes.md
@@ -8,3 +8,5 @@
- Remove the rules, vbavailable and vbrequired result from the getblocktemplate RPC call.
- Remove the rules argument from the getblocktemplate RPC call.
- Log difference between block header time and received time when competing blocks are received for the same chain height.
+ - Bump automatic replay protection to May 2019 upgrade
+
diff --git a/src/chainparams.cpp b/src/chainparams.cpp
--- a/src/chainparams.cpp
+++ b/src/chainparams.cpp
@@ -131,6 +131,9 @@
// Nov 15, 2018 hard fork
consensus.magneticAnomalyActivationTime = 1542300000;
+ // Wed, 15 May 2019 12:00:00 UTC hard fork
+ consensus.greatWallActivationTime = 1557921600;
+
/**
* The message start string is designed to be unlikely to occur in
* normal data. The characters are rarely used upper ASCII, not valid as
@@ -300,6 +303,9 @@
// Nov 15, 2018 hard fork
consensus.magneticAnomalyActivationTime = 1542300000;
+ // Wed, 15 May 2019 12:00:00 UTC hard fork
+ consensus.greatWallActivationTime = 1557921600;
+
diskMagic[0] = 0x0b;
diskMagic[1] = 0x11;
diskMagic[2] = 0x09;
@@ -423,6 +429,9 @@
// Nov 15, 2018 hard fork
consensus.magneticAnomalyActivationTime = 1542300000;
+ // Wed, 15 May 2019 12:00:00 UTC hard fork
+ consensus.greatWallActivationTime = 1557921600;
+
diskMagic[0] = 0xfa;
diskMagic[1] = 0xbf;
diskMagic[2] = 0xb5;
diff --git a/src/consensus/params.h b/src/consensus/params.h
--- a/src/consensus/params.h
+++ b/src/consensus/params.h
@@ -56,6 +56,8 @@
int daaHeight;
/** Unix time used for MTP activation of Nov 15 2018, hardfork */
int magneticAnomalyActivationTime;
+ /** Unix time used for MTP activation of 15 May 2019 12:00:00 UTC upgrade */
+ int greatWallActivationTime;
/**
* Minimum blocks including miner confirmation of the total of 2016 blocks
* in a retargeting period, (nPowTargetTimespan / nPowTargetSpacing) which
diff --git a/src/validation.cpp b/src/validation.cpp
--- a/src/validation.cpp
+++ b/src/validation.cpp
@@ -600,12 +600,16 @@
return IsMagneticAnomalyEnabled(config, chainActive.Tip());
}
+// Command-line argument "-replayprotectionactivationtime=<timestamp>" will
+// cause the node to switch to replay protected SigHash ForkID value when the
+// median timestamp of the previous 11 blocks is greater than or equal to
+// <timestamp>. Defaults to the pre-defined timestamp when not set.
static bool IsReplayProtectionEnabled(const Config &config,
int64_t nMedianTimePast) {
return nMedianTimePast >= gArgs.GetArg("-replayprotectionactivationtime",
config.GetChainParams()
.GetConsensus()
- .magneticAnomalyActivationTime);
+ .greatWallActivationTime);
}
static bool IsReplayProtectionEnabled(const Config &config,

File Metadata

Mime Type
text/plain
Expires
Fri, Nov 22, 09:55 (4 h, 48 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
4559191
Default Alt Text
D1612.id4537.diff (3 KB)

Event Timeline