<commit_before>#include <cstring>

#include <boost/assign/list_of.hpp>

#include "constants.h"
#include "testnet.h"

static uint8_t      TESTNET_PROTOCOL_MAGIC_BYTES[sizeof(PROTOCOL_MAGIC_BYTES)] = { 0xe5, 0xcf, 0x81, 0xdf };

static char const * TESTNET_AUTO_DNS_SEEDS[][2]                                = { { 0, 0 } };
static uint32_t     TESTNET_AUTO_IP_SEEDS[]                                    = { 0 };

void ApplyTestnetParameters(void)
{
    COIN_PORT                  = 8742;
    RPC_PORT                   = 8743;

    std::memcpy(PROTOCOL_MAGIC_BYTES, &TESTNET_PROTOCOL_MAGIC_BYTES, sizeof(PROTOCOL_MAGIC_BYTES));

    AUTO_DNS_SEEDS             = TESTNET_AUTO_DNS_SEEDS;
    AUTO_IP_SEEDS              = TESTNET_AUTO_IP_SEEDS;

    PUBKEY_ADDRESS_PREFIX      =  65; // 'T'
    PRVKEY_ADDRESS_PREFIX      =  68; // 'U'
    SCRIPT_ADDRESS_PREFIX      = 127; // 't'

    GENESIS_MERKLE_HASH        = hash_t("0xa7fc40033828e0b0aa5f829ad35233efe8a15e5820d31e53d8e865a1c29cf024");
    GENESIS_HASH               = hash_t("0x000002f38bfabee423e760cbbbd2147984be70a531928b89e64d59531b136944");
    GENESIS_IDENT              = "06-15-15 :: LFG 887 :: We can still take them out for an overpriced dinner";
    GENESIS_TX_TIME            = 1345083810;
    GENESIS_BLOCK_TIME         = 1345084287;
    GENESIS_BLOCK_NONCE        = 2179980296;
    GENESIS_BLOCK_VERSION      = 1;

    BLOCK_CHECKPOINTS          = boost::assign::map_list_of( 0, GENESIS_HASH );
    STAKE_MODIFIER_CHECKPOINTS = boost::assign::map_list_of( 0, 0xfd11f4e7 );

    POW_MAX_BLOCK              = std::numeric_limits< blockheight_t >::max( );

    COIN_PREMINE               = 0 * COIN;
}<commit_msg>Fixes testnet target<commit_after>#include <cstring>

#include <boost/assign/list_of.hpp>

#include "constants.h"
#include "testnet.h"

static uint8_t      TESTNET_PROTOCOL_MAGIC_BYTES[sizeof(PROTOCOL_MAGIC_BYTES)] = { 0xe5, 0xcf, 0x81, 0xdf };

static char const * TESTNET_AUTO_DNS_SEEDS[][2]                                = { { 0, 0 } };
static uint32_t     TESTNET_AUTO_IP_SEEDS[]                                    = { 0 };

void ApplyTestnetParameters(void)
{
    COIN_PORT                  = 8742;
    RPC_PORT                   = 8743;

    std::memcpy(PROTOCOL_MAGIC_BYTES, &TESTNET_PROTOCOL_MAGIC_BYTES, sizeof(PROTOCOL_MAGIC_BYTES));

    AUTO_DNS_SEEDS             = TESTNET_AUTO_DNS_SEEDS;
    AUTO_IP_SEEDS              = TESTNET_AUTO_IP_SEEDS;

    PUBKEY_ADDRESS_PREFIX      =  65; // 'T'
    PRVKEY_ADDRESS_PREFIX      =  68; // 'U'
    SCRIPT_ADDRESS_PREFIX      = 127; // 't'

    GENESIS_MERKLE_HASH        = hash_t("0xa7fc40033828e0b0aa5f829ad35233efe8a15e5820d31e53d8e865a1c29cf024");
    GENESIS_HASH               = hash_t("0x000002f38bfabee423e760cbbbd2147984be70a531928b89e64d59531b136944");
    GENESIS_IDENT              = "06-15-15 :: LFG 887 :: We can still take them out for an overpriced dinner";
    GENESIS_TX_TIME            = 1345083810;
    GENESIS_BLOCK_TIME         = 1345084287;
    GENESIS_BLOCK_NONCE        = 2179980296;
    GENESIS_BLOCK_VERSION      = 1;

    BLOCK_CHECKPOINTS          = boost::assign::map_list_of(0, GENESIS_HASH);
    STAKE_MODIFIER_CHECKPOINTS = boost::assign::map_list_of(0, 0xfd11f4e7);

    POW_MAX_BLOCK              = std::numeric_limits< blockheight_t >::max();

    COIN_PREMINE               = 0 * COIN;

    POW_INITIAL_TARGET         = target_t(~uint256(0) >> 20);
    POS_INITIAL_TARGET         = target_t(~uint256(0) >> 20);

    POW_MAX_TARGET             = target_t(~uint256(0) >> 20);
    POS_MAX_TARGET             = target_t(~uint256(0) >> 20);
}
{'fraction_non_alphanumeric': 0.09317803660565724, 'fraction_numerical': 0.09761508596783139, 'mean_word_length': 2.4682692307692307, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 17, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 6, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3167657', 'n_tokens_mistral': 1606, 'n_tokens_neox': 1382, 'n_words': 188}