Skip to content

Commit

Permalink
Modify ProgPow to increase period and epoch length
Browse files Browse the repository at this point in the history
  • Loading branch information
Djadih committed Jul 18, 2023
1 parent 6724df4 commit 2013913
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
22 changes: 11 additions & 11 deletions consensus/progpow/algorithm.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,17 +35,17 @@ import (
)

const (
datasetInitBytes = 1 << 30 // Bytes in dataset at genesis
datasetGrowthBytes = 1 << 23 // Dataset growth per epoch
cacheInitBytes = 1 << 24 // Bytes in cache at genesis
cacheGrowthBytes = 1 << 17 // Cache growth per epoch
epochLength = 30000 // Blocks per epoch
mixBytes = 128 // Width of mix
hashBytes = 64 // Hash length in bytes
hashWords = 16 // Number of 32 bit ints in a hash
datasetParents = 256 // Number of parents of each dataset element
cacheRounds = 3 // Number of rounds in cache production
loopAccesses = 64 // Number of accesses in hashimoto loop
datasetInitBytes = 1 << 30 // Bytes in dataset at genesis
datasetGrowthBytes = 1 << 23 // Dataset growth per epoch
cacheInitBytes = 1 << 24 // Bytes in cache at genesis
cacheGrowthBytes = 1 << 17 // Cache growth per epoch
epochLength = 2147483647 // Blocks per epoch
mixBytes = 128 // Width of mix
hashBytes = 64 // Hash length in bytes
hashWords = 16 // Number of 32 bit ints in a hash
datasetParents = 256 // Number of parents of each dataset element
cacheRounds = 3 // Number of rounds in cache production
loopAccesses = 64 // Number of accesses in hashimoto loop
)

// cacheSize returns the size of the ethash verification cache that belongs to a certain
Expand Down
2 changes: 1 addition & 1 deletion consensus/progpow/algorithm_progpow.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ const (
progpowDagLoads = 4 // Number of uint32 loads from the DAG per lane
progpowCntCache = 11
progpowCntMath = 18
progpowPeriodLength = 10
progpowPeriodLength = 2147483647 // int32 max defined explicitly for other architectures
progpowCntDag = 64
progpowMixBytes = 256
)
Expand Down

0 comments on commit 2013913

Please sign in to comment.