👍 ryanofsky approved a pull request: "CLI cleanups"
(https://github.com/bitcoin/bitcoin/pull/31887#pullrequestreview-2708629412)
Code review ACK d423fd9ec83ae323ac29bdc1b677ed8260bd59c4, just running clang-format and updating commit messages since last review
(https://github.com/bitcoin/bitcoin/pull/31887#pullrequestreview-2708629412)
Code review ACK d423fd9ec83ae323ac29bdc1b677ed8260bd59c4, just running clang-format and updating commit messages since last review
👍 ryanofsky approved a pull request: "Execute Discover() when bind=0.0.0.0 or :: is set"
(https://github.com/bitcoin/bitcoin/pull/31492#pullrequestreview-2708633985)
Code review ACK 1561575c2d984fd94c9679de3d1de207ef6c7c06, but would be nice to have feedback from @vasild here since this is supposed to fix #31293.
The changes here all seem to make sense but the interactions between them are complicated. I think this PR would be easier to review if the changes could be broken down as much as possible. It would be nice to add new tests in a first commit to clarify current buggy behaviors. Then it seems like the GetListenPort =onion parsing fix could be a sep
...
(https://github.com/bitcoin/bitcoin/pull/31492#pullrequestreview-2708633985)
Code review ACK 1561575c2d984fd94c9679de3d1de207ef6c7c06, but would be nice to have feedback from @vasild here since this is supposed to fix #31293.
The changes here all seem to make sense but the interactions between them are complicated. I think this PR would be easier to review if the changes could be broken down as much as possible. It would be nice to add new tests in a first commit to clarify current buggy behaviors. Then it seems like the GetListenPort =onion parsing fix could be a sep
...
💬 ryanofsky commented on pull request "Execute Discover() when bind=0.0.0.0 or :: is set":
(https://github.com/bitcoin/bitcoin/pull/31492#discussion_r2009158096)
Might be missing something, but it seems like this could be simplified:
```c++
const CService onion_addr{DefaultOnionServiceTarget(GetListenPort() + 1);
```
(https://github.com/bitcoin/bitcoin/pull/31492#discussion_r2009158096)
Might be missing something, but it seems like this could be simplified:
```c++
const CService onion_addr{DefaultOnionServiceTarget(GetListenPort() + 1);
```
🚀 ryanofsky merged a pull request: "CLI cleanups"
(https://github.com/bitcoin/bitcoin/pull/31887)
(https://github.com/bitcoin/bitcoin/pull/31887)
🤔 ryanofsky reviewed a pull request: "Fix tiebreak when loading blocks from disk (and add tests for comparing chain ties)"
(https://github.com/bitcoin/bitcoin/pull/29640#pullrequestreview-2708642977)
Might be ready for merge if @mzumsande and @sipa can re-ack
(https://github.com/bitcoin/bitcoin/pull/29640#pullrequestreview-2708642977)
Might be ready for merge if @mzumsande and @sipa can re-ack
💬 darosior commented on issue "Enable PCP by default?":
(https://github.com/bitcoin/bitcoin/issues/31663#issuecomment-2746308933)
And if you do enable it does the port mapping works from `bitcoind`?
(https://github.com/bitcoin/bitcoin/issues/31663#issuecomment-2746308933)
And if you do enable it does the port mapping works from `bitcoind`?
💬 Salarja commented on issue "depends: capnp build ignores config_opts":
(https://github.com/bitcoin/bitcoin/issues/32068#issuecomment-2746310181)
https://github.com/bitcoin/bitcoin/issues/32068
(https://github.com/bitcoin/bitcoin/issues/32068#issuecomment-2746310181)
https://github.com/bitcoin/bitcoin/issues/32068
💬 yancyribbens commented on pull request "contrib: document asmap-tool commands more thoroughly":
(https://github.com/bitcoin/bitcoin/pull/32110#issuecomment-2746323958)
This was pretty interesting to read more about. It looks like ASmap can provide protection from certain types of threat actors, such as those that can allocate a large number of addresses from a single RIR effectively creating a type of Sybil attack. However, it seems to me there's another attack vector, such as a botnet that infects numerous systems across many RIR's that this wouldn't be effective against.
(https://github.com/bitcoin/bitcoin/pull/32110#issuecomment-2746323958)
This was pretty interesting to read more about. It looks like ASmap can provide protection from certain types of threat actors, such as those that can allocate a large number of addresses from a single RIR effectively creating a type of Sybil attack. However, it seems to me there's another attack vector, such as a botnet that infects numerous systems across many RIR's that this wouldn't be effective against.
💬 sipa commented on pull request "contrib: document asmap-tool commands more thoroughly":
(https://github.com/bitcoin/bitcoin/pull/32110#discussion_r2009180426)
I don't think it defeats the purpose. It's just removing information one normally does not care about.
I'd just say "However, it does interfere with the ability to compute meaningful diffs".
(https://github.com/bitcoin/bitcoin/pull/32110#discussion_r2009180426)
I don't think it defeats the purpose. It's just removing information one normally does not care about.
I'd just say "However, it does interfere with the ability to compute meaningful diffs".
💬 sipa commented on pull request "contrib: document asmap-tool commands more thoroughly":
(https://github.com/bitcoin/bitcoin/pull/32110#discussion_r2009179891)
Typo: `files are`, or `a file is`
(https://github.com/bitcoin/bitcoin/pull/32110#discussion_r2009179891)
Typo: `files are`, or `a file is`
💬 sipa commented on pull request "contrib: document asmap-tool commands more thoroughly":
(https://github.com/bitcoin/bitcoin/pull/32110#discussion_r2009180269)
Instead of accuracy, maybe say "This procedure is lossy because it loses information about which ranges were unassigned"? Arguably, no accuracy is lost, because all real IP addresses are still mapped to their correct AS.
(https://github.com/bitcoin/bitcoin/pull/32110#discussion_r2009180269)
Instead of accuracy, maybe say "This procedure is lossy because it loses information about which ranges were unassigned"? Arguably, no accuracy is lost, because all real IP addresses are still mapped to their correct AS.
💬 sipa commented on pull request "contrib: document asmap-tool commands more thoroughly":
(https://github.com/bitcoin/bitcoin/pull/32110#discussion_r2009180669)
Sure it can be, it's just less meaningful.
(https://github.com/bitcoin/bitcoin/pull/32110#discussion_r2009180669)
Sure it can be, it's just less meaningful.
💬 sipa commented on pull request "contrib: document asmap-tool commands more thoroughly":
(https://github.com/bitcoin/bitcoin/pull/32110#discussion_r2009180746)
Same here.
(https://github.com/bitcoin/bitcoin/pull/32110#discussion_r2009180746)
Same here.
💬 sipa commented on pull request "contrib: document asmap-tool commands more thoroughly":
(https://github.com/bitcoin/bitcoin/pull/32110#issuecomment-2746342015)
@yancyribbens
> However, it seems to me there's another attack vector, such as a botnet that infects numerous systems across many RIR's that this wouldn't be effective against.
Of course, but the theory is that getting access to many *reachable* IP addresses in many different network is far more expensive than in one or a few.
(https://github.com/bitcoin/bitcoin/pull/32110#issuecomment-2746342015)
@yancyribbens
> However, it seems to me there's another attack vector, such as a botnet that infects numerous systems across many RIR's that this wouldn't be effective against.
Of course, but the theory is that getting access to many *reachable* IP addresses in many different network is far more expensive than in one or a few.
💬 yancyribbens commented on issue "Migrate from BTC/kvB to sat/vB on RPC and startup options":
(https://github.com/bitcoin/bitcoin/issues/32093#issuecomment-2746347346)
> I would recommend that we continue to use sat/kvB internally, maybe sat/kwu in the long-term, as we do only want to use integers but do want more precision than integer sat/vB
In rust-bitcoin land, the library uses sat/kwu as the default basis, and I think it would be rather nice if core and rust-bitcoin used the same default metric for FeeRate. So +1 for sat/kwu long-term idea.
(https://github.com/bitcoin/bitcoin/issues/32093#issuecomment-2746347346)
> I would recommend that we continue to use sat/kvB internally, maybe sat/kwu in the long-term, as we do only want to use integers but do want more precision than integer sat/vB
In rust-bitcoin land, the library uses sat/kwu as the default basis, and I think it would be rather nice if core and rust-bitcoin used the same default metric for FeeRate. So +1 for sat/kwu long-term idea.
💬 sipa commented on pull request "cluster mempool: introduce TxGraph":
(https://github.com/bitcoin/bitcoin/pull/31363#discussion_r2009188901)
This works:
```c++
TxGraph::Ref ref;
...
ref = txgraph.AddTransaction(fee, size):
```
So think of an empty Ref as an equivalent to an `std::unique_ptr` to `nullptr` or so. It's potentially useful just so you can have a variable declared as a member in a class or so without immediately initializing it.
It even goes further in that this works even through subclasses:
```
class TxMempoolEntry : public TxGraph::Ref { ... }
TxMemoolEntry entry;
...
entry = txgraph.AddTransaction
...
(https://github.com/bitcoin/bitcoin/pull/31363#discussion_r2009188901)
This works:
```c++
TxGraph::Ref ref;
...
ref = txgraph.AddTransaction(fee, size):
```
So think of an empty Ref as an equivalent to an `std::unique_ptr` to `nullptr` or so. It's potentially useful just so you can have a variable declared as a member in a class or so without immediately initializing it.
It even goes further in that this works even through subclasses:
```
class TxMempoolEntry : public TxGraph::Ref { ... }
TxMemoolEntry entry;
...
entry = txgraph.AddTransaction
...
💬 yancyribbens commented on issue "Migrate from BTC/kvB to sat/vB on RPC and startup options":
(https://github.com/bitcoin/bitcoin/issues/32093#issuecomment-2746348315)
Also, there's a long-standing issue where rust-bitcoin is off by one when compared to core because of the difference in metrics: https://github.com/rust-bitcoin/rust-bitcoin/issues/3806
(https://github.com/bitcoin/bitcoin/issues/32093#issuecomment-2746348315)
Also, there's a long-standing issue where rust-bitcoin is off by one when compared to core because of the difference in metrics: https://github.com/rust-bitcoin/rust-bitcoin/issues/3806
💬 frankomosh commented on issue "Enable PCP by default?":
(https://github.com/bitcoin/bitcoin/issues/31663#issuecomment-2746348967)
> And if you do enable it does the port mapping works from `bitcoind`?
unfortunately my ISP cannot allow me to change it, so I can't conclusively perform this specific test
(https://github.com/bitcoin/bitcoin/issues/31663#issuecomment-2746348967)
> And if you do enable it does the port mapping works from `bitcoind`?
unfortunately my ISP cannot allow me to change it, so I can't conclusively perform this specific test
💬 sipa commented on pull request "cluster mempool: introduce TxGraph":
(https://github.com/bitcoin/bitcoin/pull/31363#discussion_r2009189848)
I tried to encapsulate it in its own class, but it's hard to give it the same performance (which is relevant in the context of huge reorgs) without making the interface rather involved (needs a "representative" type that contains a pointer to the `PartitionData` object, separate from the element data type), and even then, the union-find version in `Trim()` in 31553 would need its own separate implementation still.
Going to leave it for now, we can think about cleanups later.
(https://github.com/bitcoin/bitcoin/pull/31363#discussion_r2009189848)
I tried to encapsulate it in its own class, but it's hard to give it the same performance (which is relevant in the context of huge reorgs) without making the interface rather involved (needs a "representative" type that contains a pointer to the `PartitionData` object, separate from the element data type), and even then, the union-find version in `Trim()` in 31553 would need its own separate implementation still.
Going to leave it for now, we can think about cleanups later.
💬 yancyribbens commented on pull request "fuzz: wallet: fix crypter target":
(https://github.com/bitcoin/bitcoin/pull/32118#issuecomment-2746352554)
nit: the commit message is pretty sparse. Could add a "why" section to the commit.
(https://github.com/bitcoin/bitcoin/pull/32118#issuecomment-2746352554)
nit: the commit message is pretty sparse. Could add a "why" section to the commit.