<commit_before>// Copyright (c) 2019 The Stealth Developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.

#ifndef _QPCONSTANTS_H_
#define _QPCONSTANTS_H_ 1

#include <stdint.h>

#include <string>

static const uint64_t TRIL = 1000000000000;  // trillion, 1e12

static const int64_t RECIPROCAL_QPOS_INFLATION = 100;
// maximum number of seconds the best block time can fall behind
static const unsigned int QP_REGISTRY_MAX_FALL_BEHIND = 120;
static const unsigned int QP_REGISTRY_RECENT_BLOCKS = 32768;
static const unsigned int QP_STAKER_RECENT_BLOCKS = 4096;
static const unsigned int QP_NOOB_BLOCKS = QP_STAKER_RECENT_BLOCKS * 2;
// consecutive misses, not total
static const unsigned int QP_STAKER_MAX_MISSES_M = 512;
// testnet
static const unsigned int QP_STAKER_MAX_MISSES_T = 32;
// makes it hard to game the rotation
static const int QP_ROUNDS = 16;
// block target time
static const int QP_TARGET_TIME = 5;
// blocks per day
static const int QP_BLOCKS_PER_DAY = (60 * 60 * 24) / QP_TARGET_TIME;
// fraction of money supply (stealthtoshis) to dock per round for inactive keys
static const int64_t DOCK_INACTIVE_FRACTION = 310000000000;
// number of blocks between snapshots
static const unsigned int BLOCKS_PER_SNAPSHOT = 24;
// number of recent snapshots to keep
static const unsigned int RECENT_SNAPSHOTS = 144;
// number of snapshots per permanent snapshot
static const unsigned int PERMANENT_SNAPSHOT_RATIO = 90;
// min and max staker alias lengths
static const unsigned int QP_MIN_ALIAS_LENGTH = 3;
static const unsigned int QP_MAX_ALIAS_LENGTH = 16;
// max staker metadata key length
static const unsigned int QP_MAX_META_KEY_LENGTH = 16;
// max staker metadata value length
static const unsigned int QP_MAX_META_VALUE_LENGTH = 40;
// minimum number of seconds between claims (prevents claim spam)<commit_msg>Fixing QP_STAKER_MAX_MISSES_T<commit_after>// Copyright (c) 2019 The Stealth Developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.

#ifndef _QPCONSTANTS_H_
#define _QPCONSTANTS_H_ 1

#include <stdint.h>

#include <string>

static const uint64_t TRIL = 1000000000000;  // trillion, 1e12

static const int64_t RECIPROCAL_QPOS_INFLATION = 100;
// maximum number of seconds the best block time can fall behind
static const unsigned int QP_REGISTRY_MAX_FALL_BEHIND = 120;
static const unsigned int QP_REGISTRY_RECENT_BLOCKS = 32768;
static const unsigned int QP_STAKER_RECENT_BLOCKS = 4096;
static const unsigned int QP_NOOB_BLOCKS = QP_STAKER_RECENT_BLOCKS * 2;
// consecutive misses, not total
static const unsigned int QP_STAKER_MAX_MISSES_M = 512;
// testnet
static const unsigned int QP_STAKER_MAX_MISSES_T = 8;
// makes it hard to game the rotation
static const int QP_ROUNDS = 16;
// block target time
static const int QP_TARGET_TIME = 5;
// blocks per day
static const int QP_BLOCKS_PER_DAY = (60 * 60 * 24) / QP_TARGET_TIME;
// fraction of money supply (stealthtoshis) to dock per round for inactive keys
static const int64_t DOCK_INACTIVE_FRACTION = 310000000000;
// number of blocks between snapshots
static const unsigned int BLOCKS_PER_SNAPSHOT = 24;
// number of recent snapshots to keep
static const unsigned int RECENT_SNAPSHOTS = 144;
// number of snapshots per permanent snapshot
static const unsigned int PERMANENT_SNAPSHOT_RATIO = 90;
// min and max staker alias lengths
static const unsigned int QP_MIN_ALIAS_LENGTH = 3;
static const unsigned int QP_MAX_ALIAS_LENGTH = 16;
// max staker metadata key length
static const unsigned int QP_MAX_META_KEY_LENGTH = 16;
// max staker metadata value length
static const unsigned int QP_MAX_META_VALUE_LENGTH = 40;
// minimum number of seconds between claims (prevents claim spam)
{'fraction_non_alphanumeric': 0.05807622504537205, 'fraction_numerical': 0.043816437645838736, 'mean_word_length': 5.028125, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 4, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7116476', 'n_tokens_mistral': 1410, 'n_tokens_neox': 1251, 'n_words': 452}