HomePhabricator

scripted-diff: rename node vector/mutex members in CConnman

Description

scripted-diff: rename node vector/mutex members in CConnman

Summary:

-BEGIN VERIFY SCRIPT-

ren() { sed -i "s/$1/$2/g" $3 $4 $5; }

ren cs_vAddedNodes         m_added_nodes_mutex     src/net.h src/net.cpp
ren vAddedNodes            m_added_nodes           src/net.h src/net.cpp
ren cs_vNodes              m_nodes_mutex           src/net.h src/net.cpp src/test/util/net.h src/avalanche/test/processor_tests.cpp src/test/net_tests.cpp
ren vNodesDisconnectedCopy nodes_disconnected_copy src/net.cpp
ren vNodesDisconnected     m_nodes_disconnected    src/net.h src/net.cpp
ren vNodesCopy             nodes_copy              src/net.cpp
ren vNodesSize             nodes_size              src/net.cpp
ren vNodes                 m_nodes                 src/net.h src/net.cpp src/test/util/net.h src/avalanche/test/processor_tests.cpp src/test/net_tests.cpp

-END VERIFY SCRIPT-

Note: I had to manually edit an occurence of vNodes and cs_vNodes in denialofservice_tests.cpp because vNodes is used also as a local variable name.

This is a partial backport of core#22829
https://github.com/bitcoin/bitcoin/pull/22829/commits/d51d2a3bb5b0011efa1b4f1e2c9512a16ce9b347

Test Plan: ninja all check-all

Reviewers: #bitcoin_abc, Fabien

Reviewed By: #bitcoin_abc, Fabien

Differential Revision: https://reviews.bitcoinabc.org/D13354

Details

Provenance
PiRKAuthored on Mar 16 2023, 15:26
PiRKPushed on Mar 16 2023, 17:25
Reviewer
Restricted Project
Differential Revision
D13354: scripted-diff: rename node vector/mutex members in CConnman
Parents
rABC478b00b20c20: [avalanche] Limit polling of finalized items of all types
Branches
Unknown
Tags
Unknown