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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: make some BlockManager members const #26664

Closed
wants to merge 4 commits into from

Conversation

promag
Copy link
Member

@promag promag commented Dec 8, 2022

These methods can be const so make them const 馃し

@DrahtBot
Copy link
Contributor

DrahtBot commented Dec 8, 2022

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

Reviews

See the guideline for information on the review process.

Type Reviewers
Concept ACK TheCharlatan

If your review is incorrectly listed, please react with 馃憥 to this comment and the bot will ignore it on the next update.

Conflicts

Reviewers, this pull request conflicts with the following ones:

  • #26533 (prune: scan and unlink already pruned block files on startup by andrewtoth)
  • #26415 (rpc,rest,zmq: faster getblock, NotifyBlock and rest_block by reading raw block by andrewtoth)

If you consider this pull request important, please also help to review the conflicting pull requests. Ideally, start with the one that should be merged first.

@fanquake
Copy link
Member

fanquake commented Dec 8, 2022

See also #25673, which came with the CI check.

@promag
Copy link
Member Author

promag commented Dec 13, 2022

@fanquake d0efa0c is the motivation for this change, making blockman usage const.

@TheCharlatan
Copy link
Contributor

Concept ACK

It won't make a difference to any callers of the BlockManager, but I think you could mark FlushUndoFile as const as well.

@DrahtBot
Copy link
Contributor

馃悪 This pull request conflicts with the target branch and needs rebase.

@achow101
Copy link
Member

The feature request didn't seem to attract much attention in the past. Also, the issue seems not important enough right now to keep it sitting around idle in the list of open issues.

Closing due to lack of interest. Pull requests with improvements are always welcome.

@achow101 achow101 closed this Apr 25, 2023
@bitcoin bitcoin locked and limited conversation to collaborators Apr 24, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants