Skip to content

Conversation

fmoletta
Copy link
Contributor

Motivation
PR #4024 changed how we initialize the datadir. Instead of looking for the database in a path relative to the home directory (ie: .local/share/datadir on linux) it now looks for it on the path relative to the current directory (ie: ethrex/datadir). This caused problems when updating the ethrex commit on currently running ethrex nodes due to the DB mismatch.
This PR restores the previous behaviour, and has been confirmed to work as usual on the aforementioned ethrex nodes.

Description

  • Restore where we look for the datadir (relative to home vs current dir)

Closes None, but is needed to continue #1676

@github-actions github-actions bot added the L1 Ethereum client label Aug 14, 2025
@fmoletta fmoletta marked this pull request as ready for review August 14, 2025 17:05
@fmoletta fmoletta requested a review from a team as a code owner August 14, 2025 17:05
@ethrex-project-sync ethrex-project-sync bot moved this to In Review in ethrex_l1 Aug 14, 2025
Copy link

Lines of code report

Total lines added: 6
Total lines removed: 0
Total lines changed: 6

Detailed view
+----------------------------+-------+------+
| File                       | Lines | Diff |
+----------------------------+-------+------+
| ethrex/cmd/ethrex/utils.rs | 164   | +6   |
+----------------------------+-------+------+

@rodrigo-o rodrigo-o added this pull request to the merge queue Aug 14, 2025
Merged via the queue into main with commit e220fbe Aug 14, 2025
46 of 55 checks passed
@rodrigo-o rodrigo-o deleted the fix-datadir branch August 14, 2025 21:35
@github-project-automation github-project-automation bot moved this from In Review to Done in ethrex_l1 Aug 14, 2025
pedrobergamini pushed a commit to pedrobergamini/ethrex that referenced this pull request Aug 24, 2025
**Motivation**
PR lambdaclass#4024 changed how we initialize the datadir. Instead of looking for
the database in a path relative to the home directory (ie:
.local/share/datadir on linux) it now looks for it on the path relative
to the current directory (ie: ethrex/datadir). This caused problems when
updating the ethrex commit on currently running ethrex nodes due to the
DB mismatch.
This PR restores the previous behaviour, and has been confirmed to work
as usual on the aforementioned ethrex nodes.
<!-- Why does this pull request exist? What are its goals? -->

**Description**
* Restore where we look for the datadir (relative to home vs current
dir)
<!-- A clear and concise general description of the changes this PR
introduces -->

<!-- Link to issues: Resolves lambdaclass#111, Resolves lambdaclass#222 -->

Closes None, but is needed to continue lambdaclass#1676
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
L1 Ethereum client
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

3 participants