Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

lytixd crash after forked chain #11

Closed
faetos opened this issue Feb 26, 2019 · 1 comment

Comments

@faetos
Copy link
Contributor

commented Feb 26, 2019

ERROR: ContextualCheckBlockHeader: forked chain older than max reorganization depth (height 7941)
Segmentation fault (core dumped)
#0 0x000056126de747c3 in ProcessNewBlock (state=..., pfrom=0x56127c901000, pblock=0x7fce411c68c0, dbp=0x0) at main.cpp:4550
nodestate = 0x56128326a8a8
nodeStatus =
nDoS =
criticalblock51 = {lock = {m = 0x56126e390b80 <cs_main>, is_locked = true}}
pindex = 0x0
ret = false
nStartTime = 1551079710278
checked = true
nMints = 0
nSpends = 0
func = "ProcessNewBlock"
#0 0x000056126de747c3 in ProcessNewBlock (state=..., pfrom=0x56127c901000, pblock=0x7fce411c68c0, dbp=0x0) at main.cpp:4550
4550 nodestate->nodeBlocks.onBlockReceived(pindex->nHeight);

  // Store to disk
    CBlockIndex* pindex = nullptr;
    bool ret = AcceptBlock (*pblock, state, &pindex, dbp, checked);

then later on
// Check spamming
if(pfrom && GetBoolArg("-blockspamfilter", DEFAULT_BLOCK_SPAM_FILTER)) {
CNodeState *nodestate = State(pfrom->GetId());
nodestate->nodeBlocks.onBlockReceived(pindex->nHeight);
doesn't actually check if AcceptBlock fails

@faetos faetos added the bug label Feb 26, 2019

@faetos faetos self-assigned this Feb 26, 2019

@faetos

This comment has been minimized.

Copy link
Contributor Author

commented Feb 26, 2019

fixed in PR 3858a79

@faetos faetos closed this Feb 26, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
1 participant
You can’t perform that action at this time.