Following up on #29258 the type of nChainTx has now been changed to a uint64_t allowing for the counting of TXs well into the future. The note about changing the type in 2024 was also removed. This passes all extended tests.
redeclare nChainTx to use uint64_t #29331
pull russeree wants to merge 1 commits into bitcoin:master from russeree:26-01-24-uint64_t-nchaintx changing 3 files +3 −4-
russeree commented at 9:44 PM on January 26, 2024: contributor
-
DrahtBot commented at 9:44 PM on January 26, 2024: contributor
<!--e57a25ab6845829454e8d69fc972939a-->
The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.
<!--006a51241073e994b41acfe9ec718e94-->
Code Coverage
For detailed information about the code coverage, see the test coverage report.
<!--021abf342d371248e50ceaed478a90ca-->
Reviews
See the guideline for information on the review process. A summary of reviews will appear here.
<!--174a7506f384e20aa4161008e828411d-->
Conflicts
Reviewers, this pull request conflicts with the following ones:
- #29370 (assumeutxo: Get rid of faked nTx and nChainTx values by ryanofsky)
- #28608 (assumeutxo state and locking cleanup by ryanofsky)
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.
- russeree force-pushed on Jan 26, 2024
- russeree force-pushed on Jan 26, 2024
- russeree force-pushed on Jan 26, 2024
- russeree force-pushed on Jan 26, 2024
- russeree force-pushed on Jan 26, 2024
- russeree marked this as a draft on Jan 26, 2024
- DrahtBot added the label CI failed on Jan 26, 2024
-
DrahtBot commented at 11:49 PM on January 26, 2024: contributor
<!--85328a0da195eb286784d51f73fa0af9-->
🚧 At least one of the CI tasks failed. Make sure to run all tests locally, according to the documentation.
Possibly this is due to a silent merge conflict (the changes in this pull request being incompatible with the current code in the target branch). If so, make sure to rebase on the latest commit of the target branch.
Leave a comment here, if you need help tracking down a confusing failure.
<sub>Debug: https://github.com/bitcoin/bitcoin/runs/20917625235</sub>
- DrahtBot removed the label CI failed on Jan 27, 2024
- DrahtBot added the label CI failed on Jan 27, 2024
-
redeclare nChainTx to use uint64_t ecabf53cd2
- russeree force-pushed on Jan 27, 2024
- russeree marked this as ready for review on Jan 27, 2024
- DrahtBot removed the label CI failed on Jan 27, 2024
-
dergoegge commented at 11:21 AM on January 29, 2024: member
Would you mind adding a test? It should be possible to fake a large
nChainTxin a test using assume utxo -
mzumsande commented at 6:21 PM on January 29, 2024: contributor
It should be possible to fake a large
nChainTxin a test using assume utxoIt's annoying that each test doing something like that would need to add an entry to the regtest chainparams, maybe my suggestion here to allow that per RPC could make sense (not necessarily in this PR).
-
dergoegge commented at 10:53 AM on January 30, 2024: member
It's annoying that each test doing something like that would need to add an entry to the regtest chainparams, maybe my suggestion #29261 (comment) to allow that per RPC could make sense (not necessarily in this PR).
I was thinking of a unit test, so no need for an RPC but yes some way to add assumeutxo data for tests would be needed (I assumed we already have this).
-
maflcko commented at 12:57 PM on February 5, 2024: member
The note about changing the type in 2024 was also removed. This passes all extended tests.
I don't think you need to detail what is changed and if the tests pass in the description. It would be better to focus on information that is useful to reviewers. For example, a measurement of memory before and after.
Also, when changing the type, you'll have to check all places where this is used, and update them, if needed. For example, casts should be removed and other types need to be increased in width to hold the new values.
-
maflcko commented at 10:12 AM on February 12, 2024: member
Are you still working on this? If not, I am happy to pick up.
-
russeree commented at 1:39 PM on February 12, 2024: contributor
Could I please have just a bit more time to work on this?
Thanks, Reese
- fanquake closed this on Feb 28, 2024
- fanquake added the label Up for grabs on Feb 28, 2024
- maflcko removed the label Up for grabs on Mar 15, 2024
- glozow referenced this in commit 1a19a4d960 on Aug 5, 2024
- bitcoin locked this on Mar 15, 2025