💬 Eunovo commented on issue "assumevalid is not always applied when reindexing":
(https://github.com/bitcoin/bitcoin/issues/31494#issuecomment-2573707408)
> * always enable assumvalid while connecting blocks in the context of reindexing
Isn't it still valuable to check that the current block is an ancestor of the most work chain?
(https://github.com/bitcoin/bitcoin/issues/31494#issuecomment-2573707408)
> * always enable assumvalid while connecting blocks in the context of reindexing
Isn't it still valuable to check that the current block is an ancestor of the most work chain?
💬 LarryRuane commented on pull request "dbwrapper: Bump LevelDB max file size to 32 MiB to avoid system slowdown from high disk cache flush rate":
(https://github.com/bitcoin/bitcoin/pull/30039#issuecomment-2573707548)
@sipa:
> Concept ACK. Please update the PR title and description to reflect the new size.
If it is still possible post-merge, please update the description; it still says 128 MiB (the title has been updated), thanks.
(https://github.com/bitcoin/bitcoin/pull/30039#issuecomment-2573707548)
@sipa:
> Concept ACK. Please update the PR title and description to reflect the new size.
If it is still possible post-merge, please update the description; it still says 128 MiB (the title has been updated), thanks.
💬 ismaelsadeeq commented on pull request "mining: bugfix: Fix duplicate coinbase tx weight reservation":
(https://github.com/bitcoin/bitcoin/pull/31384#discussion_r1904514447)
fixed. thanks @pinheadmz
(https://github.com/bitcoin/bitcoin/pull/31384#discussion_r1904514447)
fixed. thanks @pinheadmz
💬 theuni commented on issue "cmake inconsistently overriding `-O3` (sometimes)":
(https://github.com/bitcoin/bitcoin/issues/31491#issuecomment-2573712156)
Note that this does not address the depends problem. The issue there is that the "-Ox" flags are jumbled in with the rest of the flags.
To fix that, we need to grab the "-O" values out of the passed-in `CXXFLAGS` and tack the last one onto `CMAKE_CXX_FLAGS_RELWITHDEBINFO_INIT`. I'll push a commit for that to my branch.
(https://github.com/bitcoin/bitcoin/issues/31491#issuecomment-2573712156)
Note that this does not address the depends problem. The issue there is that the "-Ox" flags are jumbled in with the rest of the flags.
To fix that, we need to grab the "-O" values out of the passed-in `CXXFLAGS` and tack the last one onto `CMAKE_CXX_FLAGS_RELWITHDEBINFO_INIT`. I'll push a commit for that to my branch.
💬 furszy commented on pull request "test: raise explicit error if any of the needed release binaries is missing":
(https://github.com/bitcoin/bitcoin/pull/31462#discussion_r1904521854)
+1. Something like this would be helpful. I've received a few messages sharing these logs without knowing what to do next.
(https://github.com/bitcoin/bitcoin/pull/31462#discussion_r1904521854)
+1. Something like this would be helpful. I've received a few messages sharing these logs without knowing what to do next.
👍 ryanofsky approved a pull request: "test: Add test for rpcwhitelistdefault"
(https://github.com/bitcoin/bitcoin/pull/29858#pullrequestreview-2532726241)
Code review ACK fcf0ead6cd358fd35909e1102bdae2c176b0ace6. I left suggestions below, but none are important and they can be ignored. I think it is better to have this test coverage for this than not to have it, and no need to spend too much time iterating on the PR just to improve test code quality which is already decent.
Note that this PR does not provide any coverage for the case where rpcwhitelistdefault setting is unset, only for the cases where it is explicitly set to 0 and explicitly se
...
(https://github.com/bitcoin/bitcoin/pull/29858#pullrequestreview-2532726241)
Code review ACK fcf0ead6cd358fd35909e1102bdae2c176b0ace6. I left suggestions below, but none are important and they can be ignored. I think it is better to have this test coverage for this than not to have it, and no need to spend too much time iterating on the PR just to improve test code quality which is already decent.
Note that this PR does not provide any coverage for the case where rpcwhitelistdefault setting is unset, only for the cases where it is explicitly set to 0 and explicitly se
...
💬 ryanofsky commented on pull request "test: Add test for rpcwhitelistdefault":
(https://github.com/bitcoin/bitcoin/pull/29858#discussion_r1904534581)
In commit "test: Add test for rpcwhitelistdefault" (fcf0ead6cd358fd35909e1102bdae2c176b0ace6)
Since this code is changing configuration that affects all future tests I think it would be less confusing if it were moved out of this individual test method and into the main `run_test` method. Otherwise it is not clear that calling this particular test method has side effects for calls to future test methods.
(https://github.com/bitcoin/bitcoin/pull/29858#discussion_r1904534581)
In commit "test: Add test for rpcwhitelistdefault" (fcf0ead6cd358fd35909e1102bdae2c176b0ace6)
Since this code is changing configuration that affects all future tests I think it would be less confusing if it were moved out of this individual test method and into the main `run_test` method. Otherwise it is not clear that calling this particular test method has side effects for calls to future test methods.
💬 ryanofsky commented on pull request "test: Add test for rpcwhitelistdefault":
(https://github.com/bitcoin/bitcoin/pull/29858#discussion_r1904497634)
In commit "test: Add test for rpcwhitelistdefault" (fcf0ead6cd358fd35909e1102bdae2c176b0ace6)
I think it would be good to change this line to if `user[2] is not None:` and change the new user's whitelist above from `""` to `None`. This should be clearer and less confusing because `""` looks like an empty whitelist, not an unspecified whitelist, and "" is already used elsewhere in the test to check empty whitelists. `None` would be clearer than `""` as a way to represent unspecified whitelists
...
(https://github.com/bitcoin/bitcoin/pull/29858#discussion_r1904497634)
In commit "test: Add test for rpcwhitelistdefault" (fcf0ead6cd358fd35909e1102bdae2c176b0ace6)
I think it would be good to change this line to if `user[2] is not None:` and change the new user's whitelist above from `""` to `None`. This should be clearer and less confusing because `""` looks like an empty whitelist, not an unspecified whitelist, and "" is already used elsewhere in the test to check empty whitelists. `None` would be clearer than `""` as a way to represent unspecified whitelists
...
💬 ryanofsky commented on pull request "test: Add test for rpcwhitelistdefault":
(https://github.com/bitcoin/bitcoin/pull/29858#discussion_r1904493624)
In commit "test: Add test for rpcwhitelistdefault" (fcf0ead6cd358fd35909e1102bdae2c176b0ace6)
This function mostly contains moved code, but is confusing because it is referencing a hardcoded index in lists that are not defined here. Would suggest replacing this with a shorter version:
```python
def get_permissions(whitelist):
return [perm for perm in whitelist.replace(" ", "").split(",") if perm]
```
And replacing `get_permissions(user)` with `get_permissions(user[2])` at callsit
...
(https://github.com/bitcoin/bitcoin/pull/29858#discussion_r1904493624)
In commit "test: Add test for rpcwhitelistdefault" (fcf0ead6cd358fd35909e1102bdae2c176b0ace6)
This function mostly contains moved code, but is confusing because it is referencing a hardcoded index in lists that are not defined here. Would suggest replacing this with a shorter version:
```python
def get_permissions(whitelist):
return [perm for perm in whitelist.replace(" ", "").split(",") if perm]
```
And replacing `get_permissions(user)` with `get_permissions(user[2])` at callsit
...
💬 ryanofsky commented on pull request "test: Add test for rpcwhitelistdefault":
(https://github.com/bitcoin/bitcoin/pull/29858#discussion_r1904542876)
In commit "test: Add test for rpcwhitelistdefault" (fcf0ead6cd358fd35909e1102bdae2c176b0ace6)
Would probably make test clearer if added this new user to `self.strange_users` instead of `self.users` so it would not be necessary for the later tests in this file to need special cases like changing `for user in self.users` to `for user in self.users[:2]` and needing to hardcode `self.users[2]`.
(https://github.com/bitcoin/bitcoin/pull/29858#discussion_r1904542876)
In commit "test: Add test for rpcwhitelistdefault" (fcf0ead6cd358fd35909e1102bdae2c176b0ace6)
Would probably make test clearer if added this new user to `self.strange_users` instead of `self.users` so it would not be necessary for the later tests in this file to need special cases like changing `for user in self.users` to `for user in self.users[:2]` and needing to hardcode `self.users[2]`.
💬 ryanofsky commented on pull request "test: Add test for rpcwhitelistdefault":
(https://github.com/bitcoin/bitcoin/pull/29858#discussion_r1904514340)
In commit "test: Add test for rpcwhitelistdefault" (fcf0ead6cd358fd35909e1102bdae2c176b0ace6)
I don't understand the meaning of the COMMON_PERMISSIONS constant, and it seems it might not have have any clear meaning. I think it would probably clearer to drop the constant and write the list literally in the two places where it's used. Since other code in the tests is already referencing method names directly it would seem clearer if they did that consistently.
(https://github.com/bitcoin/bitcoin/pull/29858#discussion_r1904514340)
In commit "test: Add test for rpcwhitelistdefault" (fcf0ead6cd358fd35909e1102bdae2c176b0ace6)
I don't understand the meaning of the COMMON_PERMISSIONS constant, and it seems it might not have have any clear meaning. I think it would probably clearer to drop the constant and write the list literally in the two places where it's used. Since other code in the tests is already referencing method names directly it would seem clearer if they did that consistently.
💬 achow101 commented on pull request "wallet: Utilize IsMine() and CanProvide() in migration to cover edge cases":
(https://github.com/bitcoin/bitcoin/pull/31495#discussion_r1904565515)
Ah, fixed.
(https://github.com/bitcoin/bitcoin/pull/31495#discussion_r1904565515)
Ah, fixed.
💬 achow101 commented on pull request "wallet: Utilize IsMine() and CanProvide() in migration to cover edge cases":
(https://github.com/bitcoin/bitcoin/pull/31495#discussion_r1904565593)
Removed
(https://github.com/bitcoin/bitcoin/pull/31495#discussion_r1904565593)
Removed
👍 TheCharlatan approved a pull request: "rpc: fix mintime field testnet4, expand timewarp attack test"
(https://github.com/bitcoin/bitcoin/pull/31600#pullrequestreview-2532864851)
ACK 5ba770089e9ecf82645ae60aa2bc7f26085a5573
(https://github.com/bitcoin/bitcoin/pull/31600#pullrequestreview-2532864851)
ACK 5ba770089e9ecf82645ae60aa2bc7f26085a5573
💬 achow101 commented on pull request "descriptors: Try pubkeys of both evenness when retrieving the private keys for an xonly pubkey in a descriptor":
(https://github.com/bitcoin/bitcoin/pull/31590#discussion_r1904579870)
Done
(https://github.com/bitcoin/bitcoin/pull/31590#discussion_r1904579870)
Done
💬 achow101 commented on pull request "descriptors: Try pubkeys of both evenness when retrieving the private keys for an xonly pubkey in a descriptor":
(https://github.com/bitcoin/bitcoin/pull/31590#discussion_r1904579937)
Done
(https://github.com/bitcoin/bitcoin/pull/31590#discussion_r1904579937)
Done
💬 achow101 commented on pull request "descriptors: Try pubkeys of both evenness when retrieving the private keys for an xonly pubkey in a descriptor":
(https://github.com/bitcoin/bitcoin/pull/31590#discussion_r1904580002)
Done
(https://github.com/bitcoin/bitcoin/pull/31590#discussion_r1904580002)
Done
💬 achow101 commented on pull request "descriptors: Try pubkeys of both evenness when retrieving the private keys for an xonly pubkey in a descriptor":
(https://github.com/bitcoin/bitcoin/pull/31590#issuecomment-2573821002)
> commit message / PR description micro-nit: haven't seen the term "evenness" before in this context, I think we usually call it "parity bit" (as in [BIP-341](https://github.com/bitcoin/bips/blob/master/bip-0341.mediawiki#cite_note-10))
Fixed those.
(https://github.com/bitcoin/bitcoin/pull/31590#issuecomment-2573821002)
> commit message / PR description micro-nit: haven't seen the term "evenness" before in this context, I think we usually call it "parity bit" (as in [BIP-341](https://github.com/bitcoin/bips/blob/master/bip-0341.mediawiki#cite_note-10))
Fixed those.
💬 theuni commented on issue "cmake inconsistently overriding `-O3` (sometimes)":
(https://github.com/bitcoin/bitcoin/issues/31491#issuecomment-2573886240)
Unfortunately it seems like the behavior around `$config_FLAGS` is just broken in depends. It uses `_INIT` values which are always appended-to.
So at the moment, the $config setting always takes precedence over what's set in depends, even if not overriding C(XX)FLAGS.
@hebasto Have you experimented with using regular cache variables as opposed to the _INIT ones?
(https://github.com/bitcoin/bitcoin/issues/31491#issuecomment-2573886240)
Unfortunately it seems like the behavior around `$config_FLAGS` is just broken in depends. It uses `_INIT` values which are always appended-to.
So at the moment, the $config setting always takes precedence over what's set in depends, even if not overriding C(XX)FLAGS.
@hebasto Have you experimented with using regular cache variables as opposed to the _INIT ones?
💬 sipa commented on pull request "p2p: track and use all potential peers for orphan resolution":
(https://github.com/bitcoin/bitcoin/pull/31397#discussion_r1904615930)
The second isn't possible today, as no standard transaction output supports spending with both empty and non-empty witnesses (P2A is invalid with non-empty witness; P2WPKH/P2WSH/P2TR are invalid with empty witness).
Indeed, doesn't seem a big concern. Marking resolved.
(https://github.com/bitcoin/bitcoin/pull/31397#discussion_r1904615930)
The second isn't possible today, as no standard transaction output supports spending with both empty and non-empty witnesses (P2A is invalid with non-empty witness; P2WPKH/P2WSH/P2TR are invalid with empty witness).
Indeed, doesn't seem a big concern. Marking resolved.