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

algod: search phonebook in data directory in addition to bindir #5235

Merged
merged 2 commits into from Mar 29, 2023

Conversation

algorandskiy
Copy link
Contributor

Summary

Currently phonebook.json is only searched in bin directory that might not be very convenient.
Changed to check data dir as well.

Test Plan

Tested manually

@codecov
Copy link

codecov bot commented Mar 28, 2023

Codecov Report

Merging #5235 (4c8f5bd) into master (e659181) will decrease coverage by 0.05%.
The diff coverage is 0.00%.

@@            Coverage Diff             @@
##           master    #5235      +/-   ##
==========================================
- Coverage   53.55%   53.50%   -0.05%     
==========================================
  Files         441      441              
  Lines       55123    55126       +3     
==========================================
- Hits        29520    29495      -25     
- Misses      23317    23337      +20     
- Partials     2286     2294       +8     
Impacted Files Coverage Δ
cmd/algod/main.go 0.00% <0.00%> (ø)

... and 10 files with indirect coverage changes

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

algonautshant
algonautshant previously approved these changes Mar 28, 2023
Copy link
Contributor

@algonautshant algonautshant left a comment

Choose a reason for hiding this comment

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

Looks great!

cmd/algod/main.go Show resolved Hide resolved
Co-authored-by: Shant Karakashian <55754073+algonautshant@users.noreply.github.com>
Copy link
Contributor

@cce cce left a comment

Choose a reason for hiding this comment

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

LGTM, but with the caveat that if you have a phonebook file in both directories, only the first one will work.

@algorandskiy algorandskiy merged commit 02f6d27 into algorand:master Mar 29, 2023
9 checks passed
@algorandskiy algorandskiy changed the title algod: search phonebook in data directory as well algod: search phonebook in data directory in addition to bindir Mar 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants