Page MenuHomePhabricator

D4362.id.diff
No OneTemporary

D4362.id.diff

diff --git a/contrib/teamcity/build-configurations.sh b/contrib/teamcity/build-configurations.sh
--- a/contrib/teamcity/build-configurations.sh
+++ b/contrib/teamcity/build-configurations.sh
@@ -4,7 +4,7 @@
set -euxo pipefail
-: ${ABC_BUILD_NAME:=""}
+: "${ABC_BUILD_NAME:=""}"
if [ -z "$ABC_BUILD_NAME" ]; then
echo "Error: Environment variable ABC_BUILD_NAME must be set"
exit 1
diff --git a/src/addrman.cpp b/src/addrman.cpp
--- a/src/addrman.cpp
+++ b/src/addrman.cpp
@@ -12,8 +12,8 @@
#include <cmath>
int CAddrInfo::GetTriedBucket(const uint256 &nKey) const {
- uint64_t hash1 = (CHashWriter(SER_GETHASH, 0) << nKey << GetKey())
- .GetCheapHash();
+ uint64_t hash1 =
+ (CHashWriter(SER_GETHASH, 0) << nKey << GetKey()).GetCheapHash();
uint64_t hash2 =
(CHashWriter(SER_GETHASH, 0)
<< nKey << GetGroup() << (hash1 % ADDRMAN_TRIED_BUCKETS_PER_GROUP))

File Metadata

Mime Type
text/plain
Expires
Sat, Apr 26, 10:32 (1 h, 6 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
5572958
Default Alt Text
D4362.id.diff (933 B)

Event Timeline