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 double
Threshold of stake required to confirm consensusstatic long
Default timeout in milliseconds for client transactionsstatic Integer
Default number of outgoing connections for a Peerstatic int
Default port for Convex Peersstatic boolean
Constant to set deletion of Etch temporary files on exit.static int
Length for Hash valuesstatic long
Allowance for initial user / peer accountsInitial global values for a new Statestatic long
Juice price in the initial Genesis Statestatic long
Initial memory Pool of 1gbstatic long
Initial memory price per bytestatic long
Sequence number used for any new accountstatic long
Initial timestamp for new Statesstatic int
Length for public keysstatic int
Maximum CVM execution depthstatic int
Maximum length of a symbolic name in characters (keywords and symbols) Note: Chosen so that small qualified symbolic values are always embeddedstatic long
Limit of scheduled transactions run in a single Blockstatic long
Maximum supply of Convex Coins set at protocol levelstatic long
Max juice allowable for execution of a single transaction.static long
Size in bytes of constant overhead applied per non-embedded Cell in memory accountingstatic long
Delay before a Peer produces another Blockstatic long
Minimum stake for a PEer to be considered by other Peers in consensusstatic double
Number of milliseconds average time to drop low-staked Peersstatic long
Timeout for syncing with an existing Peerstatic double
Threshold of stake required to propose consensusstatic long
Delay before rebroadcasting Belief if not in consensusstatic int
Default size for client receive buffers.static int
Default size for client receive buffers.static CVMBool
Value used to indicate exclusion of a key from a Set.static CVMBool
Value used to indicate inclusion of a key in a Set.static int
Size of default server socket buffers for a peer connectionstatic int
Size of default client socket receive bufferstatic int
Size of default client socket send bufferstatic int
Size of default server socket receive bufferstatic long
Number of fields in a Peer STATUS message -
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:
- Constant Field Values
-
PROPOSAL_THRESHOLD
public static final double PROPOSAL_THRESHOLDThreshold of stake required to propose consensus- See Also:
- Constant Field Values
-
CONSENSUS_THRESHOLD
public static final double CONSENSUS_THRESHOLDThreshold of stake required to confirm consensus- See Also:
- Constant Field Values
-
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:
- Constant Field Values
-
INITIAL_MEMORY_POOL
public static final long INITIAL_MEMORY_POOLInitial memory Pool of 1gb- See Also:
- Constant Field Values
-
INITIAL_MEMORY_PRICE
public static final long INITIAL_MEMORY_PRICEInitial memory price per byte- See Also:
- Constant Field Values
-
MAX_TRANSACTION_JUICE
public static final long MAX_TRANSACTION_JUICEMax juice allowable for execution of a single transaction.- See Also:
- Constant Field Values
-
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:
- Constant Field Values
-
INITIAL_SEQUENCE
public static final long INITIAL_SEQUENCESequence number used for any new account- See Also:
- Constant Field Values
-
MEMORY_OVERHEAD
public static final long MEMORY_OVERHEADSize in bytes of constant overhead applied per non-embedded Cell in memory accounting- See Also:
- Constant Field Values
-
DEFAULT_CLIENT_TIMEOUT
public static final long DEFAULT_CLIENT_TIMEOUTDefault timeout in milliseconds for client transactions- See Also:
- Constant Field Values
-
INITIAL_ACCOUNT_ALLOWANCE
public static final long INITIAL_ACCOUNT_ALLOWANCEAllowance for initial user / peer accounts- See Also:
- Constant Field Values
-
MAX_SUPPLY
public static final long MAX_SUPPLYMaximum supply of Convex Coins set at protocol level- See Also:
- Constant Field Values
-
MAX_DEPTH
public static final int MAX_DEPTHMaximum CVM execution depth- See Also:
- Constant Field Values
-
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 characters (keywords and symbols) Note: Chosen so that small qualified symbolic values are always embedded- See Also:
- Constant Field Values
-
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:
- Constant Field Values
-
HASH_LENGTH
public static final int HASH_LENGTHLength for Hash values- See Also:
- Constant Field Values
-
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:
- Constant Field Values
-
MINIMUM_EFFECTIVE_STAKE
public static final long MINIMUM_EFFECTIVE_STAKEMinimum stake for a PEer to be considered by other Peers in consensus- See Also:
- Constant Field Values
-
RECEIVE_BUFFER_SIZE
public static final int RECEIVE_BUFFER_SIZEDefault size for client receive buffers.- See Also:
- Constant Field Values
-
SEND_BUFFER_SIZE
public static final int SEND_BUFFER_SIZEDefault size for client receive buffers.- See Also:
- Constant Field Values
-
SOCKET_SERVER_BUFFER_SIZE
public static final int SOCKET_SERVER_BUFFER_SIZESize of default server socket receive buffer- See Also:
- Constant Field Values
-
SOCKET_PEER_BUFFER_SIZE
public static final int SOCKET_PEER_BUFFER_SIZESize of default server socket buffers for a peer connection- See Also:
- Constant Field Values
-
SOCKET_RECEIVE_BUFFER_SIZE
public static final int SOCKET_RECEIVE_BUFFER_SIZESize of default client socket receive buffer- See Also:
- Constant Field Values
-
SOCKET_SEND_BUFFER_SIZE
public static final int SOCKET_SEND_BUFFER_SIZESize of default client socket send buffer- See Also:
- Constant Field Values
-
REBROADCAST_DELAY
public static final long REBROADCAST_DELAYDelay before rebroadcasting Belief if not in consensus- See Also:
- Constant Field Values
-
MIN_BLOCK_TIME
public static final long MIN_BLOCK_TIMEDelay before a Peer produces another Block- See Also:
- Constant Field Values
-
PEER_SYNC_TIMEOUT
public static final long PEER_SYNC_TIMEOUTTimeout for syncing with an existing Peer- See Also:
- Constant Field Values
-
STATUS_COUNT
public static final long STATUS_COUNTNumber of fields in a Peer STATUS message- See Also:
- Constant Field Values
-
DEFAULT_PEER_PORT
public static final int DEFAULT_PEER_PORTDefault port for Convex Peers- See Also:
- Constant Field Values
-
-
Constructor Details
-
Constants
public Constants()
-