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

node: improve fetch_faults operation #1982

Merged
merged 6 commits into from
Jul 18, 2024
Merged

node: improve fetch_faults operation #1982

merged 6 commits into from
Jul 18, 2024

Conversation

herr-seppia
Copy link
Member

@herr-seppia herr-seppia commented Jul 17, 2024

No description provided.

- Change `fetch_header` to return only `Ledger::Header`
- Move `HeaderRecord` from `RocksDB` to `Database`
- Add `fetch_block_light` to return `HeaderRecord`
- Remove `Block::new`
- Add `From<HeaderRecord>` for `Block`
Avoid to retrieve the full Blocks when searching for Faults
@herr-seppia herr-seppia changed the title node: fetch light block from db node: improve fetch_faults operation Jul 17, 2024
@herr-seppia herr-seppia marked this pull request as ready for review July 17, 2024 17:14
fed-franz
fed-franz previously approved these changes Jul 18, 2024
Copy link
Contributor

@fed-franz fed-franz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, just a rename suggestion

node/src/database/rocksdb.rs Outdated Show resolved Hide resolved
@herr-seppia herr-seppia merged commit 81edb85 into master Jul 18, 2024
8 checks passed
@herr-seppia herr-seppia deleted the header_record branch July 18, 2024 09:33
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.

2 participants