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
Closed

lytixd crash after forked chain #11

faetos opened this issue Feb 26, 2019 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@faetos
Copy link
Contributor

faetos 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 Something isn't working label Feb 26, 2019
@faetos faetos self-assigned this Feb 26, 2019
@faetos
Copy link
Contributor Author

faetos commented Feb 26, 2019

fixed in PR 3858a79

@faetos faetos closed this as completed Feb 26, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant