removed base chain height

This commit is contained in:
dimxy
2019-05-15 17:26:17 +05:00
parent b80c8710f2
commit 7c31159a1d
2 changed files with 8 additions and 8 deletions

View File

@@ -1727,9 +1727,9 @@ int32_t prices_getbetinfo(uint256 bettxid, BetInfo &betinfo)
// TODO: forget old tx
CBlockIndex *bi = komodo_getblockindex(hashBlock);
if (bi && bi->GetHeight() < 5342)
return -5;
//CBlockIndex *bi = komodo_getblockindex(hashBlock);
//if (bi && bi->GetHeight() < 5342)
// return -5;
OneBetData bet1;
if (prices_betopretdecode(bettx.vout.back().scriptPubKey, betinfo.pk, bet1.firstheight, bet1.positionsize, betinfo.leverage, betinfo.firstprice, betinfo.vecparsed, betinfo.tokenid) == 'B')
@@ -2107,9 +2107,9 @@ UniValue PricesList(uint32_t filter, CPubKey mypk)
{
// TODO: forget old tx
CBlockIndex *bi = komodo_getblockindex(hashBlock);
if (bi && bi->GetHeight() < 5342)
return;
//CBlockIndex *bi = komodo_getblockindex(hashBlock);
//if (bi && bi->GetHeight() < 5342)
// return;
bool bAppend = false;
if (vintx.vout.size() > 0 && prices_betopretdecode(vintx.vout.back().scriptPubKey, pk, height, amount, leverage, firstprice, vec, tokenid) == 'B' &&

View File

@@ -192,9 +192,9 @@ static const char *notaries_elected[NUM_KMD_SEASONS][NUM_KMD_NOTARIES][2] =
#define KOMODO_VALUETOOBIG(x) ((x) > (uint64_t)10000000001*COIN)
//#ifndef TESTMODE
//#define PRICES_DAYWINDOW ((3600*24/ASSETCHAINS_BLOCKTIME) + 1)
#define PRICES_DAYWINDOW ((3600*24/ASSETCHAINS_BLOCKTIME) + 1)
//#else
#define PRICES_DAYWINDOW (7)
//#define PRICES_DAYWINDOW (7)
//#endif
extern uint8_t ASSETCHAINS_TXPOW,ASSETCHAINS_PUBLIC;