Author

Topic: debug.log entry : SetBestChain: 1 of last 100 blocks above ... (Read 1665 times)

legendary
Activity: 1512
Merit: 1012
0.9.1

ok, i see that ...

Code:
 // Check the version of the last 100 blocks to see if we need to upgrade:
static bool fWarned = false;
if (!IsInitialBlockDownload() && !fWarned)
{
int nUpgraded = 0;
const CBlockIndex* pindex = chainActive.Tip();
for (int i = 0; i < 100 && pindex != NULL; i++)
{
if (pindex->nVersion > CBlock::CURRENT_VERSION)
++nUpgraded;
pindex = pindex->pprev;
}
if (nUpgraded > 0)
LogPrintf("SetBestChain: %d of last 100 blocks above version %d\n", nUpgraded, (int)CBlock::CURRENT_VERSION);
if (nUpgraded > 100/2)
{
// strMiscWarning is read by GetWarnings(), called by Qt and the JSON-RPC code to warn the user:
strMiscWarning = _("Warning: This version is obsolete, upgrade required!");
CAlert::Notify(strMiscWarning, true);
fWarned = true;

so, it's a warning ...
legendary
Activity: 4228
Merit: 1313
What version are you running?

It is in main.cpp around line 1978 giving notification of version differences. I doubt it is a bug, but anything is possible.  Btw, I see it in the logs too.

See
https://github.com/bitcoin/bitcoin/blob/master/src/main.cpp
legendary
Activity: 1512
Merit: 1012
Hello,

since 2-3 days, i have a new line entry in the debug.log of bitcoin core (server+node activate for P2Pool mining) :

Code:
2015-02-04 20:47:47 SetBestChain: 1 of last 100 blocks above version 2

This line is seen every new block ... have you an explaination of what it's this ?
It's a feature or a bug or a notification ?

 Wink thanks

Jump to: