aboutsummaryrefslogtreecommitdiff
path: root/src/interfaces/node.cpp
diff options
context:
space:
mode:
authorRussell Yanofsky <[email protected]>2020-01-10 14:55:10 -0500
committerRussell Yanofsky <[email protected]>2020-01-10 14:55:10 -0500
commit8313fa8e8112e429e104b7e7fd48e5e6e359b82e (patch)
treeb2927e1cfe224195bfcd39f97c673482de353597 /src/interfaces/node.cpp
parentMerge #16688: log: Add validation interface logging (diff)
downloaddiscoin-8313fa8e8112e429e104b7e7fd48e5e6e359b82e.tar.xz
discoin-8313fa8e8112e429e104b7e7fd48e5e6e359b82e.zip
gui: Set CConnman byte counters earlier to avoid uninitialized reads
Initialize CConnman byte counters during construction, so GetTotalBytesRecv() and GetTotalBytesSent() methods don't return garbage before Start() is called. Change shouldn't have any effect outside of the GUI. It just fixes a race condition during a qt test that was observed on travis: https://travis-ci.org/bitcoin/bitcoin/jobs/634989685
Diffstat (limited to 'src/interfaces/node.cpp')
0 files changed, 0 insertions, 0 deletions