diff options
author | MarcoFalke <falke.marco@gmail.com> | 2021-12-13 12:32:28 +0100 |
---|---|---|
committer | MarcoFalke <falke.marco@gmail.com> | 2021-12-13 13:32:08 +0100 |
commit | fad943821e35d0eb2143061e718f0193e12a4c71 (patch) | |
tree | 48a01a43c66c7e0a523acdeab932f82ff35c959d /src/test/util | |
parent | fa663a4c0d20487ed3f7a93e1c2ca9932b05f5a8 (diff) | |
download | bitcoin-fad943821e35d0eb2143061e718f0193e12a4c71.tar.xz |
scripted-diff: Rename touched member variables
-BEGIN VERIFY SCRIPT-
ren() { sed -i "s/\<$1\>/$2/g" $( git grep -l "$1" ./src/ ) ; }
ren nLastBlockTime m_last_block_time
ren nLastTXTime m_last_tx_time
ren nTimeConnected m_connected
-END VERIFY SCRIPT-
Diffstat (limited to 'src/test/util')
-rw-r--r-- | src/test/util/net.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/test/util/net.cpp b/src/test/util/net.cpp index 29e1a85e2e..4f15feb8e6 100644 --- a/src/test/util/net.cpp +++ b/src/test/util/net.cpp @@ -47,10 +47,10 @@ std::vector<NodeEvictionCandidate> GetRandomNodeEvictionCandidates(int n_candida for (int id = 0; id < n_candidates; ++id) { candidates.push_back({ /*id=*/id, - /*nTimeConnected=*/std::chrono::seconds{random_context.randrange(100)}, + /*m_connected=*/std::chrono::seconds{random_context.randrange(100)}, /*m_min_ping_time=*/std::chrono::microseconds{random_context.randrange(100)}, - /*nLastBlockTime=*/std::chrono::seconds{random_context.randrange(100)}, - /*nLastTXTime=*/std::chrono::seconds{random_context.randrange(100)}, + /*m_last_block_time=*/std::chrono::seconds{random_context.randrange(100)}, + /*m_last_tx_time=*/std::chrono::seconds{random_context.randrange(100)}, /*fRelevantServices=*/random_context.randbool(), /*fRelayTxes=*/random_context.randbool(), /*fBloomFilter=*/random_context.randbool(), |