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

Gossamer cannot produce blocks in the next epoch if finalization stales #2591

Closed
EclesioMeloJunior opened this issue Jun 7, 2022 · 2 comments · Fixed by #2593
Closed

Gossamer cannot produce blocks in the next epoch if finalization stales #2591

EclesioMeloJunior opened this issue Jun 7, 2022 · 2 comments · Fixed by #2593
Assignees

Comments

@EclesioMeloJunior
Copy link
Member

EclesioMeloJunior commented Jun 7, 2022

Issue summary

  • While running a gossamer node in a cross-client network where the finalization is not occurring the gossamer node is able to produce blocks until the epoch changes, once the epoch changes it cannot produce or sync more blocks since we rely on database persisted epoch data and the node only persist the next epoch data once the finalization occurs and in a case where finalization is not working the next epoch data is not persisted.

  • The gossamer node should keep producing blocks if the finalization stops as both gadgets (production and finalization) should be independent.

Other information and links

  • N/A
@kishansagathiya
Copy link
Contributor

Even when we wait for finalisation, we are failing to write next epoch data and config data to database. So sometime info.Header does not contain pre runtime digests, resulting in this

header digest len  0
2022-06-08T17:52:16+05:30 EROR failed to persist babe next epoch data: cannot get epoch for block 0 (0xee87cc7ac5e87460094ec4ba29bbf8f28fb7741b69e7edb142233c3dd990b365): header does not contain pre-runtime digest	digest.go:L244	pkg=digest
header digest len  0
2022-06-08T17:52:16+05:30 EROR failed to persist babe next epoch config: cannot get epoch for block 0 (0xee87cc7ac5e87460094ec4ba29bbf8f28fb7741b69e7edb142233c3dd990b365): header does not contain pre-runtime digest	digest.go:L249	pkg=digest
2

@kishansagathiya
Copy link
Contributor

There are more problem with epoch handling. Seeing a lot of these logs

2022-06-08T18:30:12+05:30 EROR block data processing for block with hash 0xd671d24ff29cf990010bfc98a54981e06079ad71f900f86881e30b186ea5d158 failed: could not verify block: failed to get verifier info for block 23: failed to get epoch data for epoch 1: failed to get epoch data from memory: cannot verify the ancestry: end node does not exist	chain_processor.go:L84	pkg=sync

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants