Skip to content

Conversation

@itek09
Copy link
Contributor

@itek09 itek09 commented Nov 11, 2025

This PR brings the option to use the daemon against a Geth > 1.16 partial archive node.

I was running a partial archive node using Geth 1.15 and the daemon was compatible with it (don't know if because I configured it initially as a full archive and then changed to full and then back to archive, was configured time ago...). Geth introduced huge optimizations for Archive nodes in 1.16, so I ran a full archive node to ensure that the deprecations in their side do not affect the daemon, everything was working nice.

But, if you try to run a partial archive node (basically dropping after a number of states), it will break the functionality of the daemon as we are checking debug capabilities against the block 1 which obviosly will not be in a partial archive node. In my opinion, checking this against the current block, will gives us the same functionality without requiring a full archive.

I tested it and works as expected.

@codecov
Copy link

codecov bot commented Nov 11, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 78.81%. Comparing base (5e44983) to head (f0737eb).

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #498   +/-   ##
=======================================
  Coverage   78.81%   78.81%           
=======================================
  Files         130      130           
  Lines        7307     7307           
=======================================
  Hits         5759     5759           
  Misses       1548     1548           
Flag Coverage Δ
functional-tests 63.07% <ø> (ø)
tests 78.07% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

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.

1 participant