Skip to content

Commit

Permalink
Merge pull request #283 from crytic/change_default_to_include_delay
Browse files Browse the repository at this point in the history
Default time/block number delays to max of one week
  • Loading branch information
agroce authored Aug 13, 2019
2 parents 9087e79 + a807a99 commit 6869bab
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions examples/solidity/basic/default.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ quiet: False
#dashboard determines if output is just text or an AFL-like display
dashboard: true
#seed not defined by default, is the random seed
maxTimeDelay: 0
#maximum time between generated txs
maxBlockDelay: 0
#maximum number of blocks elapsed between generated txs
maxTimeDelay: 604800
#maximum time between generated txs; default is one week
maxBlockDelay: 60480
#maximum number of blocks elapsed between generated txs; default is expected increment in one week
2 changes: 1 addition & 1 deletion lib/Echidna/Config.hs
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ instance FromJSON EConfig where
(const psender)
getWord s d = C Dull . fromIntegral <$> v .:? s .!= (d :: Integer)
xc = liftM4 TxConf (getWord "propMaxGas" 8000030) (getWord "testMaxGas" 0xffffffff)
(getWord "maxTimeDelay" 0) (getWord "maxBlockDelay" 0)
(getWord "maxTimeDelay" 604800) (getWord "maxBlockDelay" 60480)
cc = CampaignConf <$> v .:? "testLimit" .!= 50000
<*> v .:? "seqLen" .!= 100
<*> v .:? "shrinkLimit" .!= 5000
Expand Down

0 comments on commit 6869bab

Please sign in to comment.