Skip to content

Conversation

@ZocoLini
Copy link
Collaborator

@ZocoLini ZocoLini commented Dec 18, 2025

After removing ChainStorage I found out that ForkDetector was not being used and that lead to For not being used either. The reorg module was not being used either

@coderabbitai
Copy link
Contributor

coderabbitai bot commented Dec 18, 2025

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

✨ Finishing touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch remove-fork

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@xdustinface xdustinface merged commit 4be4cef into remove-chain-storage Dec 19, 2025
25 checks passed
@ZocoLini ZocoLini deleted the remove-fork branch December 19, 2025 19:18
xdustinface pushed a commit that referenced this pull request Dec 21, 2025
* removed chain storage an related code

* chore: removed fork detector and fork structs (#290)
xdustinface pushed a commit that referenced this pull request Dec 22, 2025
* removed chain storage an related code

* chore: removed fork detector and fork structs (#290)

* removed filters field from ChainState (ez)
xdustinface pushed a commit that referenced this pull request Jan 3, 2026
* removed chain storage an related code

* removed headers from ChainState

* tip_height method removed

* removed get_tip_hesh

* replaced header_at_height

* removed unused methods

* init_from_checkpoint sync

* tip_header removed

* removed two methos that where invovled in the same process

* fixed ffi

* test updated to the changes

* chore: removed fork detector and fork structs (#290)

* get_header now checks out of bound to return None instead of panics

* start height was not being updated properly

* fixed other test by correctly storing the headers in the storage

* removed genesis block creation in ChainState creation

* fixed clippy warnings

* dropped unuseed code

* code review suggestions
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