<commit_before>package com.google.bitcoin.core;

import java.math.BigInteger;
import java.util.Date;
import java.util.Map;
import java.util.Vector;

/**
 * Created with IntelliJ IDEA.
 * User: HashEngineering
 * Date: 12/13/13
 * Time: 7:23 PM
 * To change this template use File | Settings | File Templates.
 */
public class CoinDefinition {


    public static final String coinName = "Infinitecoin";
    public static final String coinTicker = "IFC";
    public static final String coinURIScheme = "infinitecoin";
    public static final String cryptsyMarketId = "60";
    public static final String cryptsyMarketCurrency = "LTC";


    public static final String BLOCKEXPLORER_BASE_URL_PROD = "http://exploretheblocks.com:2750/";
    public static final String BLOCKEXPLORER_BASE_URL_TEST = "http://exploretheblocks.com:2750/";

    public static final String DONATION_ADDRESS = "i3p7EagqTjB8F3w9N3D28KiHi2BtpFqMdR";  //HashEngineering donation IFC address

    enum CoinHash {
        SHA256,
        scrypt
    };
    public static final CoinHash coinHash = CoinHash.scrypt;

    public static boolean checkpointFileSupport = true;
    //Original Values

    public static final int TARGET_TIMESPAN = (int)(60 * 60);  // 60 minutes per difficulty cycle, on average.
    public static final int TARGET_SPACING = (int)(1 * 30);  // 30 seconds per block.

    public static final int INTERVAL = TARGET_TIMESPAN / TARGET_SPACING;  //120 blocks
	public static final int INTERVAL_PPC = 30;

    public static final int getInterval(int height, boolean testNet) {
        if(height < IFC_RETARGET_SWITCH_BLOCK)
            return INTERVAL;
        else if(height < IFC_RETARGET_SWITCH_BLOCK2)
            return INTERVAL;
        else if(height < IFC_RETARGET_SWITCH_BLOCK3)
            return INTERVAL;
        else return INTERVAL_PPC;
    }
    public static final int getTargetTimespan(int height, boolean testNet) {

            return TARGET_TIMESPAN;
    }
    public static int spendableCoinbaseDepth = 60; //main.h: static const int COINBASE_MATURITY
    //public static final long MAX_MONEY = 90600000000;                 //main.h:  MAX_MONEY
    public static final String MAX_MONEY_STRING = "90600000000";     //main.h:  MAX_MONEY

    public static final BigInteger DEFAULT_MIN_TX_FEE = BigInteger.valueOf(10000000);   // MIN_TX_FEE
    public static final BigInteger DUST_LIMIT = Utils.CENT; //main.h CTransaction::GetMinFee        0.01 coins

    public static final int PROTOCOL_VERSION = 69001;          //version.h PROTOCOL_VERSION
    public static final int MIN_PROTOCOL_VERSION = 60001;        //version.h MIN_PROTO_VERSION


    public static final int BLOCK_CURRENTVERSION = 1;   //CBlock::CURRENT_VERSION
    public static final int MAX_BLOCK_SIZE = 1 * 1000 * 1000;


    public static final boolean supportsBloomFiltering = false; //Requires PROTOCOL_VERSION 70000 in the client

    public static final int Port    = 9321;       //protocol.h GetDefaultPort(testnet=false)<commit_msg>Updating for 1.8.6 transaction fees.<commit_after>package com.google.bitcoin.core;

import java.math.BigInteger;
import java.util.Date;
import java.util.Map;
import java.util.Vector;

/**
 * Created with IntelliJ IDEA.
 * User: HashEngineering
 * Date: 12/13/13
 * Time: 7:23 PM
 * To change this template use File | Settings | File Templates.
 */
public class CoinDefinition {


    public static final String coinName = "Infinitecoin";
    public static final String coinTicker = "IFC";
    public static final String coinURIScheme = "infinitecoin";
    public static final String cryptsyMarketId = "60";
    public static final String cryptsyMarketCurrency = "LTC";


    public static final String BLOCKEXPLORER_BASE_URL_PROD = "http://exploretheblocks.com:2750/";
    public static final String BLOCKEXPLORER_BASE_URL_TEST = "http://exploretheblocks.com:2750/";

    public static final String DONATION_ADDRESS = "i3p7EagqTjB8F3w9N3D28KiHi2BtpFqMdR";  //HashEngineering donation IFC address

    enum CoinHash {
        SHA256,
        scrypt
    };
    public static final CoinHash coinHash = CoinHash.scrypt;

    public static boolean checkpointFileSupport = true;
    //Original Values

    public static final int TARGET_TIMESPAN = (int)(60 * 60);  // 60 minutes per difficulty cycle, on average.
    public static final int TARGET_SPACING = (int)(1 * 30);  // 30 seconds per block.

    public static final int INTERVAL = TARGET_TIMESPAN / TARGET_SPACING;  //120 blocks
	public static final int INTERVAL_PPC = 30;

    public static final int getInterval(int height, boolean testNet) {
        if(height < IFC_RETARGET_SWITCH_BLOCK)
            return INTERVAL;
        else if(height < IFC_RETARGET_SWITCH_BLOCK2)
            return INTERVAL;
        else if(height < IFC_RETARGET_SWITCH_BLOCK3)
            return INTERVAL;
        else return INTERVAL_PPC;
    }
    public static final int getTargetTimespan(int height, boolean testNet) {

            return TARGET_TIMESPAN;
    }
    public static int spendableCoinbaseDepth = 60; //main.h: static const int COINBASE_MATURITY
    //public static final long MAX_MONEY = 90600000000;                 //main.h:  MAX_MONEY
    public static final String MAX_MONEY_STRING = "90600000000";     //main.h:  MAX_MONEY

    public static final BigInteger DEFAULT_MIN_TX_FEE = BigInteger.valueOf(100 * 100000000);   // MIN_TX_FEE
    public static final BigInteger DUST_LIMIT = BigInteger.valueOf(1000 * 100000000);      //   0.01 coins

    public static final int PROTOCOL_VERSION = 69002;          //version.h PROTOCOL_VERSION
    public static final int MIN_PROTOCOL_VERSION = 69001;        //version.h MIN_PROTO_VERSION


    public static final int BLOCK_CURRENTVERSION = 1;   //CBlock::CURRENT_VERSION
    public static final int MAX_BLOCK_SIZE = 1 * 1000 * 1000;


    public static final boolean supportsBloomFiltering = false; //Requires PROTOCOL_VERSION 70000 in the client

    public static final int Port    = 9321;       //protocol.h GetDefaultPort(testnet=false)
{'fraction_non_alphanumeric': 0.07315458457464416, 'fraction_numerical': 0.0407149950347567, 'mean_word_length': 3.273691654879774, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 7, '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': '2767835', 'n_tokens_mistral': 2031, 'n_tokens_neox': 1783, 'n_words': 545}