Bitcoin Core Github
43 subscribers
122K links
Download Telegram
💬 Sjors commented on pull request "Have createNewBlock() wait for tip, make rpc handle shutdown during long poll and wait methods":
(https://github.com/bitcoin/bitcoin/pull/31785#issuecomment-2740599986)
@ismaelsadeeq I think this just preserves existing RPC behavior. What to return during shutdown is a bit arbitrary anyway, because a connected client will have to handle shutdown more generally, potentially by also shutting down.

I also haven't checked if any of the other tests rely on the existing behavior.

So maybe better for a followup?
🤔 ryanofsky reviewed a pull request: "refactor: Improve assumeutxo state representation"
(https://github.com/bitcoin/bitcoin/pull/30214#pullrequestreview-2702602071)
Thanks for the reviews

Rebased 467528960689c2913c101ef75bc833e8f04bd0f3 -> 00c3e4db49ebd2c3bf2f3c7f2a8c9ba5dfb3c8f5 ([`pr/cstate.10`](https://github.com/ryanofsky/bitcoin/commits/pr/cstate.10) -> [`pr/cstate.11`](https://github.com/ryanofsky/bitcoin/commits/pr/cstate.11), [compare](https://github.com/ryanofsky/bitcoin/compare/pr/cstate.10-rebase..pr/cstate.11)) due to conflict with #31519, also adding test comments.
Update 00c3e4db49ebd2c3bf2f3c7f2a8c9ba5dfb3c8f5 -> 137d5980abd49a1d2bf783cb5
...
💬 ryanofsky commented on pull request "refactor: Improve assumeutxo state representation":
(https://github.com/bitcoin/bitcoin/pull/30214#discussion_r2005575053)
re: https://github.com/bitcoin/bitcoin/pull/30214#discussion_r2004115942

> I find the entire `chainstatemanager_snapshot_init` subtest very confusing

Yes. And thanks for digging into the test. I added comments to try to make it less confusing. For reference the test was added [in e4d7995](https://github.com/bitcoin/bitcoin/pull/25667/commits/e4d799528696c5ede38c257afaffd367917e0de8#diff-dbada1fe3a3d0af884304dd28be8c9df74b592401dec2c6400f6b491aefe6c9bR472) and seems basically unchanged sin
...
💬 ryanofsky commented on pull request "refactor: Improve assumeutxo state representation":
(https://github.com/bitcoin/bitcoin/pull/30214#discussion_r2005739316)
re: https://github.com/bitcoin/bitcoin/pull/30214#discussion_r2004288056

Thanks, fixed commit message. Ultimately I think it would be best to drop the `m_target_utxohash` member and just check the `ReachedTarget()` condition everywhere instead of using `m_target_utxohash.has_value()`. But this needs to be done carefully, and it might require getting rid of some "belt and suspenders" checks in the current code which are technically unnecessary but give some confidence the code works correctly
...
💬 yancyribbens commented on pull request "doc: clarify the documentation of `Assume` assertion":
(https://github.com/bitcoin/bitcoin/pull/32100#discussion_r2005759806)
Interesting. If `Assume` can be optimized out during production possibly, is there any reason to prefer `Assert`?

There's an assert [here](https://github.com/bitcoin/bitcoin/blob/998386d4462f5e06412303ba559791da83b913fb/src/wallet/coinselection.cpp#L159) in a coin-selection algo that is meant to be performant. Maybe this should be changed to `Asume`.
💬 vasild commented on pull request "Split CConnman":
(https://github.com/bitcoin/bitcoin/pull/30988#issuecomment-2740633112)
`741f17e51d...f2f9ff9823`: rebase due to conflicts
💬 maflcko commented on pull request "[IBD] batch block reads/writes during `AutoFile` serialization":
(https://github.com/bitcoin/bitcoin/pull/31551#discussion_r2005770365)
This could be an assume, given that the program can continue normally, albeit it is a pessimization or possible OOM on low memory machines?
💬 fjahr commented on pull request "doc: add guidance for RPC to developer notes":
(https://github.com/bitcoin/bitcoin/pull/30142#issuecomment-2740650390)
ACK c6eca6f3961d780d6a395c3346e44be1a0072f08
💬 maflcko commented on pull request "doc: clarify the documentation of `Assume` assertion":
(https://github.com/bitcoin/bitcoin/pull/32100#discussion_r2005783208)
> There's an assert [here](https://github.com/bitcoin/bitcoin/blob/998386d4462f5e06412303ba559791da83b913fb/src/wallet/coinselection.cpp#L159) in a coin-selection algo that is meant to be performant. Maybe this should be changed to `Asume`.

I haven't measured this, but I'd say an assert on a value of a type of `size_t` shouldn't be noticeable in this context.
💬 fanquake commented on pull request "build: Switch to Qt 6":
(https://github.com/bitcoin/bitcoin/pull/30997#discussion_r2005785025)
> Otherwise, it fails to find XCB:

Is that a Qt bug? Seems odd that if we don't need it now, we'd need to reintroduce its usage after migrating to a newer version of Qt and migrating more of its build to CMake?
💬 maflcko commented on pull request "doc: add guidance for RPC to developer notes":
(https://github.com/bitcoin/bitcoin/pull/30142#issuecomment-2740670571)
lgtm ACK c6eca6f3961d780d6a395c3346e44be1a0072f08
💬 sipa commented on pull request "doc: clarify the documentation of `Assume` assertion":
(https://github.com/bitcoin/bitcoin/pull/32100#issuecomment-2740685232)
Concept ACK, this is largely how I've been using Assume().

My thinking is that due to the optimizing-out property of `Assume()`, the concern about potential performance impact is (even) lower than for `Assert()`/`assert()`, and thus one can be even more liberal when using these. Note that even `Assert()`/`assert()` tend to have very low cost for cheap conditions, as they're generally well-predicted by the CPU branch predictor (so the cost tends to be in the nanosecond or less range), but for
...
💬 ryanofsky commented on pull request "multiprocess: add bitcoin-mine test program":
(https://github.com/bitcoin/bitcoin/pull/30437#issuecomment-2740692162)
Rebased 7e7bcd26ad880643d21e9be081068d74c6fb0fd0 -> 5554f9cb4abf7e1852dd79d2d75e714fa8cbeadd ([`pr/mine.19`](https://github.com/ryanofsky/bitcoin/commits/pr/mine.19) -> [`pr/mine.20`](https://github.com/ryanofsky/bitcoin/commits/pr/mine.20), [compare](https://github.com/ryanofsky/bitcoin/compare/pr/mine.19-rebase..pr/mine.20)) due to conflict with #31866
💬 hodlinator commented on pull request "miniscript refactor: Remove unique_ptr-indirection (#30866 follow-up)":
(https://github.com/bitcoin/bitcoin/pull/31713#discussion_r2005807278)
Adjusted in latest push, which is otherwise just a rebase.
💬 ryanofsky commented on pull request "multiprocess: Add bitcoin wrapper executable":
(https://github.com/bitcoin/bitcoin/pull/31375#issuecomment-2740714244)
Rebased a9935d4dae8847d0549ec51ddc4349c7e8c61763 -> 418236c106e32abd7357551d309f8e6d1e494f72 ([`pr/wrap.24`](https://github.com/ryanofsky/bitcoin/commits/pr/wrap.24) -> [`pr/wrap.25`](https://github.com/ryanofsky/bitcoin/commits/pr/wrap.25), [compare](https://github.com/ryanofsky/bitcoin/compare/pr/wrap.24-rebase..pr/wrap.25)) after #31866 with no changes
💬 willcl-ark commented on pull request "ci: run test-each-commit on merge to master":
(https://github.com/bitcoin/bitcoin/pull/32103#issuecomment-2740715845)
> It looks like you are trying to change the task to test changes merged into master to avoid running into issues fixed previously.

Correct. Whilst we can try to rely on developers keeping up-to-date with rebases on master it seems less error-prone to do it as part of the task.

> However, you check out the previous commit, so overall this change is a no-op , unless I am missing something?
>
> Maybe you wanted to instead _rebase_ the changes onto master? However, this is not possible in
...
💬 maflcko commented on pull request "ci: run test-each-commit on merge to master":
(https://github.com/bitcoin/bitcoin/pull/32103#issuecomment-2740739085)
> > It looks like you are trying to change the task to test changes merged into master to avoid running into issues fixed previously.
>
> Correct. Whilst we can try to rely on developers keeping up-to-date with rebases on master it seems less error-prone to do it as part of the task.

It is possible to write code in a commit that compiles fine on master, but not when compiling the commit itself. (The reverse of a silent merge conflict) Though, there only was one instance of this. More likel
...
💬 instagibbs commented on pull request "cluster mempool: introduce TxGraph":
(https://github.com/bitcoin/bitcoin/pull/31363#issuecomment-2740749545)
reviewed via `git range-diff master 72a97c0a07ea6e5a95ab37c8d95e1ea02cff8e92 1601906941fa559ebbee7898453fa77f4606ad38`

> Ref objects are now allowed to outlive TxGraph

Can this get surfaced in the fuzz coverage with something that would previously fail?
💬 EthanHeilman commented on pull request "tests: improves tapscript unit tests":
(https://github.com/bitcoin/bitcoin/pull/31640#issuecomment-2740760807)
@instagibbs Any changes you want me to make?
💬 maflcko commented on pull request "contrib: Make deterministic-coverage error messages more readable":
(https://github.com/bitcoin/bitcoin/pull/32074#discussion_r2005845404)
thx, done!