From ac5aaa76a84daeecb971009b622585b519aa03d3 Mon Sep 17 00:00:00 2001 From: Lars Kuhtz Date: Wed, 29 Jul 2020 12:23:15 -0700 Subject: [PATCH] install coin v2 upgrade on new testnet chains (#1127) * install coin v2 upgrade on new testnet chains * Update src/Chainweb/Version.hs --- src/Chainweb/Version.hs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Chainweb/Version.hs b/src/Chainweb/Version.hs index 5205afec3a..018ff92002 100644 --- a/src/Chainweb/Version.hs +++ b/src/Chainweb/Version.hs @@ -778,6 +778,9 @@ coinV2Upgrade Mainnet01 cid h | cid == unsafeChainId 8 = h == 140808 | cid == unsafeChainId 9 = h == 140808 | otherwise = error $ "invalid chain id " <> sshow cid +coinV2Upgrade Testnet04 cid h + | chainIdInt @Int cid >= 10 && chainIdInt @Int cid < 20 = h == 337000 + | otherwise = h == 1 coinV2Upgrade Development cid h | cid == unsafeChainId 0 = h == 3 | otherwise = h == 4 @@ -915,4 +918,3 @@ oldDaGuard Mainnet01 h = h < 771_414 -- ~ 2020-07-23 16:00:00 oldDaGuard Testnet04 h = h < 318_204 -- ~ 2020-07-23 16:00:00 oldDaGuard Development h = h + 30 < to20ChainsDevelopment -- 30 blocks before the transition oldDaGuard _ _ = False -