Skip to content

Instantly share code, notes, and snippets.

@mikeyb
Created September 15, 2016 23:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mikeyb/f6db1bc57a9eace79b024a8d449d1e13 to your computer and use it in GitHub Desktop.
Save mikeyb/f6db1bc57a9eace79b024a8d449d1e13 to your computer and use it in GitHub Desktop.
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