Skip to content

Commit bc88329

Browse files
committed
Correct format of std::atomic declarations in scraper.h
1 parent f845765 commit bc88329

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

src/gridcoin/scraper/scraper.h

+2-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
// Copyright (c) 2014-2021 The Gridcoin developers
22
// Distributed under the MIT/X11 software license, see the accompanying
33
// file COPYING or https://opensource.org/licenses/mit-license.php.
4-
54
#ifndef GRIDCOIN_SCRAPER_SCRAPER_H
65
#define GRIDCOIN_SCRAPER_SCRAPER_H
76

@@ -49,8 +48,8 @@ extern bool SCRAPER_CMANIFEST_RETAIN_NONCURRENT;
4948
extern int64_t SCRAPER_CMANIFEST_RETENTION_TIME;
5049
extern bool SCRAPER_CMANIFEST_INCLUDE_NONCURRENT_PROJ_FILES;
5150
extern std::atomic<double> MAG_ROUND;
52-
extern std::atomic<double> NETWORK_MAGNITUDE;
53-
extern std::atomic<double> CPID_MAG_LIMIT;
51+
extern std::atomic<double> NETWORK_MAGNITUDE;
52+
extern std::atomic<double> CPID_MAG_LIMIT;
5453
extern unsigned int SCRAPER_CONVERGENCE_MINIMUM;
5554
extern double SCRAPER_CONVERGENCE_RATIO;
5655
extern double CONVERGENCE_BY_PROJECT_RATIO;

src/gridcoin/scraper/scraper_net.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -423,7 +423,7 @@ EXCLUSIVE_LOCKS_REQUIRED(CScraperManifest::cs_mapManifest)
423423
}
424424
}
425425

426-
bool CScraperManifest::UnserializeCheck(CDataStream& ss, unsigned int& banscore_out)
426+
[[nodiscard]] bool CScraperManifest::UnserializeCheck(CDataStream& ss, unsigned int& banscore_out)
427427
EXCLUSIVE_LOCKS_REQUIRED(CScraperManifest::cs_mapManifest, CSplitBlob::cs_manifest)
428428
{
429429
const auto pbegin = ss.begin();

0 commit comments

Comments
 (0)