From ac5aa8dff41277b65c52b6502b7b7391226ce002 Mon Sep 17 00:00:00 2001 From: jl777 Date: Thu, 22 Nov 2018 02:46:24 -1100 Subject: [PATCH] Test timestamp --- src/komodo_defs.h | 2 +- src/main.cpp | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/komodo_defs.h b/src/komodo_defs.h index a2cb0d4ee..ef87f8893 100644 --- a/src/komodo_defs.h +++ b/src/komodo_defs.h @@ -11,7 +11,7 @@ #define KOMODO_MAXMEMPOOLTIME 3600 // affects consensus #define CRYPTO777_PUBSECPSTR "020e46e79a2a8d12b9b5d12c7a91adb4e454edfae43c0a0cb805427d2ac7613fd9" #define KOMODO_FIRSTFUNGIBLEID 100 -#define KOMODO_SAPLING_ACTIVATION (1542888433 - 1800) //1544832000 // Dec 15th, 2018 +#define KOMODO_SAPLING_ACTIVATION 1542894368 //1544832000 // Dec 15th, 2018 #define KOMODO_SAPLING_DEADLINE 1550188800 // Feb 15th, 2019 extern uint8_t ASSETCHAINS_TXPOW; diff --git a/src/main.cpp b/src/main.cpp index 2af9fe3de..6c4f3e51f 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -3787,15 +3787,15 @@ int32_t komodo_activate_sapling(CBlockIndex *pindex) height = pindex->GetHeight(); blocktime = (uint32_t)pindex->nTime; fprintf(stderr,"komodo_activate_sapling.%d starting blocktime %u cmp.%d\n",height,blocktime,blocktime > KOMODO_SAPLING_ACTIVATION); - for (i=0; i<60; i++) + for (i=0; i<30; i++) { if ( (prev= pindex->pprev) == 0 ) break; pindex = prev; } - if ( i != 60 ) + if ( i != 30 ) { - fprintf(stderr,"couldnt go backwards 60 blocks\n"); + fprintf(stderr,"couldnt go backwards 30 blocks\n"); return(0); } height = pindex->GetHeight();