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

Validate ledger chain of prior history during ingestion catch up #5450

Open
sreuland opened this issue Aug 30, 2024 · 0 comments
Open

Validate ledger chain of prior history during ingestion catch up #5450

sreuland opened this issue Aug 30, 2024 · 0 comments

Comments

@sreuland
Copy link
Contributor

What problem does your feature solve?

when horizon forward ingestion starts up, it checks history db first, if there are ledgers present the new ingestion process will attempt to catchup from the latest ledger on history rather than just starting from network's latest ledger. In this case horizon won't validate the ledger chain between last history ledger on db to the PreviousLedgerHash of newly ingested ledger from network(captive core).

What would you like to see?

during horizon forward mode ingestion startup, if any ingested history ledgers exist, perform ledger chain validation from latest history ledger on db to PreviousLedgerHash of next ledger from live network ingestion and log a WARN message to avoid making this too intrusive as a starting point, or consider treating this detection as ERROR level and stop the process?

Relates to:

What alternatives are there?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Backlog
Development

No branches or pull requests

2 participants