Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
WORD_BYTES = 4 # bytes in word
DATASET_BYTES_INIT = 2**30 # bytes in dataset at genesis
if (blockHeight >= ######) {
DATASET_BYTES_GROWTH = 2**23 # stop growing
} else {
DATASET_BYTES_GROWTH = 2**23 # dataset growth per epoch
}
CACHE_BYTES_INIT = 2**24 # bytes in cache at genesis
if (blockHeight >= ######) {
CACHE_BYTES_GROWTH = 0 # stop growing
} else {
CACHE_BYTES_GROWTH = 2**17 # cache growth per epoch
}
CACHE_MULTIPLIER=1024 # Size of the DAG relative to the cache
EPOCH_LENGTH = 30000 # blocks per epoch
MIX_BYTES = 128 # width of mix
HASH_BYTES = 64 # hash length in bytes
DATASET_PARENTS = 256 # number of parents of each dataset element
CACHE_ROUNDS = 3 # number of rounds in cache production
ACCESSES = 64 # number of accesses in hashimoto loop
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment