π¬ hebasto commented on pull request "build: Introduce CMake-based build system":
(https://github.com/bitcoin/bitcoin/pull/30454#discussion_r1706005633)
Addressed in https://github.com/bitcoin/bitcoin/pull/30454#issuecomment-2271981040.
(https://github.com/bitcoin/bitcoin/pull/30454#discussion_r1706005633)
Addressed in https://github.com/bitcoin/bitcoin/pull/30454#issuecomment-2271981040.
π¬ hebasto commented on pull request "build: Introduce CMake-based build system":
(https://github.com/bitcoin/bitcoin/pull/30454#discussion_r1706006163)
Addressed in https://github.com/bitcoin/bitcoin/pull/30454#issuecomment-2271981040.
(https://github.com/bitcoin/bitcoin/pull/30454#discussion_r1706006163)
Addressed in https://github.com/bitcoin/bitcoin/pull/30454#issuecomment-2271981040.
π ryanofsky merged a pull request: "log: Remove NOLINT(bitcoin-unterminated-logprintf)"
(https://github.com/bitcoin/bitcoin/pull/30485)
(https://github.com/bitcoin/bitcoin/pull/30485)
π murchandamus approved a pull request: "Testnet4 including PoW difficulty adjustment fix"
(https://github.com/bitcoin/bitcoin/pull/29775#pullrequestreview-2222087875)
tACK 6bfa26048dbafb91e9ca63ea8d3960271e798098
Reviewed code changes and resynced the node from scratch
(https://github.com/bitcoin/bitcoin/pull/29775#pullrequestreview-2222087875)
tACK 6bfa26048dbafb91e9ca63ea8d3960271e798098
Reviewed code changes and resynced the node from scratch
π¬ murchandamus commented on pull request "Testnet4 including PoW difficulty adjustment fix":
(https://github.com/bitcoin/bitcoin/pull/29775#discussion_r1706016674)
Are we sure that we will drop support next release? Otherwise it might be better to be a bit less specific:
```suggestion
argsman.AddArg("-testnet", "Use the testnet3 chain. Equivalent to -chain=test. Support for testnet3 is deprecated and will be removed in a future release. Consider moving to testnet4 now by using -testnet4.", ArgsManager::ALLOW_ANY, OptionsCategory::CHAINPARAMS);
```
(https://github.com/bitcoin/bitcoin/pull/29775#discussion_r1706016674)
Are we sure that we will drop support next release? Otherwise it might be better to be a bit less specific:
```suggestion
argsman.AddArg("-testnet", "Use the testnet3 chain. Equivalent to -chain=test. Support for testnet3 is deprecated and will be removed in a future release. Consider moving to testnet4 now by using -testnet4.", ArgsManager::ALLOW_ANY, OptionsCategory::CHAINPARAMS);
```
π¬ mzumsande commented on pull request "p2p: For assumeutxo, download snapshot chain before background chain":
(https://github.com/bitcoin/bitcoin/pull/29519#discussion_r1706054721)
done with the latest push.
(https://github.com/bitcoin/bitcoin/pull/29519#discussion_r1706054721)
done with the latest push.
π¬ mzumsande commented on pull request "p2p: For assumeutxo, download snapshot chain before background chain":
(https://github.com/bitcoin/bitcoin/pull/29519#issuecomment-2272057994)
> It may be worth logging something every time we ignore a peer that is on another chain.
[e977c69 ](https://github.com/bitcoin/bitcoin/commit/e977c698f97ac9bba30e4e3837f41721841c28c4)to [49d569c](https://github.com/bitcoin/bitcoin/commit/49d569cb1fdd62a9da8dff51dccaf4680fe3d0eb):
Added a log message and slightly reworded a comment.
(https://github.com/bitcoin/bitcoin/pull/29519#issuecomment-2272057994)
> It may be worth logging something every time we ignore a peer that is on another chain.
[e977c69 ](https://github.com/bitcoin/bitcoin/commit/e977c698f97ac9bba30e4e3837f41721841c28c4)to [49d569c](https://github.com/bitcoin/bitcoin/commit/49d569cb1fdd62a9da8dff51dccaf4680fe3d0eb):
Added a log message and slightly reworded a comment.
π¬ LarryRuane commented on pull request "logging: use bitset for categories":
(https://github.com/bitcoin/bitcoin/pull/26697#issuecomment-2272060737)
Force pushed rebase to fix conflict and also did some additional testing, I added several fake logging categories to ensure there can be more than 32 categories (the current limit), which is the main benefit of this pull. Also, I re-ran the benchmark tests (including with more than 32 categories), and this PR has no measurable performance impact.
@vasild and @ryanofsky, maybe you can take a look since you know this area, thanks.
(https://github.com/bitcoin/bitcoin/pull/26697#issuecomment-2272060737)
Force pushed rebase to fix conflict and also did some additional testing, I added several fake logging categories to ensure there can be more than 32 categories (the current limit), which is the main benefit of this pull. Also, I re-ran the benchmark tests (including with more than 32 categories), and this PR has no measurable performance impact.
@vasild and @ryanofsky, maybe you can take a look since you know this area, thanks.
π¬ fjahr commented on pull request "p2p: For assumeutxo, download snapshot chain before background chain":
(https://github.com/bitcoin/bitcoin/pull/29519#issuecomment-2272064338)
re-ACK 49d569cb1fdd62a9da8dff51dccaf4680fe3d0eb
Only trivial changes addressing comments, per diff: https://github.com/bitcoin/bitcoin/compare/e977c698f97ac9bba30e4e3837f41721841c28c4..49d569cb1fdd62a9da8dff51dccaf4680fe3d0eb
(https://github.com/bitcoin/bitcoin/pull/29519#issuecomment-2272064338)
re-ACK 49d569cb1fdd62a9da8dff51dccaf4680fe3d0eb
Only trivial changes addressing comments, per diff: https://github.com/bitcoin/bitcoin/compare/e977c698f97ac9bba30e4e3837f41721841c28c4..49d569cb1fdd62a9da8dff51dccaf4680fe3d0eb
π¬ fjahr commented on pull request "Testnet4 including PoW difficulty adjustment fix":
(https://github.com/bitcoin/bitcoin/pull/29775#discussion_r1706068877)
I think it's better to be precise and we could still shift it if that becomes absolutely necessary for a good reason. It seems better to have people prepare for it to be dropped in the next release unless there is good reason brought forward for shifting. This is better than the alternative that we are vague and then people claim last minute we can not do it in the next release already because we were not clear enough. I don't want to give an invite to the "Testnet3 is the real testnet" crowd :)
...
(https://github.com/bitcoin/bitcoin/pull/29775#discussion_r1706068877)
I think it's better to be precise and we could still shift it if that becomes absolutely necessary for a good reason. It seems better to have people prepare for it to be dropped in the next release unless there is good reason brought forward for shifting. This is better than the alternative that we are vague and then people claim last minute we can not do it in the next release already because we were not clear enough. I don't want to give an invite to the "Testnet3 is the real testnet" crowd :)
...
π ryanofsky approved a pull request: "test: [refactor] Use g_rand_ctx directly"
(https://github.com/bitcoin/bitcoin/pull/30571#pullrequestreview-2222184242)
Code review ACK fa295215f6fa3b85b0387511920f75eeb3e12b58 but I think it would be nicer to add `FastRandomContext& m_rng{g_rand_ctx}` to `BasicTestingSetup` and have most test code use `m_rng` instead of `g_rand_ctx` directly.
I think this would be nicer mostly as a matter of style since most test code now doesn't reference global variables directly, while this PR is adding hundreds of references. But it could also help down the road, for example if we wanted to remove the global, or run test
...
(https://github.com/bitcoin/bitcoin/pull/30571#pullrequestreview-2222184242)
Code review ACK fa295215f6fa3b85b0387511920f75eeb3e12b58 but I think it would be nicer to add `FastRandomContext& m_rng{g_rand_ctx}` to `BasicTestingSetup` and have most test code use `m_rng` instead of `g_rand_ctx` directly.
I think this would be nicer mostly as a matter of style since most test code now doesn't reference global variables directly, while this PR is adding hundreds of references. But it could also help down the road, for example if we wanted to remove the global, or run test
...
π¬ naiyoma commented on pull request "test: Use Decimal for fee calculations in feature_fee_estimation.py":
(https://github.com/bitcoin/bitcoin/pull/29566#discussion_r1706078135)
I was aiming for exact precision because of this comment https://github.com/bitcoin/bitcoin/pull/23225#issuecomment-938801112, but I get your point. Maybe if fee estimation changes to decimals internally in future, the tests can be modified accordingly.
(https://github.com/bitcoin/bitcoin/pull/29566#discussion_r1706078135)
I was aiming for exact precision because of this comment https://github.com/bitcoin/bitcoin/pull/23225#issuecomment-938801112, but I get your point. Maybe if fee estimation changes to decimals internally in future, the tests can be modified accordingly.
π¬ naiyoma commented on pull request "test: Use Decimal for fee calculations in feature_fee_estimation.py":
(https://github.com/bitcoin/bitcoin/pull/29566#discussion_r1706083059)
@maflcko IIUC reverting to the earlier version would mean that I also need to discard all the changes made to the functions `check_raw_estimates` and `check_smart_estimates`, right?
(https://github.com/bitcoin/bitcoin/pull/29566#discussion_r1706083059)
@maflcko IIUC reverting to the earlier version would mean that I also need to discard all the changes made to the functions `check_raw_estimates` and `check_smart_estimates`, right?
π¬ petertodd commented on pull request "[27.x] Even more backports":
(https://github.com/bitcoin/bitcoin/pull/30558#discussion_r1706083475)
Worth crediting @1440000bytes too here, as they finalized my pull-req.
(https://github.com/bitcoin/bitcoin/pull/30558#discussion_r1706083475)
Worth crediting @1440000bytes too here, as they finalized my pull-req.
π€ mzumsande reviewed a pull request: "lint: Find function calls in default arguments"
(https://github.com/bitcoin/bitcoin/pull/30553#pullrequestreview-2222204101)
Concept ACK, but someone who knows Rust better than I do will have to review it.
(https://github.com/bitcoin/bitcoin/pull/30553#pullrequestreview-2222204101)
Concept ACK, but someone who knows Rust better than I do will have to review it.
π¬ ariard commented on pull request "Remove mempoolfullrbf":
(https://github.com/bitcoin/bitcoin/pull/30592#issuecomment-2272200826)
I think `mempoolfullrbf` could be left in core, if some users wishes to have first-seen of received transactions. E.g for lightning type `option_zeroconf` where double spend can only happen if (a) funding keys leak which is a bigger problem or (b) double-spend by the the zero-conf inbound conf seller, though here the paid invoices can be used as fraud proofs.
Ultimately, itβs a wider conversation to have mempool policy being more configurable in its own module as jtimon tried to implement yea
...
(https://github.com/bitcoin/bitcoin/pull/30592#issuecomment-2272200826)
I think `mempoolfullrbf` could be left in core, if some users wishes to have first-seen of received transactions. E.g for lightning type `option_zeroconf` where double spend can only happen if (a) funding keys leak which is a bigger problem or (b) double-spend by the the zero-conf inbound conf seller, though here the paid invoices can be used as fraud proofs.
Ultimately, itβs a wider conversation to have mempool policy being more configurable in its own module as jtimon tried to implement yea
...
π¬ ariard commented on pull request "[27.x] Even more backports":
(https://github.com/bitcoin/bitcoin/pull/30558#issuecomment-2272212885)
I would recommend to re-add in the backport release notes that excerpt from `24.x`:
https://github.com/bitcoin/bitcoin/blob/master/doc/release-notes/release-notes-24.0.1.md
```
Contributors to this project strongly recommend that merchants and services
not accept unconfirmed transactions as final, and if they insist on doing so,
to take the appropriate steps to ensure they have some recourse or plan for
when their assumptions do not hold.
```
(https://github.com/bitcoin/bitcoin/pull/30558#issuecomment-2272212885)
I would recommend to re-add in the backport release notes that excerpt from `24.x`:
https://github.com/bitcoin/bitcoin/blob/master/doc/release-notes/release-notes-24.0.1.md
```
Contributors to this project strongly recommend that merchants and services
not accept unconfirmed transactions as final, and if they insist on doing so,
to take the appropriate steps to ensure they have some recourse or plan for
when their assumptions do not hold.
```
π€ Shuhaib07 reviewed a pull request: "refactor, wallet: get serialized size of `CRecipient`s directly"
(https://github.com/bitcoin/bitcoin/pull/30050#pullrequestreview-2222330434)
Approve
(https://github.com/bitcoin/bitcoin/pull/30050#pullrequestreview-2222330434)
Approve
π fjahr opened a pull request: "assumeutxo: Drop block height from metadata"
(https://github.com/bitcoin/bitcoin/pull/30598)
Fixes https://github.com/bitcoin/bitcoin/issues/30514 which has more context.
This is an alternative approach to #30516 with much of the [code being suggested there](https://github.com/bitcoin/bitcoin/pull/30516#discussion_r1689146902).
(https://github.com/bitcoin/bitcoin/pull/30598)
Fixes https://github.com/bitcoin/bitcoin/issues/30514 which has more context.
This is an alternative approach to #30516 with much of the [code being suggested there](https://github.com/bitcoin/bitcoin/pull/30516#discussion_r1689146902).
π¬ fjahr commented on pull request "Assumeutxo: Sanitize block height in metadata":
(https://github.com/bitcoin/bitcoin/pull/30516#issuecomment-2272254485)
> How?
The height in the metadata clearly tells us which height the hash is expected at. Not having the same hash at that height clearly tells us that the node is on a different chain than was expected by the metadata. That is better than just saying "we don't know this hash for whatever reason".
> I also didn't find any discussion about the reason for the block height in https://github.com/bitcoin/bitcoin/pull/29612 on a quick glance (but didn't expand every comment).
It was suggested
...
(https://github.com/bitcoin/bitcoin/pull/30516#issuecomment-2272254485)
> How?
The height in the metadata clearly tells us which height the hash is expected at. Not having the same hash at that height clearly tells us that the node is on a different chain than was expected by the metadata. That is better than just saying "we don't know this hash for whatever reason".
> I also didn't find any discussion about the reason for the block height in https://github.com/bitcoin/bitcoin/pull/29612 on a quick glance (but didn't expand every comment).
It was suggested
...