We’ve accumulated many different ways of referring to outbound full relay and outbound block relay connection types in the codebase. In places, it is becoming less clear which type of connection is referred to. This PR proposes standardizing the naming to outbound-{full, block}-relay
with a scripted diff as follows:
0-BEGIN VERIFY SCRIPT-
1s() { git grep -l "$1" src test/functional doc/files.md doc/reduce-*.md | xargs sed -i "s/$1/$2/g"; }
2
3s 'ConnectionType::OUTBOUND ' 'ConnectionType::OUTBOUND_FULL_RELAY '
4s 'IsFullOutboundConn' 'IsOutboundFullRelayConn'
5s 'GetExtraFullOutboundCount' 'GetExtraOutboundFullRelayCount'
6s 'full_outbound_peers' 'outbound_full_relay_peers'
7s 'GetTryNewOutboundPeer' 'GetTryNewOutboundFullRelayPeer'
8s 'SetTryNewOutboundPeer' 'SetTryNewOutboundFullRelayPeer'
9s 'm_try_another_outbound_peer' 'm_try_another_outbound_full_relay_peer'
10s 'outbound (full-relay)' 'outbound-full-relay'
11s 'outbound full-relay' 'outbound-full-relay'
12s 'outbound, full-relay' 'outbound-full-relay'
13s 'outbounds' 'outbound-full-relay connections'
14s 'f"outbound: ' 'f"outbound-full-relay: '
15s ' full-relay' ' outbound-full-relay'
16s 'to an extra outbound peer' 'to an extra outbound-full-relay peer'
17s 'try another outbound peer' 'try another outbound-full-relay peer'
18s '(tx, block, addr) outbound' '(tx, block, addr)'
19s 'we deal with extra outbound peers' 'we deal with extra outbound-full-relay peers'
20s 'outbound peers we have in excess' 'outbound-full-relay peers we have in excess'
21s 'some outbound connections are not' 'some outbound-full-relay connections are not'
22s 'or this is a' 'or if this is an'
23
24s 'ConnectionType::BLOCK_RELAY' 'ConnectionType::OUTBOUND_BLOCK_RELAY'
25s ' BLOCK_RELAY' ' OUTBOUND_BLOCK_RELAY'
26s 'IsBlockOnlyConn' 'IsOutboundBlockRelayConn'
27s 'GetExtraBlockRelayCount' 'GetExtraOutboundBlockRelayCount'
28s 'block_relay_peers' 'outbound_block_relay_peers'
29s 'MAX_BLOCK_RELAY_ONLY_ANCHORS' 'MAX_OUTBOUND_BLOCK_RELAY_ANCHORS'
30s 'MAX_BLOCK_RELAY_ONLY_CONNECTIONS' 'MAX_OUTBOUND_BLOCK_RELAY_CONNECTIONS'
31s 'EXTRA_BLOCK_RELAY_ONLY_PEER_INTERVAL' 'EXTRA_OUTBOUND_BLOCK_RELAY_PEER_INTERVAL'
32s 'm_start_extra_block_relay_peers' 'm_start_extra_outbound_block_relay_peers'
33s 'outgoing block-relay-only' 'outbound-block-relay'
34s 'outbound block-relay-only' 'outbound-block-relay'
35s 'outbound block-relay' 'outbound-block-relay'
36s 'block-relay only outbound' 'outbound-block-relay'
37s 'block-relay-only outgoing' 'outbound-block-relay'
38s 'block-relay only peers' 'outbound-block-relay peers'
39s 'block-relay-only' 'outbound-block-relay'
40
41s ' a outbound' ' an outbound'
42-END VERIFY SCRIPT-