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' &&