Skip to content

Conversation

mruddy
Copy link
Contributor

@mruddy mruddy commented Apr 18, 2022

There was a comment with the CBlockIndex::nChainTx data member:
"Change to 64-bit type before 2024 (assuming worst case of 60 byte transactions)."

As of when this PR was created, there were only around 750,000,000 transactions in the main best chain. That's only in the ballpark of 20% of the range of a 32-bit unsigned int. So, you might think that this is early. But, since I was looking up the references and already doing most of the work, I figured that I'd propose it now. In the least this commit resolves and removes a comment that might otherwise scare more people into doing the same research that I did, thus saving people time.

I went through all the references to this member and made updates to make the data types line up better where there were differences.

I also removed a small amount of dead code from SnapshotMetadata, see (#21681 (comment)).

There was a comment with this data member: "Change to 64-bit type before 2024 (assuming worst case of 60 byte transactions)."
As of when this PR was created, there were only around 750,000,000 transactions in the best chain.
I went through all the references to this member and made updates to make the data types line up better where there were differences.
@DrahtBot
Copy link
Contributor

DrahtBot commented Apr 19, 2022

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

Conflicts

Reviewers, this pull request conflicts with the following ones:

  • #24952 (rpc: Add sqlite format option for dumptxoutset by dunxen)
  • #24804 (Sanity assert GetAncestor() != nullptr where appropriate by aureleoules)
  • #21603 (log: Mitigate disk filling attacks by rate limiting LogPrintf by dergoegge)

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.

@DrahtBot
Copy link
Contributor

DrahtBot commented May 6, 2022

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

Want to unsubscribe from rebase notifications on this pull request? Just convert this pull request to a "draft".

@mruddy
Copy link
Contributor Author

mruddy commented May 21, 2022

closing since there appears to be no interest in this set of changes

@mruddy mruddy closed this May 21, 2022
@mruddy mruddy deleted the nchaintx_type branch May 21, 2022 12:11
@bitcoin bitcoin locked and limited conversation to collaborators May 21, 2023
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.

2 participants