Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set reasonable initial block time and number #455

Merged
merged 2 commits into from
May 1, 2020
Merged

Conversation

ggrieco-tob
Copy link
Member

This small PR sets initial timestamp and block number to reasonable values following Manticore code:

https://github.com/trailofbits/manticore/blob/8a77ad468082ed905449459e769b95839db3b54f/manticore/platforms/evm.py#L2283-L2291

@@ -23,6 +23,12 @@ data TxCall = SolCreate ByteString
makePrisms ''TxCall
$(deriveJSON defaultOptions ''TxCall)

initialTimestamp :: Word
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i think it is better to eventually make these configurable but we'll leave it as a constant for now

@ggrieco-tob ggrieco-tob merged commit ceb8fbc into master May 1, 2020
@ggrieco-tob ggrieco-tob deleted the dev-initial-block branch May 1, 2020 23:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants