All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.ergoplatform.appkit.Parameters Maven / Gradle / Ivy

The newest version!
package org.ergoplatform.appkit;

/**
 * Global parameters used by Appkit library.
 */
public class Parameters {
    /**
     * A number of blocks a miner should wait before he/she can spend block reward.
     * This is part of Ergo protocol and cannot be changed.
     */
    public static final int MinerRewardDelay_Mainnet = 720;
    public static final int MinerRewardDelay_Testnet = 720;

    /**
     * One Erg is 10^9 NanoErg
     */
    public static final long OneErg = 1000 * 1000 * 1000;

    /**
     * Minimum transaction fee in NanoErgs as it is defined in Ergo protocol.
     */
    public static final long MinFee = 1000 * 1000;

    /**
     * Minimum value for a change. It can be used to compute change output value.
     * If computed change is less than this value, it is added to the fee
     * and `change` output in not added to the transaction.
     */
    public static final long MinChangeValue = 1000 * 1000;

    /**
     * Max block cost for Cold Client
     */
    public static final int ColdClientMaxBlockCost = 1000000;

    /**
     * Activated version for Cold Client
     */
    public static final byte ColdClientBlockVersion = 3;
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy