Skip to content

Conversation

@l0rinc
Copy link
Contributor

@l0rinc l0rinc commented Dec 10, 2025

Split out of #33324 since it makes sense on its own.

Currently the parameter is only called with a single constant parameter, it doesn't make sense to needlessly obfuscate the constructor (pun intended).

@DrahtBot
Copy link
Contributor

DrahtBot commented Dec 10, 2025

The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.

Code Coverage & Benchmarks

For details see: https://corecheck.dev/bitcoin/bitcoin/pulls/34048.

Reviews

See the guideline for information on the review process.
A summary of reviews will appear here.

Conflicts

No conflicts as of last run.

{
public:
DB(const fs::path& path, size_t n_cache_size,
bool f_memory = false, bool f_wipe = false, bool f_obfuscate = false);
Copy link
Member

Choose a reason for hiding this comment

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

i presume this exists to allow indexes to obfuscate, if there is need to? E.g. when storing remote-user-provided data. E.g. an addrindex?

I understand this isn't needed right now, so no strong opinion.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, it's an unused argument - it's clearer to remove the fake single-instance-abstraction

@Ataraxia009
Copy link

Concept NAck, could be needed in the future, no point in hiding it

@l0rinc
Copy link
Contributor Author

l0rinc commented Dec 11, 2025

if it's needed in the future, it's trivial to reintroduce it.

@Ataraxia009
Copy link

if it's needed in the future, it's trivial to reintroduce it.

It seems like a strong enough option to leave as is still but ill defer to others i dont have a strong opinion

@l0rinc
Copy link
Contributor Author

l0rinc commented Dec 18, 2025

Closing for lack of interest, will keep it in the original PR only

@l0rinc l0rinc closed this Dec 18, 2025
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.

4 participants