-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
evmzero: Add check for range in blockHash op (#461)
* Add range and overflow checks in BlockHash and edge cases unit test
- Loading branch information
Showing
3 changed files
with
121 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
{ | ||
"Status": "running", | ||
"Revision": "Istanbul", | ||
"ReadOnly": true, | ||
"Pc": 8, | ||
"Gas": 20, | ||
"GasRefund": -227234023154315042, | ||
"Code": "66750be9068df1f6408bbef5686da975769e56d9c234c26308561e54671ef3bf29a5c7dfa0be5587f58ba5cdae3ecb7423edccae610551c586da8a405f51a3a946ad926b095fd2626dc2bfb119899d3838b041a1ee2f52a00d71302f93562cc2", | ||
"Stack": [ | ||
"4ae34574e9825110 de832ae81b410c8b dba36e64a329105c 32bb930fbfeafc82", | ||
"0000000000000000 0000000000000000 0000000000000000 0000000000000004" | ||
], | ||
"BlockContext": { | ||
"BaseFee": "ddb99751cdafe03b db1282bd243a8724 f8020d59eb04c225 74f9aaa2fbcd2aa8", | ||
"BlockNumber": 0, | ||
"ChainID": "1af9d83701ad0e63 4de99a69a7ccb803 4a5005c9bf10e0a7 af17726db99a2e08", | ||
"CoinBase": "0xd774bd9070705b43cc0e869b651027f2e1d5a4a0", | ||
"GasLimit": 452038407889421009, | ||
"GasPrice": "7769b4568916bcdc 95f45a0b8e86a9cc 84a2c7aac56289ae 0929506dcb3ed222", | ||
"Difficulty": "4712f1af585ea1d8 7f6e4125fbe56924 21ae13d6e2d673e2 f57beecfb640f15b", | ||
"TimeStamp": 4864479995436506094 | ||
} | ||
} |