Merge pull request #283 from crytic/change_default_to_include_delay

Default time/block number delays to max of one week
pull/285/head 1.1.0.0
Alex Groce 5 years ago committed by GitHub
commit 6869bab236
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 8
      examples/solidity/basic/default.yaml
  2. 2
      lib/Echidna/Config.hs

@ -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

@ -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

Loading…
Cancel
Save