<commit_before>// Copyright (c) 2009-2010 <NAME>
// Copyright (c) 2009-2012 The Bitcoin developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#ifndef BITCOIN_MAIN_H
#define BITCOIN_MAIN_H

#include "bignum.h"
#include "sync.h"
#include "net.h"
#include "script.h"
#include "scrypt_mine.h"
#include "hashblock.h"

#include <list>

class CWallet;
class CBlock;
class CBlockIndex;
class CKeyItem;
class CReserveKey;
class COutPoint;

class CAddress;
class CInv;
class CRequestTracker;
class CNode;

static const unsigned int MAX_BLOCK_SIZE = 1000000;
static const unsigned int MAX_BLOCK_SIZE_GEN = MAX_BLOCK_SIZE/2;
static const unsigned int MAX_BLOCK_SIGOPS = MAX_BLOCK_SIZE/50;
static const unsigned int MAX_ORPHAN_TRANSACTIONS = MAX_BLOCK_SIZE/100;
static const unsigned int MAX_INV_SZ = 50000;
static const int64 MIN_TX_FEE = 0.0001 * CENT;
static const int64 MIN_RELAY_TX_FEE = 0.0001 * CENT;
static const int64 MAX_MONEY = 10000000 * COIN;
static const int64 MAX_MINT_PROOF_OF_WORK = 100000000 * COIN;
static const int64 MAX_MINT_PROOF_OF_WORK_LEGACY = 100000000 * COIN;
static const int64 MAX_MINT_PROOF_OF_STAKE = 5 * CENT;
//Version 2.0
static const int64 MAX_MINT_PROOF_OF_STAKEV2 = 5 * CENT;
static const unsigned int VERSION2_SWITCH_TIME = 0; // Fri, 04 Jul 2014 07:04:14 GMT
//Tranz test net settings static const unsigned int VERSION2_SWITCH_TIME = 1401854412;






static const int64 MIN_TXOUT_AMOUNT = MIN_TX_FEE;
static const unsigned int PROTOCOL_SWITCH_TIME = 0; // 20 Jun 2013 00:00:00

static const unsigned int REWARD_SWITCH_TIME = 0; // 25 May 2013 00:00:00

static const unsigned int REWARD_FIX_SWITCH_TIME = 0; // 7 SEP 2013 00:00:00 GMT


inline bool MoneyRange(int64 nValue) { return (nValue >= 0 && nValue <= MAX_MONEY); }
// Threshold for nLockTime: below this value it is interpreted as block number, otherwise as UNIX timestamp.
static const unsigned int LOCKTIME_THRESHOLD = 500000000; // Tue Nov  5 00:53:20 1985 UTC

#define FOUNDATION_ADDRESS "6FMqipiuswD3By66y3tLkYRK2bAw4B9fTuUMysB67rMq7gbJMB3"
#define FOUNDATION_ADDRESS_TEST "mwmPTAA7cSDY8Dd5rRHuYitwS2hByXQpdA"

#ifdef USE_UPNP
static const int fHaveUPnP = true;
#else
static const int fHaveUPnP = false;
#endif

static const uint256 hashGenesisBlockOfficial("0x0000080e9ecb01a34407128fb6c6d7930806cc2b4a4ebf23f70be25abd755e16");
static const uint256 hashGenesisBlockTestNet("0x");

inline int64 PastDrift(int64 nTime)
{
    
        return nTime - 2 * 60 * 60;  // up to 120 minutes from the past
}

inline int64 FutureDrift(int64 nTime)
{
    <commit_msg>main.h<commit_after>// Copyright (c) 2009-2010 <NAME>
// Copyright (c) 2009-2012 The Bitcoin developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#ifndef BITCOIN_MAIN_H
#define BITCOIN_MAIN_H

#include "bignum.h"
#include "sync.h"
#include "net.h"
#include "script.h"
#include "scrypt_mine.h"
#include "hashblock.h"

#include <list>

class CWallet;
class CBlock;
class CBlockIndex;
class CKeyItem;
class CReserveKey;
class COutPoint;

class CAddress;
class CInv;
class CRequestTracker;
class CNode;

static const unsigned int MAX_BLOCK_SIZE = 1000000;
static const unsigned int MAX_BLOCK_SIZE_GEN = MAX_BLOCK_SIZE/2;
static const unsigned int MAX_BLOCK_SIGOPS = MAX_BLOCK_SIZE/50;
static const unsigned int MAX_ORPHAN_TRANSACTIONS = MAX_BLOCK_SIZE/100;
static const unsigned int MAX_INV_SZ = 50000;
static const int64 MIN_TX_FEE = 0.0001 * CENT;
static const int64 MIN_RELAY_TX_FEE = 0.0001 * CENT;
static const int64 MAX_MONEY = 10000000 * COIN;
static const int64 MAX_MINT_PROOF_OF_WORK = 100000000 * COIN;
static const int64 MAX_MINT_PROOF_OF_WORK_LEGACY = 100000000 * COIN;
static const int64 MAX_MINT_PROOF_OF_STAKE = 5 * CENT;
//Version 2.0
static const int64 MAX_MINT_PROOF_OF_STAKEV2 = 5 * CENT;
static const unsigned int VERSION2_SWITCH_TIME = 0; // Fri, 04 Jul 2014 07:04:14 GMT
//Tranz test net settings static const unsigned int VERSION2_SWITCH_TIME = 1401854412;






static const int64 MIN_TXOUT_AMOUNT = MIN_TX_FEE;
static const unsigned int PROTOCOL_SWITCH_TIME = 0; // 20 Jun 2013 00:00:00

static const unsigned int REWARD_SWITCH_TIME = 0; // 25 May 2013 00:00:00

static const unsigned int REWARD_FIX_SWITCH_TIME = 0; // 7 SEP 2013 00:00:00 GMT


inline bool MoneyRange(int64 nValue) { return (nValue >= 0 && nValue <= MAX_MONEY); }
// Threshold for nLockTime: below this value it is interpreted as block number, otherwise as UNIX timestamp.
static const unsigned int LOCKTIME_THRESHOLD = 500000000; // Tue Nov  5 00:53:20 1985 UTC

#define FOUNDATION_ADDRESS "CarbonXDcVbQokzhXHdTQrGXY4hEwLouYm"
#define FOUNDATION_ADDRESS_TEST "mwmPTAA7cSDY8Dd5rRHuYitwS2hByXQpdA"

#ifdef USE_UPNP
static const int fHaveUPnP = true;
#else
static const int fHaveUPnP = false;
#endif

static const uint256 hashGenesisBlockOfficial("0x0000080e9ecb01a34407128fb6c6d7930806cc2b4a4ebf23f70be25abd755e16");
static const uint256 hashGenesisBlockTestNet("0x");

inline int64 PastDrift(int64 nTime)
{
    
        return nTime - 2 * 60 * 60;  // up to 120 minutes from the past
}

inline int64 FutureDrift(int64 nTime)
{
    
{'fraction_non_alphanumeric': 0.07614887960501329, 'fraction_numerical': 0.09665780478541587, 'mean_word_length': 5.270238095238096, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 8, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7263609', 'n_tokens_mistral': 2304, 'n_tokens_neox': 1912, 'n_words': 558}