aboutsummaryrefslogtreecommitdiff
path: root/build_msvc
diff options
context:
space:
mode:
authorMarcoFalke <falke.marco@gmail.com>2022-03-28 17:29:20 +0200
committerMacroFake <falke.marco@gmail.com>2022-05-25 10:57:08 +0200
commitfa27ee88edbf696b7eef2efbfcf1446ec522fd85 (patch)
tree6e0246e5742576384c5dd34937d02bd104782f3e /build_msvc
parent8c721fff3a007db613b22464b40fe7cd6b1ead80 (diff)
downloadbitcoin-fa27ee88edbf696b7eef2efbfcf1446ec522fd85.tar.xz
Get time less often in AddrManImpl::ResolveCollisions_()
This makes the code less verbose. Also, future changes that change how to get the time are less verbose. Moreover, GetAdjustedTime() might arbitrarily change the value during the execution of this function. For example, the system time advances over a second boundary, or the network adjusts the time arbitrarily. Most of the time however the value will not change, so it seems better to always lock the value in this scope for clarity.
Diffstat (limited to 'build_msvc')
0 files changed, 0 insertions, 0 deletions