Audo addtoblockindex
This commit is contained in:
@@ -4015,7 +4015,8 @@ bool AcceptBlockHeader(int32_t *futureblockp,const CBlockHeader& block, CValidat
|
|||||||
if (miSelf != mapBlockIndex.end())
|
if (miSelf != mapBlockIndex.end())
|
||||||
{
|
{
|
||||||
// Block header is already known.
|
// Block header is already known.
|
||||||
pindex = miSelf->second;
|
if ( (pindex= miSelf->second) == 0 )
|
||||||
|
pindex = AddToBlockIndex(block);
|
||||||
if (ppindex)
|
if (ppindex)
|
||||||
*ppindex = pindex;
|
*ppindex = pindex;
|
||||||
if ( pindex != 0 && pindex->nStatus & BLOCK_FAILED_MASK )
|
if ( pindex != 0 && pindex->nStatus & BLOCK_FAILED_MASK )
|
||||||
@@ -4026,6 +4027,7 @@ bool AcceptBlockHeader(int32_t *futureblockp,const CBlockHeader& block, CValidat
|
|||||||
memset(&komodo_requestedhash,0,sizeof(komodo_requestedhash));
|
memset(&komodo_requestedhash,0,sizeof(komodo_requestedhash));
|
||||||
komodo_requestedcount = 0;
|
komodo_requestedcount = 0;
|
||||||
}*/
|
}*/
|
||||||
|
|
||||||
//if ( pindex == 0 )
|
//if ( pindex == 0 )
|
||||||
// fprintf(stderr,"accepthdr %s already known but no pindex\n",hash.ToString().c_str());
|
// fprintf(stderr,"accepthdr %s already known but no pindex\n",hash.ToString().c_str());
|
||||||
return true;
|
return true;
|
||||||
|
|||||||
Reference in New Issue
Block a user