forked from gridcoin-community/Gridcoin-Research
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Initial implementation of AutoGreylist (WIP)
This is the initial implementation of the AutoGreylist class. It also includes a diagnostic getautogreylist RPC to see the current results of the algorithm.
- Loading branch information
1 parent
e827432
commit 666f2a8
Showing
9 changed files
with
414 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
// Copyright (c) 2014-2025 The Gridcoin developers | ||
// Distributed under the MIT/X11 software license, see the accompanying | ||
// file COPYING or https://opensource.org/licenses/mit-license.php. | ||
|
||
#ifndef GRIDCOIN_FWD_H | ||
#define GRIDCOIN_FWD_H | ||
|
||
namespace GRC | ||
{ | ||
//! | ||
//! \brief Enumeration of project entry status. Unlike beacons this is for both storage | ||
//! and memory. | ||
//! | ||
//! UNKNOWN status is only encountered in trivially constructed empty | ||
//! project entries and should never be seen on the blockchain. | ||
//! | ||
//! DELETED status corresponds to a removed entry. | ||
//! | ||
//! ACTIVE corresponds to an active entry. | ||
//! | ||
//! GREYLISTED means that the project temporarily does not meet the whitelist qualification criteria. | ||
//! | ||
//! OUT_OF_BOUND must go at the end and be retained for the EnumBytes wrapper. | ||
//! | ||
enum class ProjectEntryStatus | ||
{ | ||
UNKNOWN, | ||
DELETED, | ||
ACTIVE, | ||
MAN_GREYLISTED, | ||
AUTO_GREYLISTED, | ||
OUT_OF_BOUND | ||
}; | ||
} // namespace GRC | ||
|
||
#endif // GRIDCOIN_FWD_H | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.