Repository navigation
feat(engine): stations, tracks and the packet list come back after a restart - #459
Merged
Merged
Conversation
gx1400
force-pushed
the
feat/history-restore
branch
from
October 28, 2026 04:34
4f3b0b8 to
0119ea0
Compare
…restart Before the sources connect, the engine applies again the packets the history kept from the last RemoveAfter (at most 24 hours), in order and with their times (F1.41 behavior 7). Stations, tracks and the packet list are as they were; nothing is sent, acked, alerted, counted or kept again. Refs #314
gx1400
force-pushed
the
feat/history-restore
branch
from
October 28, 2026 12:57
0119ea0 to
5b4ef5a
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Second part of #314 (F1.41 behavior 7). Stacked on #458.
Engine.RunAsyncrestores first, before any source connects.RemoveAfter(2 h by default; at most 24 h, which also applies when stations are never removed), in order and with their original times.StationStore.Apply. Same-source duplicates are listed but not applied, as when they arrived.RecentPacketCapacitypackets, with own packets marked Sent.PacketsReceived. Nothing is written to the history again.Tests:
HistoryRestoreTestschecks three things:Release build, all tests and csharpier pass locally.