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

Fixes of seamless epoch transition #79

Merged

Conversation

philippwerner
Copy link
Contributor

@philippwerner philippwerner commented Mar 24, 2024

  • introduce tick storage that also keeps last N ticks of previous epoch (for those, Tick, TickData, and tick transactions can be requested also after epoch transition); N is defined by TICKS_TO_KEEP_FROM_PRIOR_EPOCH in public_settings.h
  • add F7 key for forcing epoch transition if a node is stuck in the epoch transition tick
  • fix issues with cold start of single node after epoch transition (see START_NETWORK_FROM_SCRATCH in public_settings.h)
  • write system.eoe file at end of epoch to avoid system from being overwritten
  • restructure public_settings.h
  • add Debug config for Visual Studio project (NDEBUG not defined): This allows checking with ASSERT and printing debug messages from other than main processor via addDebugMessage(), including logging to file
  • fix race conditions during epoch transition
  • make sure that prevDigests of first tick of new epoch are digests of the last tick last epoch
  • some refactoring and minor changes

krypdkat and others added 28 commits March 13, 2024 18:34
@philippwerner philippwerner merged commit 84041f0 into develop Mar 25, 2024
1 check passed
@philippwerner philippwerner deleted the 2024-02-29-keep-some-ticks-after-epoch-transition branch March 25, 2024 18:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants