Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
Geth-Modification
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
张蕾
Geth-Modification
Commits
f0ec7512
Commit
f0ec7512
authored
Jan 06, 2015
by
obscuren
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updated tests
parent
25e6c4ef
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
417 additions
and
35 deletions
+417
-35
stSystemOperationsTest.json
tests/files/StateTests/stSystemOperationsTest.json
+150
-0
vmBlockInfoTest.json
tests/files/VMTests/vmBlockInfoTest.json
+159
-28
vmEnvironmentalInfoTest.json
tests/files/VMTests/vmEnvironmentalInfoTest.json
+107
-6
common.go
vm/common.go
+1
-1
No files found.
tests/files/StateTests/stSystemOperationsTest.json
View file @
f0ec7512
...
@@ -4673,6 +4673,81 @@
...
@@ -4673,6 +4673,81 @@
"value"
:
"100000"
"value"
:
"100000"
}
}
},
},
"CallToNameRegistratorZeorSizeMemExpansion"
:
{
"env"
:
{
"currentCoinbase"
:
"2adc25665018aa1fe0e6bc666dac8fc2697ff9ba"
,
"currentDifficulty"
:
"256"
,
"currentGasLimit"
:
"10000000"
,
"currentNumber"
:
"0"
,
"currentTimestamp"
:
1
,
"previousHash"
:
"5e20a0453cecd065ea59c37ac63e079ee08998b6045136a8ce6635c7912ec0b6"
},
"logs"
:
[
],
"out"
:
"0x"
,
"post"
:
{
"095e7baea6a6c7c4c2dfeb977efac326af552d87"
:
{
"balance"
:
"1000000000000099977"
,
"code"
:
"0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff6000527faaffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffaa6020526000600060006000601773945304eb96065b2a98b57a48a06ae28d285a71b56103e8f1600055"
,
"nonce"
:
"0"
,
"storage"
:
{
}
},
"2adc25665018aa1fe0e6bc666dac8fc2697ff9ba"
:
{
"balance"
:
"1636"
,
"code"
:
"0x"
,
"nonce"
:
"0"
,
"storage"
:
{
}
},
"945304eb96065b2a98b57a48a06ae28d285a71b5"
:
{
"balance"
:
"46"
,
"code"
:
"0x60003554156009570060203560003555"
,
"nonce"
:
"0"
,
"storage"
:
{
}
},
"a94f5374fce5edbc8e2a8697c15331677e6ebf0b"
:
{
"balance"
:
"999999999999898364"
,
"code"
:
"0x"
,
"nonce"
:
"1"
,
"storage"
:
{
}
}
},
"pre"
:
{
"095e7baea6a6c7c4c2dfeb977efac326af552d87"
:
{
"balance"
:
"1000000000000000000"
,
"code"
:
"0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff6000527faaffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffaa6020526000600060006000601773945304eb96065b2a98b57a48a06ae28d285a71b56103e8f1600055"
,
"nonce"
:
"0"
,
"storage"
:
{
}
},
"945304eb96065b2a98b57a48a06ae28d285a71b5"
:
{
"balance"
:
"23"
,
"code"
:
"0x60003554156009570060203560003555"
,
"nonce"
:
"0"
,
"storage"
:
{
}
},
"a94f5374fce5edbc8e2a8697c15331677e6ebf0b"
:
{
"balance"
:
"1000000000000000000"
,
"code"
:
"0x"
,
"nonce"
:
"0"
,
"storage"
:
{
}
}
},
"transaction"
:
{
"data"
:
""
,
"gasLimit"
:
"10000"
,
"gasPrice"
:
"1"
,
"nonce"
:
"0"
,
"secretKey"
:
"45a915e4d060149eb4365960e6a7a45f334393093061116b197e3240065ff2d8"
,
"to"
:
"095e7baea6a6c7c4c2dfeb977efac326af552d87"
,
"value"
:
"100000"
}
},
"CallToReturn1"
:
{
"CallToReturn1"
:
{
"env"
:
{
"env"
:
{
"currentCoinbase"
:
"2adc25665018aa1fe0e6bc666dac8fc2697ff9ba"
,
"currentCoinbase"
:
"2adc25665018aa1fe0e6bc666dac8fc2697ff9ba"
,
...
@@ -5023,6 +5098,81 @@
...
@@ -5023,6 +5098,81 @@
"value"
:
"100000"
"value"
:
"100000"
}
}
},
},
"callcodeToNameRegistratorZeroMemExpanion"
:
{
"env"
:
{
"currentCoinbase"
:
"2adc25665018aa1fe0e6bc666dac8fc2697ff9ba"
,
"currentDifficulty"
:
"256"
,
"currentGasLimit"
:
"10000000"
,
"currentNumber"
:
"0"
,
"currentTimestamp"
:
1
,
"previousHash"
:
"5e20a0453cecd065ea59c37ac63e079ee08998b6045136a8ce6635c7912ec0b6"
},
"logs"
:
[
],
"out"
:
"0x"
,
"post"
:
{
"095e7baea6a6c7c4c2dfeb977efac326af552d87"
:
{
"balance"
:
"1000000000000100000"
,
"code"
:
"0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff6000527faaffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffaa6020526000600060006000601773945304eb96065b2a98b57a48a06ae28d285a71b56103e8f2600055"
,
"nonce"
:
"0"
,
"storage"
:
{
}
},
"2adc25665018aa1fe0e6bc666dac8fc2697ff9ba"
:
{
"balance"
:
"1636"
,
"code"
:
"0x"
,
"nonce"
:
"0"
,
"storage"
:
{
}
},
"945304eb96065b2a98b57a48a06ae28d285a71b5"
:
{
"balance"
:
"23"
,
"code"
:
"0x60003554156009570060203560003555"
,
"nonce"
:
"0"
,
"storage"
:
{
}
},
"a94f5374fce5edbc8e2a8697c15331677e6ebf0b"
:
{
"balance"
:
"999999999999898364"
,
"code"
:
"0x"
,
"nonce"
:
"1"
,
"storage"
:
{
}
}
},
"pre"
:
{
"095e7baea6a6c7c4c2dfeb977efac326af552d87"
:
{
"balance"
:
"1000000000000000000"
,
"code"
:
"0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff6000527faaffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffaa6020526000600060006000601773945304eb96065b2a98b57a48a06ae28d285a71b56103e8f2600055"
,
"nonce"
:
"0"
,
"storage"
:
{
}
},
"945304eb96065b2a98b57a48a06ae28d285a71b5"
:
{
"balance"
:
"23"
,
"code"
:
"0x60003554156009570060203560003555"
,
"nonce"
:
"0"
,
"storage"
:
{
}
},
"a94f5374fce5edbc8e2a8697c15331677e6ebf0b"
:
{
"balance"
:
"1000000000000000000"
,
"code"
:
"0x"
,
"nonce"
:
"0"
,
"storage"
:
{
}
}
},
"transaction"
:
{
"data"
:
""
,
"gasLimit"
:
"1000000"
,
"gasPrice"
:
"1"
,
"nonce"
:
"0"
,
"secretKey"
:
"45a915e4d060149eb4365960e6a7a45f334393093061116b197e3240065ff2d8"
,
"to"
:
"095e7baea6a6c7c4c2dfeb977efac326af552d87"
,
"value"
:
"100000"
}
},
"callcodeToReturn1"
:
{
"callcodeToReturn1"
:
{
"env"
:
{
"env"
:
{
"currentCoinbase"
:
"2adc25665018aa1fe0e6bc666dac8fc2697ff9ba"
,
"currentCoinbase"
:
"2adc25665018aa1fe0e6bc666dac8fc2697ff9ba"
,
...
...
tests/files/VMTests/vmBlockInfoTest.json
View file @
f0ec7512
{
{
"
coinbase
"
:
{
"
blockhash257Block
"
:
{
"callcreates"
:
[
"callcreates"
:
[
],
],
"env"
:
{
"env"
:
{
"currentCoinbase"
:
"2adc25665018aa1fe0e6bc666dac8fc2697ff9ba"
,
"currentCoinbase"
:
"2adc25665018aa1fe0e6bc666dac8fc2697ff9ba"
,
"currentDifficulty"
:
"256"
,
"currentDifficulty"
:
"256"
,
"currentGasLimit"
:
"1000000"
,
"currentGasLimit"
:
"1000000"
,
"currentNumber"
:
"
0
"
,
"currentNumber"
:
"
257
"
,
"currentTimestamp"
:
"1"
,
"currentTimestamp"
:
"1"
,
"previousHash"
:
"5e20a0453cecd065ea59c37ac63e079ee08998b6045136a8ce6635c7912ec0b6"
"previousHash"
:
"5e20a0453cecd065ea59c37ac63e079ee08998b6045136a8ce6635c7912ec0b6"
},
},
"exec"
:
{
"exec"
:
{
"address"
:
"0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6"
,
"address"
:
"0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6"
,
"caller"
:
"cd1722f3947def4cf144679da39c4c32bdc35681"
,
"caller"
:
"cd1722f3947def4cf144679da39c4c32bdc35681"
,
"code"
:
"0x
41
600055"
,
"code"
:
"0x
600040
600055"
,
"data"
:
"0x"
,
"data"
:
"0x"
,
"gas"
:
"10000"
,
"gas"
:
"10000"
,
"gasPrice"
:
"100000000000000"
,
"gasPrice"
:
"100000000000000"
,
"origin"
:
"cd1722f3947def4cf144679da39c4c32bdc35681"
,
"origin"
:
"cd1722f3947def4cf144679da39c4c32bdc35681"
,
"value"
:
"1000000000000000000"
"value"
:
"1000000000000000000"
},
},
"gas"
:
"9
698
"
,
"gas"
:
"9
897
"
,
"logs"
:
[
"logs"
:
[
],
],
"out"
:
"0x"
,
"out"
:
"0x"
,
"post"
:
{
"post"
:
{
"0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6"
:
{
"0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6"
:
{
"balance"
:
"1000000000000000000"
,
"balance"
:
"1000000000000000000"
,
"code"
:
"0x
41
600055"
,
"code"
:
"0x
600040
600055"
,
"nonce"
:
"0"
,
"nonce"
:
"0"
,
"storage"
:
{
"storage"
:
{
"0x"
:
"0x2adc25665018aa1fe0e6bc666dac8fc2697ff9ba"
}
}
}
}
},
},
"pre"
:
{
"pre"
:
{
"0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6"
:
{
"0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6"
:
{
"balance"
:
"1000000000000000000"
,
"balance"
:
"1000000000000000000"
,
"code"
:
"0x
41
600055"
,
"code"
:
"0x
600040
600055"
,
"nonce"
:
"0"
,
"nonce"
:
"0"
,
"storage"
:
{
"storage"
:
{
}
}
}
}
}
}
},
},
"difficulty"
:
{
"blockhash258Block"
:
{
"callcreates"
:
[
],
"env"
:
{
"currentCoinbase"
:
"2adc25665018aa1fe0e6bc666dac8fc2697ff9ba"
,
"currentDifficulty"
:
"256"
,
"currentGasLimit"
:
"1000000"
,
"currentNumber"
:
"258"
,
"currentTimestamp"
:
"1"
,
"previousHash"
:
"5e20a0453cecd065ea59c37ac63e079ee08998b6045136a8ce6635c7912ec0b6"
},
"exec"
:
{
"address"
:
"0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6"
,
"caller"
:
"cd1722f3947def4cf144679da39c4c32bdc35681"
,
"code"
:
"0x600140600055"
,
"data"
:
"0x"
,
"gas"
:
"10000"
,
"gasPrice"
:
"100000000000000"
,
"origin"
:
"cd1722f3947def4cf144679da39c4c32bdc35681"
,
"value"
:
"1000000000000000000"
},
"gas"
:
"9897"
,
"logs"
:
[
],
"out"
:
"0x"
,
"post"
:
{
"0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6"
:
{
"balance"
:
"1000000000000000000"
,
"code"
:
"0x600140600055"
,
"nonce"
:
"0"
,
"storage"
:
{
}
}
},
"pre"
:
{
"0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6"
:
{
"balance"
:
"1000000000000000000"
,
"code"
:
"0x600140600055"
,
"nonce"
:
"0"
,
"storage"
:
{
}
}
}
},
"blockhashMyBlock"
:
{
"callcreates"
:
[
],
"env"
:
{
"currentCoinbase"
:
"2adc25665018aa1fe0e6bc666dac8fc2697ff9ba"
,
"currentDifficulty"
:
"256"
,
"currentGasLimit"
:
"1000000"
,
"currentNumber"
:
"1"
,
"currentTimestamp"
:
"1"
,
"previousHash"
:
"5e20a0453cecd065ea59c37ac63e079ee08998b6045136a8ce6635c7912ec0b6"
},
"exec"
:
{
"address"
:
"0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6"
,
"caller"
:
"cd1722f3947def4cf144679da39c4c32bdc35681"
,
"code"
:
"0x600140600055"
,
"data"
:
"0x"
,
"gas"
:
"10000"
,
"gasPrice"
:
"100000000000000"
,
"origin"
:
"cd1722f3947def4cf144679da39c4c32bdc35681"
,
"value"
:
"1000000000000000000"
},
"gas"
:
"9897"
,
"logs"
:
[
],
"out"
:
"0x"
,
"post"
:
{
"0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6"
:
{
"balance"
:
"1000000000000000000"
,
"code"
:
"0x600140600055"
,
"nonce"
:
"0"
,
"storage"
:
{
}
}
},
"pre"
:
{
"0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6"
:
{
"balance"
:
"1000000000000000000"
,
"code"
:
"0x600140600055"
,
"nonce"
:
"0"
,
"storage"
:
{
}
}
}
},
"blockhashNotExistingBlock"
:
{
"callcreates"
:
[
],
"env"
:
{
"currentCoinbase"
:
"2adc25665018aa1fe0e6bc666dac8fc2697ff9ba"
,
"currentDifficulty"
:
"256"
,
"currentGasLimit"
:
"1000000"
,
"currentNumber"
:
"1"
,
"currentTimestamp"
:
"1"
,
"previousHash"
:
"5e20a0453cecd065ea59c37ac63e079ee08998b6045136a8ce6635c7912ec0b6"
},
"exec"
:
{
"address"
:
"0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6"
,
"caller"
:
"cd1722f3947def4cf144679da39c4c32bdc35681"
,
"code"
:
"0x600240600055"
,
"data"
:
"0x"
,
"gas"
:
"10000"
,
"gasPrice"
:
"100000000000000"
,
"origin"
:
"cd1722f3947def4cf144679da39c4c32bdc35681"
,
"value"
:
"1000000000000000000"
},
"gas"
:
"9897"
,
"logs"
:
[
],
"out"
:
"0x"
,
"post"
:
{
"0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6"
:
{
"balance"
:
"1000000000000000000"
,
"code"
:
"0x600240600055"
,
"nonce"
:
"0"
,
"storage"
:
{
}
}
},
"pre"
:
{
"0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6"
:
{
"balance"
:
"1000000000000000000"
,
"code"
:
"0x600240600055"
,
"nonce"
:
"0"
,
"storage"
:
{
}
}
}
},
"coinbase"
:
{
"callcreates"
:
[
"callcreates"
:
[
],
],
"env"
:
{
"env"
:
{
...
@@ -58,7 +189,7 @@
...
@@ -58,7 +189,7 @@
"exec"
:
{
"exec"
:
{
"address"
:
"0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6"
,
"address"
:
"0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6"
,
"caller"
:
"cd1722f3947def4cf144679da39c4c32bdc35681"
,
"caller"
:
"cd1722f3947def4cf144679da39c4c32bdc35681"
,
"code"
:
"0x4
4
600055"
,
"code"
:
"0x4
1
600055"
,
"data"
:
"0x"
,
"data"
:
"0x"
,
"gas"
:
"10000"
,
"gas"
:
"10000"
,
"gasPrice"
:
"100000000000000"
,
"gasPrice"
:
"100000000000000"
,
...
@@ -72,24 +203,24 @@
...
@@ -72,24 +203,24 @@
"post"
:
{
"post"
:
{
"0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6"
:
{
"0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6"
:
{
"balance"
:
"1000000000000000000"
,
"balance"
:
"1000000000000000000"
,
"code"
:
"0x4
4
600055"
,
"code"
:
"0x4
1
600055"
,
"nonce"
:
"0"
,
"nonce"
:
"0"
,
"storage"
:
{
"storage"
:
{
"0x"
:
"0x
0100
"
"0x"
:
"0x
2adc25665018aa1fe0e6bc666dac8fc2697ff9ba
"
}
}
}
}
},
},
"pre"
:
{
"pre"
:
{
"0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6"
:
{
"0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6"
:
{
"balance"
:
"1000000000000000000"
,
"balance"
:
"1000000000000000000"
,
"code"
:
"0x4
4
600055"
,
"code"
:
"0x4
1
600055"
,
"nonce"
:
"0"
,
"nonce"
:
"0"
,
"storage"
:
{
"storage"
:
{
}
}
}
}
}
}
},
},
"
gaslimit
"
:
{
"
difficulty
"
:
{
"callcreates"
:
[
"callcreates"
:
[
],
],
"env"
:
{
"env"
:
{
...
@@ -103,7 +234,7 @@
...
@@ -103,7 +234,7 @@
"exec"
:
{
"exec"
:
{
"address"
:
"0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6"
,
"address"
:
"0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6"
,
"caller"
:
"cd1722f3947def4cf144679da39c4c32bdc35681"
,
"caller"
:
"cd1722f3947def4cf144679da39c4c32bdc35681"
,
"code"
:
"0x4
5
600055"
,
"code"
:
"0x4
4
600055"
,
"data"
:
"0x"
,
"data"
:
"0x"
,
"gas"
:
"10000"
,
"gas"
:
"10000"
,
"gasPrice"
:
"100000000000000"
,
"gasPrice"
:
"100000000000000"
,
...
@@ -117,24 +248,24 @@
...
@@ -117,24 +248,24 @@
"post"
:
{
"post"
:
{
"0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6"
:
{
"0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6"
:
{
"balance"
:
"1000000000000000000"
,
"balance"
:
"1000000000000000000"
,
"code"
:
"0x4
5
600055"
,
"code"
:
"0x4
4
600055"
,
"nonce"
:
"0"
,
"nonce"
:
"0"
,
"storage"
:
{
"storage"
:
{
"0x"
:
"0x0
f424
0"
"0x"
:
"0x0
10
0"
}
}
}
}
},
},
"pre"
:
{
"pre"
:
{
"0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6"
:
{
"0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6"
:
{
"balance"
:
"1000000000000000000"
,
"balance"
:
"1000000000000000000"
,
"code"
:
"0x4
5
600055"
,
"code"
:
"0x4
4
600055"
,
"nonce"
:
"0"
,
"nonce"
:
"0"
,
"storage"
:
{
"storage"
:
{
}
}
}
}
}
}
},
},
"
number
"
:
{
"
gaslimit
"
:
{
"callcreates"
:
[
"callcreates"
:
[
],
],
"env"
:
{
"env"
:
{
...
@@ -148,37 +279,38 @@
...
@@ -148,37 +279,38 @@
"exec"
:
{
"exec"
:
{
"address"
:
"0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6"
,
"address"
:
"0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6"
,
"caller"
:
"cd1722f3947def4cf144679da39c4c32bdc35681"
,
"caller"
:
"cd1722f3947def4cf144679da39c4c32bdc35681"
,
"code"
:
"0x4
3
600055"
,
"code"
:
"0x4
5
600055"
,
"data"
:
"0x"
,
"data"
:
"0x"
,
"gas"
:
"10000"
,
"gas"
:
"10000"
,
"gasPrice"
:
"100000000000000"
,
"gasPrice"
:
"100000000000000"
,
"origin"
:
"cd1722f3947def4cf144679da39c4c32bdc35681"
,
"origin"
:
"cd1722f3947def4cf144679da39c4c32bdc35681"
,
"value"
:
"1000000000000000000"
"value"
:
"1000000000000000000"
},
},
"gas"
:
"9
8
98"
,
"gas"
:
"9
6
98"
,
"logs"
:
[
"logs"
:
[
],
],
"out"
:
"0x"
,
"out"
:
"0x"
,
"post"
:
{
"post"
:
{
"0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6"
:
{
"0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6"
:
{
"balance"
:
"1000000000000000000"
,
"balance"
:
"1000000000000000000"
,
"code"
:
"0x4
3
600055"
,
"code"
:
"0x4
5
600055"
,
"nonce"
:
"0"
,
"nonce"
:
"0"
,
"storage"
:
{
"storage"
:
{
"0x"
:
"0x0f4240"
}
}
}
}
},
},
"pre"
:
{
"pre"
:
{
"0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6"
:
{
"0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6"
:
{
"balance"
:
"1000000000000000000"
,
"balance"
:
"1000000000000000000"
,
"code"
:
"0x4
3
600055"
,
"code"
:
"0x4
5
600055"
,
"nonce"
:
"0"
,
"nonce"
:
"0"
,
"storage"
:
{
"storage"
:
{
}
}
}
}
}
}
},
},
"
prevhash
"
:
{
"
number
"
:
{
"callcreates"
:
[
"callcreates"
:
[
],
],
"env"
:
{
"env"
:
{
...
@@ -192,31 +324,30 @@
...
@@ -192,31 +324,30 @@
"exec"
:
{
"exec"
:
{
"address"
:
"0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6"
,
"address"
:
"0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6"
,
"caller"
:
"cd1722f3947def4cf144679da39c4c32bdc35681"
,
"caller"
:
"cd1722f3947def4cf144679da39c4c32bdc35681"
,
"code"
:
"0x4
0
600055"
,
"code"
:
"0x4
3
600055"
,
"data"
:
"0x"
,
"data"
:
"0x"
,
"gas"
:
"10000"
,
"gas"
:
"10000"
,
"gasPrice"
:
"100000000000000"
,
"gasPrice"
:
"100000000000000"
,
"origin"
:
"cd1722f3947def4cf144679da39c4c32bdc35681"
,
"origin"
:
"cd1722f3947def4cf144679da39c4c32bdc35681"
,
"value"
:
"1000000000000000000"
"value"
:
"1000000000000000000"
},
},
"gas"
:
"9
6
98"
,
"gas"
:
"9
8
98"
,
"logs"
:
[
"logs"
:
[
],
],
"out"
:
"0x"
,
"out"
:
"0x"
,
"post"
:
{
"post"
:
{
"0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6"
:
{
"0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6"
:
{
"balance"
:
"1000000000000000000"
,
"balance"
:
"1000000000000000000"
,
"code"
:
"0x4
0
600055"
,
"code"
:
"0x4
3
600055"
,
"nonce"
:
"0"
,
"nonce"
:
"0"
,
"storage"
:
{
"storage"
:
{
"0x"
:
"0x5e20a0453cecd065ea59c37ac63e079ee08998b6045136a8ce6635c7912ec0b6"
}
}
}
}
},
},
"pre"
:
{
"pre"
:
{
"0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6"
:
{
"0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6"
:
{
"balance"
:
"1000000000000000000"
,
"balance"
:
"1000000000000000000"
,
"code"
:
"0x4
0
600055"
,
"code"
:
"0x4
3
600055"
,
"nonce"
:
"0"
,
"nonce"
:
"0"
,
"storage"
:
{
"storage"
:
{
}
}
...
...
tests/files/VMTests/vmEnvironmentalInfoTest.json
View file @
f0ec7512
...
@@ -416,6 +416,50 @@
...
@@ -416,6 +416,50 @@
}
}
}
}
},
},
"calldatacopyZeroMemExpansion"
:
{
"callcreates"
:
[
],
"env"
:
{
"currentCoinbase"
:
"2adc25665018aa1fe0e6bc666dac8fc2697ff9ba"
,
"currentDifficulty"
:
"256"
,
"currentGasLimit"
:
"1000000"
,
"currentNumber"
:
"0"
,
"currentTimestamp"
:
"1"
,
"previousHash"
:
"5e20a0453cecd065ea59c37ac63e079ee08998b6045136a8ce6635c7912ec0b6"
},
"exec"
:
{
"address"
:
"0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6"
,
"caller"
:
"cd1722f3947def4cf144679da39c4c32bdc35681"
,
"code"
:
"0x60006000600037600051600055"
,
"data"
:
"0x01234567890abcdef01234567890abcdef"
,
"gas"
:
"100000000000"
,
"gasPrice"
:
"1000000000"
,
"origin"
:
"cd1722f3947def4cf144679da39c4c32bdc35681"
,
"value"
:
"1000000000000000000"
},
"gas"
:
"99999999892"
,
"logs"
:
[
],
"out"
:
"0x"
,
"post"
:
{
"0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6"
:
{
"balance"
:
"1000000000000000000"
,
"code"
:
"0x60006000600037600051600055"
,
"nonce"
:
"0"
,
"storage"
:
{
}
}
},
"pre"
:
{
"0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6"
:
{
"balance"
:
"1000000000000000000"
,
"code"
:
"0x60006000600037600051600055"
,
"nonce"
:
"0"
,
"storage"
:
{
}
}
}
},
"calldatacopy_DataIndexTooHigh"
:
{
"calldatacopy_DataIndexTooHigh"
:
{
"callcreates"
:
[
"callcreates"
:
[
],
],
...
@@ -953,7 +997,7 @@
...
@@ -953,7 +997,7 @@
}
}
}
}
},
},
"codecopy
1
"
:
{
"codecopy
ZeroMemExpansion
"
:
{
"callcreates"
:
[
"callcreates"
:
[
],
],
"env"
:
{
"env"
:
{
...
@@ -967,31 +1011,30 @@
...
@@ -967,31 +1011,30 @@
"exec"
:
{
"exec"
:
{
"address"
:
"0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6"
,
"address"
:
"0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6"
,
"caller"
:
"cd1722f3947def4cf144679da39c4c32bdc35681"
,
"caller"
:
"cd1722f3947def4cf144679da39c4c32bdc35681"
,
"code"
:
"0x
38
6000600039600051600055"
,
"code"
:
"0x
6000
6000600039600051600055"
,
"data"
:
"0x01234567890abcdef01234567890abcdef"
,
"data"
:
"0x01234567890abcdef01234567890abcdef"
,
"gas"
:
"100000000000"
,
"gas"
:
"100000000000"
,
"gasPrice"
:
"1000000000"
,
"gasPrice"
:
"1000000000"
,
"origin"
:
"cd1722f3947def4cf144679da39c4c32bdc35681"
,
"origin"
:
"cd1722f3947def4cf144679da39c4c32bdc35681"
,
"value"
:
"1000000000000000000"
"value"
:
"1000000000000000000"
},
},
"gas"
:
"99999999
691
"
,
"gas"
:
"99999999
892
"
,
"logs"
:
[
"logs"
:
[
],
],
"out"
:
"0x"
,
"out"
:
"0x"
,
"post"
:
{
"post"
:
{
"0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6"
:
{
"0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6"
:
{
"balance"
:
"1000000000000000000"
,
"balance"
:
"1000000000000000000"
,
"code"
:
"0x
38
6000600039600051600055"
,
"code"
:
"0x
6000
6000600039600051600055"
,
"nonce"
:
"0"
,
"nonce"
:
"0"
,
"storage"
:
{
"storage"
:
{
"0x"
:
"0x3860006000396000516000550000000000000000000000000000000000000000"
}
}
}
}
},
},
"pre"
:
{
"pre"
:
{
"0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6"
:
{
"0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6"
:
{
"balance"
:
"1000000000000000000"
,
"balance"
:
"1000000000000000000"
,
"code"
:
"0x
38
6000600039600051600055"
,
"code"
:
"0x
6000
6000600039600051600055"
,
"nonce"
:
"0"
,
"nonce"
:
"0"
,
"storage"
:
{
"storage"
:
{
}
}
...
@@ -1146,6 +1189,64 @@
...
@@ -1146,6 +1189,64 @@
}
}
}
}
},
},
"extcodecopyZeroMemExpansion"
:
{
"callcreates"
:
[
],
"env"
:
{
"currentCoinbase"
:
"2adc25665018aa1fe0e6bc666dac8fc2697ff9ba"
,
"currentDifficulty"
:
"256"
,
"currentGasLimit"
:
"1000000"
,
"currentNumber"
:
"0"
,
"currentTimestamp"
:
"1"
,
"previousHash"
:
"5e20a0453cecd065ea59c37ac63e079ee08998b6045136a8ce6635c7912ec0b6"
},
"exec"
:
{
"address"
:
"0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6"
,
"caller"
:
"cd1722f3947def4cf144679da39c4c32bdc35681"
,
"code"
:
"0x"
,
"data"
:
"0x01234567890abcdef01234567890abcdef"
,
"gas"
:
"100000000000"
,
"gasPrice"
:
"123456789"
,
"origin"
:
"cd1722f3947def4cf144679da39c4c32bdc35681"
,
"value"
:
"1000000000000000000"
},
"gas"
:
"100000000000"
,
"logs"
:
[
],
"out"
:
"0x"
,
"post"
:
{
"0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6"
:
{
"balance"
:
"1000000000000000000"
,
"code"
:
"0x"
,
"nonce"
:
"0"
,
"storage"
:
{
}
},
"cd1722f3947def4cf144679da39c4c32bdc35681"
:
{
"balance"
:
"1000000000000000000"
,
"code"
:
"0x6005600055"
,
"nonce"
:
"0"
,
"storage"
:
{
}
}
},
"pre"
:
{
"0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6"
:
{
"balance"
:
"1000000000000000000"
,
"code"
:
"0x"
,
"nonce"
:
"0"
,
"storage"
:
{
}
},
"cd1722f3947def4cf144679da39c4c32bdc35681"
:
{
"balance"
:
"1000000000000000000"
,
"code"
:
"0x6005600055"
,
"nonce"
:
"0"
,
"storage"
:
{
}
}
}
},
"extcodecopy_DataIndexTooHigh"
:
{
"extcodecopy_DataIndexTooHigh"
:
{
"callcreates"
:
[
"callcreates"
:
[
],
],
...
...
vm/common.go
View file @
f0ec7512
...
@@ -49,7 +49,7 @@ var (
...
@@ -49,7 +49,7 @@ var (
S256
=
ethutil
.
S256
S256
=
ethutil
.
S256
)
)
const
MaxCallDepth
=
102
4
const
MaxCallDepth
=
102
5
func
calcMemSize
(
off
,
l
*
big
.
Int
)
*
big
.
Int
{
func
calcMemSize
(
off
,
l
*
big
.
Int
)
*
big
.
Int
{
if
l
.
Cmp
(
ethutil
.
Big0
)
==
0
{
if
l
.
Cmp
(
ethutil
.
Big0
)
==
0
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment