Package convex.core
Class Constants
java.lang.Object
convex.core.Constants
Static class for global configuration constants that affect protocol
behaviour
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final charChar to represent bad Unicode characters in printingstatic final byte[]static final Stringstatic final byte[]static final intstatic final intstatic final intstatic final intNumber of consensus levels (blocks, proposed, consensus, finality)static final doubleThreshold of stake required to confirm consensusstatic final intDefault port for Convex Peersstatic final booleanstatic final booleanConstant to set deletion of Etch temporary files on exit.static final intLength for Hash valuesstatic final longAllowance for initial user / peer accountsstatic final longInitial fees in global stateInitial global values for a new Statestatic final longJuice price in the initial Genesis Statestatic final longInitial memory Pool of 1mbstatic final longInitial memory price per byte 0.001 Convex Goldstatic final longstatic final longSequence number used for any new accountstatic final longInitial timestamp for new Statesstatic final longMinimum milliseconds to retain a proposal before switchingstatic final intLength for public keysstatic final intstatic final longMaximum time a block can be resurrected from the past (1 min)static final intMaximum CVM execution depthstatic final intMaximum length of a symbolic name in bytes (keywords and symbols) Note: Chosen so that small qualified symbolic values are always embeddedstatic final longLimit of scheduled transactions run in a single Blockstatic final longMaximum supply of Convex Coins set at protocol levelstatic final longMax juice allowable during execution of a single transaction.static final intMax transactions in a legal Block.static final longSize in bytes of constant overhead applied per non-embedded Cell in memory accountingstatic final longMemory Pool of growth increment 1mbstatic final longMemory Pool of growth interval (once per day).static final longMinimum stake for a Peer to be considered by other Peers in consensusstatic final booleanFlag to omit filling in stack traces on validation exceptions.static final booleanOption for static compilation support.static final doubleMilliseconds before peer stake influence starts to decay (3 mins default)static final doubleTime for peer stake to decay by factor 1/e (5 mins default)static final AStringstatic final Stringstatic final longDefault print limitstatic final doubleThreshold of stake required to propose consensusstatic final CVMBoolValue used to indicate exclusion of a key from a Set.static final CVMBoolValue used to indicate inclusion of a key in a Set. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
MAX_SCHEDULED_TRANSACTIONS_PER_BLOCK
public static final long MAX_SCHEDULED_TRANSACTIONS_PER_BLOCKLimit of scheduled transactions run in a single Block- See Also:
-
PROPOSAL_THRESHOLD
public static final double PROPOSAL_THRESHOLDThreshold of stake required to propose consensus- See Also:
-
CONSENSUS_THRESHOLD
public static final double CONSENSUS_THRESHOLDThreshold of stake required to confirm consensus- See Also:
-
INITIAL_TIMESTAMP
public static final long INITIAL_TIMESTAMPInitial timestamp for new States -
INITIAL_JUICE_PRICE
public static final long INITIAL_JUICE_PRICEJuice price in the initial Genesis State- See Also:
-
INITIAL_MEMORY_POOL
public static final long INITIAL_MEMORY_POOLInitial memory Pool of 1mb- See Also:
-
INITIAL_MEMORY_PRICE
public static final long INITIAL_MEMORY_PRICEInitial memory price per byte 0.001 Convex Gold- See Also:
-
MEMORY_POOL_GROWTH
public static final long MEMORY_POOL_GROWTHMemory Pool of growth increment 1mb- See Also:
-
MEMORY_POOL_GROWTH_INTERVAL
public static final long MEMORY_POOL_GROWTH_INTERVALMemory Pool of growth interval (once per day). This means regular price drops in memory pool- See Also:
-
MAX_TRANSACTION_JUICE
public static final long MAX_TRANSACTION_JUICEMax juice allowable during execution of a single transaction.- See Also:
-
MAX_TRANSACTIONS_PER_BLOCK
public static final int MAX_TRANSACTIONS_PER_BLOCKMax transactions in a legal Block.- See Also:
-
ETCH_DELETE_TEMP_ON_EXIT
public static final boolean ETCH_DELETE_TEMP_ON_EXITConstant to set deletion of Etch temporary files on exit. Probably should be true, unless you want to dubug temp files.- See Also:
-
INITIAL_SEQUENCE
public static final long INITIAL_SEQUENCESequence number used for any new account- See Also:
-
INITIAL_FEES
public static final long INITIAL_FEESInitial fees in global state- See Also:
-
MEMORY_OVERHEAD
public static final long MEMORY_OVERHEADSize in bytes of constant overhead applied per non-embedded Cell in memory accounting- See Also:
-
INITIAL_ACCOUNT_ALLOWANCE
public static final long INITIAL_ACCOUNT_ALLOWANCEAllowance for initial user / peer accounts- See Also:
-
MAX_SUPPLY
public static final long MAX_SUPPLYMaximum supply of Convex Coins set at protocol level- See Also:
-
MAX_DEPTH
public static final int MAX_DEPTHMaximum CVM execution depth- See Also:
-
INITIAL_GLOBALS
-
MAX_NAME_LENGTH
public static final int MAX_NAME_LENGTHMaximum length of a symbolic name in bytes (keywords and symbols) Note: Chosen so that small qualified symbolic values are always embedded- See Also:
-
SET_INCLUDED
Value used to indicate inclusion of a key in a Set. Must be a singleton instance -
SET_EXCLUDED
Value used to indicate exclusion of a key from a Set. Must be a singleton instance -
KEY_LENGTH
public static final int KEY_LENGTHLength for public keys- See Also:
-
HASH_LENGTH
public static final int HASH_LENGTHLength for Hash values- See Also:
-
MINIMUM_EFFECTIVE_STAKE
public static final long MINIMUM_EFFECTIVE_STAKEMinimum stake for a Peer to be considered by other Peers in consensus- See Also:
-
OPT_STATIC
public static final boolean OPT_STATICOption for static compilation support. Set to true for static inlines on core- See Also:
-
BAD_CHARACTER
public static final char BAD_CHARACTERChar to represent bad Unicode characters in printing- See Also:
-
BAD_CHARACTER_BYTES
public static final byte[] BAD_CHARACTER_BYTES -
BAD_CHARACTER_STRING
-
BAD_CHARACTER_UTF
public static final byte[] BAD_CHARACTER_UTF -
PRINT_LIMIT
public static final long PRINT_LIMITDefault print limit- See Also:
-
PRINT_EXCEEDED_STRING
- See Also:
-
PRINT_EXCEEDED_MESSAGE
-
DEFAULT_PEER_PORT
public static final int DEFAULT_PEER_PORTDefault port for Convex Peers- See Also:
-
KEEP_PROPOSAL_TIME
public static final long KEEP_PROPOSAL_TIMEMinimum milliseconds to retain a proposal before switching- See Also:
-
CONSENSUS_LEVELS
public static final int CONSENSUS_LEVELSNumber of consensus levels (blocks, proposed, consensus, finality)- See Also:
-
CONSENSUS_LEVEL_PROPOSAL
public static final int CONSENSUS_LEVEL_PROPOSAL- See Also:
-
CONSENSUS_LEVEL_CONSENSUS
public static final int CONSENSUS_LEVEL_CONSENSUS- See Also:
-
CONSENSUS_LEVEL_FINALITY
public static final int CONSENSUS_LEVEL_FINALITY- See Also:
-
ENABLE_FORK_RECOVERY
public static final boolean ENABLE_FORK_RECOVERY- See Also:
-
INITIAL_PEER_TIMESTAMP
public static final long INITIAL_PEER_TIMESTAMP- See Also:
-
MAX_BIG_INTEGER_LENGTH
public static final int MAX_BIG_INTEGER_LENGTH- See Also:
-
OMIT_VALIDATION_STACKTRACES
public static final boolean OMIT_VALIDATION_STACKTRACESFlag to omit filling in stack traces on validation exceptions. This helps performance against DoS attacks- See Also:
-
PEER_DECAY_DELAY
public static final double PEER_DECAY_DELAYMilliseconds before peer stake influence starts to decay (3 mins default)- See Also:
-
PEER_DECAY_TIME
public static final double PEER_DECAY_TIMETime for peer stake to decay by factor 1/e (5 mins default)- See Also:
-
MAX_BLOCK_BACKDATE
public static final long MAX_BLOCK_BACKDATEMaximum time a block can be resurrected from the past (1 min)- See Also:
-
-
Constructor Details
-
Constants
public Constants()
-