Commit 4c40837
committed
Merge bitcoin/bitcoin#27412: logging, net: add ASN from peers on logs
0076bed logging: log ASN when using `-asmap` (brunoerg)
9836c76 net: add `GetMappedAS` in `CConnman` (brunoerg)
Pull request description:
When using `-asmap`, you can check the ASN assigned to the peers only with the RPC command `getpeerinfo` (check `mapped_as` field), however, it's not possible to check it in logs (e.g. see in logs the ASN of the peers when a new outbound peer has been connected). This PR includes the peers' ASN in debug output when using `-asmap`.
Obs: Open this primarily to chase some Concept ACK, I've been using this on my node to facilitate to track the peers' ASN especially when reading the logs.
ACKs for top commit:
Sjors:
tACK 0076bed
jamesob:
ACK 0076bed ([`jamesob/ackr/27412.1.brunoerg.logging_net_add_asn_from`](https://github.com/jamesob/bitcoin/tree/ackr/27412.1.brunoerg.logging_net_add_asn_from))
achow101:
ACK 0076bed
Tree-SHA512: c19cd11e8ab49962021f390459aadf6d33d221ae9a2c3df331a25d6865a8df470e2c8828f6e5219b8a887d6ab5b3450d34be9e26c00cca4d223b4ca64d51111b3 files changed
+13
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2614 | 2614 | | |
2615 | 2615 | | |
2616 | 2616 | | |
| 2617 | + | |
| 2618 | + | |
| 2619 | + | |
| 2620 | + | |
| 2621 | + | |
2617 | 2622 | | |
2618 | 2623 | | |
2619 | 2624 | | |
| |||
2622 | 2627 | | |
2623 | 2628 | | |
2624 | 2629 | | |
2625 | | - | |
| 2630 | + | |
2626 | 2631 | | |
2627 | 2632 | | |
2628 | 2633 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
851 | 851 | | |
852 | 852 | | |
853 | 853 | | |
| 854 | + | |
854 | 855 | | |
855 | 856 | | |
856 | 857 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3362 | 3362 | | |
3363 | 3363 | | |
3364 | 3364 | | |
3365 | | - | |
| 3365 | + | |
| 3366 | + | |
3366 | 3367 | | |
3367 | 3368 | | |
3368 | | - | |
| 3369 | + | |
3369 | 3370 | | |
3370 | 3371 | | |
3371 | 3372 | | |
| |||
3405 | 3406 | | |
3406 | 3407 | | |
3407 | 3408 | | |
3408 | | - | |
| 3409 | + | |
| 3410 | + | |
3409 | 3411 | | |
3410 | 3412 | | |
| 3413 | + | |
3411 | 3414 | | |
3412 | 3415 | | |
3413 | 3416 | | |
| |||
0 commit comments