Test
This commit is contained in:
11
src/main.cpp
11
src/main.cpp
@@ -3206,10 +3206,13 @@ bool CheckBlockHeader(int32_t height,CBlockIndex *pindex, const CBlockHeader& bl
|
|||||||
for (i=31; i>=0; i--)
|
for (i=31; i>=0; i--)
|
||||||
fprintf(stderr,"%02x",((uint8_t *)&hash)[i]);
|
fprintf(stderr,"%02x",((uint8_t *)&hash)[i]);
|
||||||
fprintf(stderr," <- CheckBlockHeader\n");
|
fprintf(stderr," <- CheckBlockHeader\n");
|
||||||
hash = chainActive.Tip()->GetBlockHash();
|
if ( chainActive.Tip() != 0 )
|
||||||
for (i=31; i>=0; i--)
|
{
|
||||||
fprintf(stderr,"%02x",((uint8_t *)&hash)[i]);
|
hash = chainActive.Tip()->GetBlockHash();
|
||||||
fprintf(stderr," <- chainTip\n");
|
for (i=31; i>=0; i--)
|
||||||
|
fprintf(stderr,"%02x",((uint8_t *)&hash)[i]);
|
||||||
|
fprintf(stderr," <- chainTip\n");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if (blockhdr.GetBlockTime() > GetAdjustedTime() + 60)
|
if (blockhdr.GetBlockTime() > GetAdjustedTime() + 60)
|
||||||
return state.Invalid(error("CheckBlockHeader(): block timestamp too far in the future"),REJECT_INVALID, "time-too-new");
|
return state.Invalid(error("CheckBlockHeader(): block timestamp too far in the future"),REJECT_INVALID, "time-too-new");
|
||||||
|
|||||||
Reference in New Issue
Block a user