Page MenuHomePhabricator

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

Authored by PiRK on Mar 16 2023, 16:09.

Details

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

Diff Detail

Repository
rABC Bitcoin ABC
Lint
Lint Not Applicable
Unit
Tests Not Applicable