Commit 063a8b8
committed
Merge bitcoin/bitcoin#29058: net, cli: use v2transport for manual/addrfetch connections, add to -netinfo
fb5bfed cli: add transport protcol column to -netinfo (Martin Zumsande)
9eed22e net: attempt v2 transport for addrfetch connections if we support it (Martin Zumsande)
770c031 net: attempt v2 transport for manual connections if we support it (Martin Zumsande)
Pull request description:
Some preparations before enabling `-v2transport` as the default:
* Use v2 for `-connect`, `-addnode` config arg and `-seednode` if `-v2transport` is enabled.
Our peer may or may not support v2, but I don't think an extra option is necessary for any of these (we have that for the `addnode` rpc), because we have the reconnection mechanism that will try again with `v1` if our peer doesn't support `v2`.
* Add a column for the transport protocol to `-netinfo`. I added it next to the `net` column because I thought it looked nice there, but if people prefer it somewhere else I'm happy to move it.

ACKs for top commit:
sipa:
utACK fb5bfed
achow101:
ACK fb5bfed
stratospher:
tested ACK fb5bfed. addrfetch + manual connections aren't frequent and it would be useful to have this for transition to v2 one day.
theStack:
ACK fb5bfed
kristapsk:
ACK fb5bfed
Tree-SHA512: c4575ad11b99613870b342acae369fa08f877ac79e6e04eb62e94ad7a92d528e289183c0963c78aa779ba11cb91e2a6fad7c8b0d813126c46c3e5b54bd962c263 files changed
+23
-11
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
406 | 406 | | |
407 | 407 | | |
408 | 408 | | |
| 409 | + | |
409 | 410 | | |
410 | 411 | | |
411 | 412 | | |
| |||
517 | 518 | | |
518 | 519 | | |
519 | 520 | | |
| 521 | + | |
520 | 522 | | |
521 | 523 | | |
522 | 524 | | |
523 | | - | |
| 525 | + | |
524 | 526 | | |
525 | 527 | | |
526 | 528 | | |
| |||
536 | 538 | | |
537 | 539 | | |
538 | 540 | | |
539 | | - | |
| 541 | + | |
540 | 542 | | |
541 | 543 | | |
542 | 544 | | |
| |||
545 | 547 | | |
546 | 548 | | |
547 | 549 | | |
548 | | - | |
| 550 | + | |
549 | 551 | | |
550 | 552 | | |
551 | 553 | | |
| 554 | + | |
552 | 555 | | |
553 | 556 | | |
554 | 557 | | |
| |||
570 | 573 | | |
571 | 574 | | |
572 | 575 | | |
573 | | - | |
| 576 | + | |
574 | 577 | | |
575 | 578 | | |
576 | 579 | | |
| |||
658 | 661 | | |
659 | 662 | | |
660 | 663 | | |
| 664 | + | |
661 | 665 | | |
662 | 666 | | |
663 | 667 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2316 | 2316 | | |
2317 | 2317 | | |
2318 | 2318 | | |
| 2319 | + | |
| 2320 | + | |
| 2321 | + | |
2319 | 2322 | | |
2320 | 2323 | | |
2321 | 2324 | | |
2322 | | - | |
| 2325 | + | |
2323 | 2326 | | |
2324 | 2327 | | |
2325 | 2328 | | |
| |||
2417 | 2420 | | |
2418 | 2421 | | |
2419 | 2422 | | |
| 2423 | + | |
| 2424 | + | |
| 2425 | + | |
2420 | 2426 | | |
2421 | 2427 | | |
2422 | 2428 | | |
2423 | 2429 | | |
2424 | 2430 | | |
2425 | | - | |
| 2431 | + | |
2426 | 2432 | | |
2427 | 2433 | | |
2428 | 2434 | | |
| |||
2431 | 2437 | | |
2432 | 2438 | | |
2433 | 2439 | | |
| 2440 | + | |
2434 | 2441 | | |
2435 | 2442 | | |
2436 | 2443 | | |
| |||
2840 | 2847 | | |
2841 | 2848 | | |
2842 | 2849 | | |
| 2850 | + | |
| 2851 | + | |
2843 | 2852 | | |
2844 | 2853 | | |
2845 | 2854 | | |
2846 | | - | |
2847 | | - | |
2848 | 2855 | | |
2849 | 2856 | | |
2850 | 2857 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1084 | 1084 | | |
1085 | 1085 | | |
1086 | 1086 | | |
1087 | | - | |
| 1087 | + | |
| 1088 | + | |
| 1089 | + | |
1088 | 1090 | | |
1089 | | - | |
1090 | | - | |
| 1091 | + | |
1091 | 1092 | | |
1092 | 1093 | | |
1093 | 1094 | | |
| |||
0 commit comments