MultiversX Tracker is Live!

Can*t call chainActive.Tip()->nHeight in core.cpp

Bitcoin Stack Exchange

Bitcoin News / Bitcoin Stack Exchange 165 Views

I want to call chainActive.Tip()->nHeight in core.cpp. It is not possible, I am interested in every idea.

https://github.com/LIMXTEC/BitSend/blob/DEV-joshafest/src/core.cpp

Here is an example :

bool GetH()
{ int nBlockHeight = chainActive.Tip()->nHeight; if(nBlockHeight < FORKX17_Main_Net ) return true; else return false; }
}
uint256 CBlockHeader::GetHash() const
{ if (GetH()) { return HashX11(BEGIN(nVersion), END(nNonce)); } else { return HashX17(BEGIN(nVersion), END(nNonce)); }
}

Also that is not possible:

CBlockIndex* pindexPrev = chainActive.Tip();
if (pindexPrev->nHeight <= FORKX17_Main_Net)

enter image description here


Get BONUS $200 for FREE!

You can get bonuses upto $100 FREE BONUS when you:
πŸ’° Install these recommended apps:
πŸ’² SocialGood - 100% Crypto Back on Everyday Shopping
πŸ’² xPortal - The DeFi For The Next Billion
πŸ’² CryptoTab Browser - Lightweight, fast, and ready to mine!
πŸ’° Register on these recommended exchanges:
🟑 Binance🟑 Bitfinex🟑 Bitmart🟑 Bittrex🟑 Bitget
🟑 CoinEx🟑 Crypto.com🟑 Gate.io🟑 Huobi🟑 Kucoin.



Comments