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 char
Char to represent bad Unicode characters in printingstatic final byte[]
static final String
static final byte[]
static final int
Size of incoming Belief queuestatic final double
Threshold of stake required to confirm consensusstatic final long
Default timeout in milliseconds for client transactionsstatic final Integer
Default number of outgoing connections for a Peerstatic final int
Default port for Convex Peersstatic final boolean
Constant to set deletion of Etch temporary files on exit.static final int
Length for Hash valuesstatic final long
Allowance for initial user / peer accountsInitial global values for a new Statestatic final long
Juice price in the initial Genesis Statestatic final long
Initial memory Pool of 1gbstatic final long
Initial memory price per bytestatic final long
Sequence number used for any new accountstatic final long
Initial timestamp for new Statesstatic final long
Minimum milliseconds to retain a proposal before switchingstatic final int
Length for public keysstatic final int
Maximum CVM execution depthstatic final int
Maximum length of a symbolic name in bytes (keywords and symbols) Note: Chosen so that small qualified symbolic values are always embeddedstatic final long
Delay before rebroadcasting Belief if not in consensusstatic final long
Limit of scheduled transactions run in a single Blockstatic final long
Maximum supply of Convex Coins set at protocol levelstatic final long
Max juice allowable for execution of a single transaction.static final long
Size in bytes of constant overhead applied per non-embedded Cell in memory accountingstatic final long
Memory Pool of growth increment 1mnstatic final long
Memory Pool of growth interval (once per day)static final long
Minimum stake for a Peer to be considered by other Peers in consensusstatic final boolean
Option for static compilation support.static final double
Number of milliseconds average time to drop low-staked Peersstatic final long
Timeout for syncing with an existing Peerstatic final AString
static final long
Default print limitstatic final double
Threshold of stake required to propose consensusstatic final int
static final int
Default size for client receive ByteBuffers.static final CVMBool
Value used to indicate exclusion of a key from a Set.static final CVMBool
Value used to indicate inclusion of a key in a Set.static final int
Size of default server socket buffers for an outbound peer connectionstatic final int
Size of default client socket receive bufferstatic final int
Size of default client socket send bufferstatic final int
Size of default server socket receive bufferstatic final long
Number of fields in a Peer STATUS messagestatic final int
Default size for incoming client transaction queue Note: this limits TPS for client transactions, will send failures if overloaded -
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 1gb- See Also:
-
INITIAL_MEMORY_PRICE
public static final long INITIAL_MEMORY_PRICEInitial memory price per byte- See Also:
-
MEMORY_POOL_GROWTH
public static final long MEMORY_POOL_GROWTHMemory Pool of growth increment 1mn- See Also:
-
MEMORY_POOL_GROWTH_INTERVAL
public static final long MEMORY_POOL_GROWTH_INTERVALMemory Pool of growth interval (once per day)- See Also:
-
MAX_TRANSACTION_JUICE
public static final long MAX_TRANSACTION_JUICEMax juice allowable for execution of a single transaction.- 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:
-
MEMORY_OVERHEAD
public static final long MEMORY_OVERHEADSize in bytes of constant overhead applied per non-embedded Cell in memory accounting- See Also:
-
DEFAULT_CLIENT_TIMEOUT
public static final long DEFAULT_CLIENT_TIMEOUTDefault timeout in milliseconds for client transactions- 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
Initial global values for a new State -
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:
-
DEFAULT_OUTGOING_CONNECTION_COUNT
Default number of outgoing connections for a Peer -
PEER_CONNECTION_DROP_TIME
public static final double PEER_CONNECTION_DROP_TIMENumber of milliseconds average time to drop low-staked Peers- 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:
-
RECEIVE_BUFFER_SIZE
public static final int RECEIVE_BUFFER_SIZEDefault size for client receive ByteBuffers.- See Also:
-
SOCKET_SERVER_BUFFER_SIZE
public static final int SOCKET_SERVER_BUFFER_SIZESize of default server socket receive buffer- See Also:
-
SOCKET_PEER_BUFFER_SIZE
public static final int SOCKET_PEER_BUFFER_SIZESize of default server socket buffers for an outbound peer connection- See Also:
-
SOCKET_RECEIVE_BUFFER_SIZE
public static final int SOCKET_RECEIVE_BUFFER_SIZESize of default client socket receive buffer- See Also:
-
SOCKET_SEND_BUFFER_SIZE
public static final int SOCKET_SEND_BUFFER_SIZESize of default client socket send buffer- See Also:
-
MAX_REBROADCAST_DELAY
public static final long MAX_REBROADCAST_DELAYDelay before rebroadcasting Belief if not in consensus- See Also:
-
PEER_SYNC_TIMEOUT
public static final long PEER_SYNC_TIMEOUTTimeout for syncing with an existing Peer- See Also:
-
STATUS_COUNT
public static final long STATUS_COUNTNumber of fields in a Peer STATUS message- See Also:
-
DEFAULT_PEER_PORT
public static final int DEFAULT_PEER_PORTDefault port for Convex Peers- 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_MESSAGE
-
TRANSACTION_QUEUE_SIZE
public static final int TRANSACTION_QUEUE_SIZEDefault size for incoming client transaction queue Note: this limits TPS for client transactions, will send failures if overloaded- See Also:
-
QUERY_QUEUE_SIZE
public static final int QUERY_QUEUE_SIZE- See Also:
-
BELIEF_QUEUE_SIZE
public static final int BELIEF_QUEUE_SIZESize of incoming Belief queue- See Also:
-
KEEP_PROPOSAL_TIME
public static final long KEEP_PROPOSAL_TIMEMinimum milliseconds to retain a proposal before switching- See Also:
-
-
Constructor Details
-
Constants
public Constants()
-