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
ae9e9efa
Commit
ae9e9efa
authored
Nov 23, 2015
by
Gustav-Simonsson
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1991 from Gustav-Simonsson/common_tests
Update common test files
parents
6bb29aeb
220b0bf6
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
865 additions
and
39 deletions
+865
-39
bcStateTest.json
tests/files/BlockchainTests/bcStateTest.json
+666
-39
stPreCompiledContracts.json
tests/files/StateTests/stPreCompiledContracts.json
+144
-0
stSystemOperationsTest.json
tests/files/StateTests/stSystemOperationsTest.json
+55
-0
No files found.
tests/files/BlockchainTests/bcStateTest.json
View file @
ae9e9efa
This diff is collapsed.
Click to expand it.
tests/files/StateTests/stPreCompiledContracts.json
View file @
ae9e9efa
...
@@ -3498,6 +3498,150 @@
...
@@ -3498,6 +3498,150 @@
"value"
:
"0x0186a0"
"value"
:
"0x0186a0"
}
}
},
},
"CallEcrecoverCheckLength"
:
{
"env"
:
{
"currentCoinbase"
:
"2adc25665018aa1fe0e6bc666dac8fc2697ff9ba"
,
"currentDifficulty"
:
"0x0100"
,
"currentGasLimit"
:
"0x989680"
,
"currentNumber"
:
"0x00"
,
"currentTimestamp"
:
"0x01"
,
"previousHash"
:
"5e20a0453cecd065ea59c37ac63e079ee08998b6045136a8ce6635c7912ec0b6"
},
"logs"
:
[
],
"out"
:
"0x"
,
"post"
:
{
"0000000000000000000000000000000000000001"
:
{
"balance"
:
"0x00"
,
"code"
:
"0x"
,
"nonce"
:
"0x00"
,
"storage"
:
{
}
},
"095e7baea6a6c7c4c2dfeb977efac326af552d87"
:
{
"balance"
:
"0x0132b3a0"
,
"code"
:
"0x7f11223344556677889900112233445566778899001122334455667788990011226080527f18c547e4f7b0f325ad1e56f57e26c745b09a3e503d86e00e5255ff7f715d3d1c600052601c6020527f73b1693892219d736caba55bdb67216e485557ea6b6af75f37096c9aa6a5a75f6040527feeb940b1d03b21e36b0e47e79769f095fe2ab855bd91e3a38756b7d75a9c4549606052602060806080600060006001620493e0f16002556080516000556080600155"
,
"nonce"
:
"0x00"
,
"storage"
:
{
"0x00"
:
"0xa94f5374fce5edbc8e2a8697c15331677e6ebf0b"
,
"0x01"
:
"0x80"
,
"0x02"
:
"0x01"
}
},
"2adc25665018aa1fe0e6bc666dac8fc2697ff9ba"
:
{
"balance"
:
"0x01aa53"
,
"code"
:
"0x"
,
"nonce"
:
"0x00"
,
"storage"
:
{
}
},
"a94f5374fce5edbc8e2a8697c15331677e6ebf0b"
:
{
"balance"
:
"0x0de0b6b3a760cf0d"
,
"code"
:
"0x"
,
"nonce"
:
"0x01"
,
"storage"
:
{
}
}
},
"postStateRoot"
:
"64f7a0ea764350db949d9a9f9ec5e5400acef5bad92ed340011266791ad5b74b"
,
"pre"
:
{
"095e7baea6a6c7c4c2dfeb977efac326af552d87"
:
{
"balance"
:
"0x01312d00"
,
"code"
:
"0x7f11223344556677889900112233445566778899001122334455667788990011226080527f18c547e4f7b0f325ad1e56f57e26c745b09a3e503d86e00e5255ff7f715d3d1c600052601c6020527f73b1693892219d736caba55bdb67216e485557ea6b6af75f37096c9aa6a5a75f6040527feeb940b1d03b21e36b0e47e79769f095fe2ab855bd91e3a38756b7d75a9c4549606052602060806080600060006001620493e0f16002556080516000556080600155"
,
"nonce"
:
"0x00"
,
"storage"
:
{
}
},
"a94f5374fce5edbc8e2a8697c15331677e6ebf0b"
:
{
"balance"
:
"0x0de0b6b3a7640000"
,
"code"
:
"0x"
,
"nonce"
:
"0x00"
,
"storage"
:
{
}
}
},
"transaction"
:
{
"data"
:
""
,
"gasLimit"
:
"0x37ba90"
,
"gasPrice"
:
"0x01"
,
"nonce"
:
"0x00"
,
"secretKey"
:
"45a915e4d060149eb4365960e6a7a45f334393093061116b197e3240065ff2d8"
,
"to"
:
"095e7baea6a6c7c4c2dfeb977efac326af552d87"
,
"value"
:
"0x0186a0"
}
},
"CallEcrecoverCheckLengthWrongV"
:
{
"env"
:
{
"currentCoinbase"
:
"2adc25665018aa1fe0e6bc666dac8fc2697ff9ba"
,
"currentDifficulty"
:
"0x0100"
,
"currentGasLimit"
:
"0x989680"
,
"currentNumber"
:
"0x00"
,
"currentTimestamp"
:
"0x01"
,
"previousHash"
:
"5e20a0453cecd065ea59c37ac63e079ee08998b6045136a8ce6635c7912ec0b6"
},
"logs"
:
[
],
"out"
:
"0x"
,
"post"
:
{
"0000000000000000000000000000000000000001"
:
{
"balance"
:
"0x00"
,
"code"
:
"0x"
,
"nonce"
:
"0x00"
,
"storage"
:
{
}
},
"095e7baea6a6c7c4c2dfeb977efac326af552d87"
:
{
"balance"
:
"0x0132b3a0"
,
"code"
:
"0x7f11223344556677889900112233445566778899001122334455667788990011226080527f18c547e4f7b0f325ad1e56f57e26c745b09a3e503d86e00e5255ff7f715d3d1c600052601d6020527f73b1693892219d736caba55bdb67216e485557ea6b6af75f37096c9aa6a5a75f6040527feeb940b1d03b21e36b0e47e79769f095fe2ab855bd91e3a38756b7d75a9c4549606052602060806080600060006001620493e0f16002556080516000556080600155"
,
"nonce"
:
"0x00"
,
"storage"
:
{
"0x00"
:
"0x1122334455667788990011223344556677889900112233445566778899001122"
,
"0x01"
:
"0x80"
,
"0x02"
:
"0x01"
}
},
"2adc25665018aa1fe0e6bc666dac8fc2697ff9ba"
:
{
"balance"
:
"0x01aa53"
,
"code"
:
"0x"
,
"nonce"
:
"0x00"
,
"storage"
:
{
}
},
"a94f5374fce5edbc8e2a8697c15331677e6ebf0b"
:
{
"balance"
:
"0x0de0b6b3a760cf0d"
,
"code"
:
"0x"
,
"nonce"
:
"0x01"
,
"storage"
:
{
}
}
},
"postStateRoot"
:
"67af1f3bd8f8619c936e56b87b5910c8beeb8035be00fddeeb3346a5aa31e230"
,
"pre"
:
{
"095e7baea6a6c7c4c2dfeb977efac326af552d87"
:
{
"balance"
:
"0x01312d00"
,
"code"
:
"0x7f11223344556677889900112233445566778899001122334455667788990011226080527f18c547e4f7b0f325ad1e56f57e26c745b09a3e503d86e00e5255ff7f715d3d1c600052601d6020527f73b1693892219d736caba55bdb67216e485557ea6b6af75f37096c9aa6a5a75f6040527feeb940b1d03b21e36b0e47e79769f095fe2ab855bd91e3a38756b7d75a9c4549606052602060806080600060006001620493e0f16002556080516000556080600155"
,
"nonce"
:
"0x00"
,
"storage"
:
{
}
},
"a94f5374fce5edbc8e2a8697c15331677e6ebf0b"
:
{
"balance"
:
"0x0de0b6b3a7640000"
,
"code"
:
"0x"
,
"nonce"
:
"0x00"
,
"storage"
:
{
}
}
},
"transaction"
:
{
"data"
:
""
,
"gasLimit"
:
"0x37ba90"
,
"gasPrice"
:
"0x01"
,
"nonce"
:
"0x00"
,
"secretKey"
:
"45a915e4d060149eb4365960e6a7a45f334393093061116b197e3240065ff2d8"
,
"to"
:
"095e7baea6a6c7c4c2dfeb977efac326af552d87"
,
"value"
:
"0x0186a0"
}
},
"CallEcrecoverH_prefixed0"
:
{
"CallEcrecoverH_prefixed0"
:
{
"env"
:
{
"env"
:
{
"currentCoinbase"
:
"2adc25665018aa1fe0e6bc666dac8fc2697ff9ba"
,
"currentCoinbase"
:
"2adc25665018aa1fe0e6bc666dac8fc2697ff9ba"
,
...
...
tests/files/StateTests/stSystemOperationsTest.json
View file @
ae9e9efa
...
@@ -18676,6 +18676,61 @@
...
@@ -18676,6 +18676,61 @@
"value" : "0x0186a0"
"value" : "0x0186a0"
}
}
},
},
"suicideSendEtherPostDeath" : {
"env" : {
"currentCoinbase" : "2adc25665018aa1fe0e6bc666dac8fc2697ff9ba",
"currentDifficulty" : "0x0100",
"currentGasLimit" : "0x989680",
"currentNumber" : "0x00",
"currentTimestamp" : "0x01",
"previousHash" : "5e20a0453cecd065ea59c37ac63e079ee08998b6045136a8ce6635c7912ec0b6"
},
"logs" : [
],
"out" : "0x0000000000000000000000000000000000000000000000000000000000000000",
"post" : {
"2adc25665018aa1fe0e6bc666dac8fc2697ff9ba" : {
"balance" : "0x2aa8",
"code" : "0x",
"nonce" : "0x00",
"storage" : {
}
},
"a94f5374fce5edbc8e2a8697c15331677e6ebf0b" : {
"balance" : "0x0de0b6b3a7624eb8",
"code" : "0x",
"nonce" : "0x01",
"storage" : {
}
}
},
"postStateRoot" : "9f3c63ff818c14e4b56e5fa1fc03a76725f598bcac256668185ec51dfc1d7f5f",
"pre" : {
"095e7baea6a6c7c4c2dfeb977efac326af552d87" : {
"balance" : "0x0de0b6b3a7640000",
"code" : "0x60606040526000357c01000000000000000000000000000000000000000000000000000000009004806335f46994146100445780634d536fe31461005157610042565b005b61004f600450610072565b005b61005c60045061008d565b6040518082815260200191505060405180910390f35b3073ffffffffffffffffffffffffffffffffffffffff16ff5b565b600060003073ffffffffffffffffffffffffffffffffffffffff166335f46994604051817c01000000000000000000000000000000000000000000000000000000000281526004018090506000604051808303816000876161da5a03f115610002575050503073ffffffffffffffffffffffffffffffffffffffff163190503373ffffffffffffffffffffffffffffffffffffffff16600082604051809050600060405180830381858888f1935050505050809150610147565b509056",
"nonce" : "0x00",
"storage" : {
}
},
"a94f5374fce5edbc8e2a8697c15331677e6ebf0b" : {
"balance" : "0x0de0b6b3a7640000",
"code" : "0x",
"nonce" : "0x00",
"storage" : {
}
}
},
"transaction" : {
"data" : "0x4d536fe3",
"gasLimit" : "0x2dc6c0",
"gasPrice" : "0x01",
"nonce" : "0x00",
"secretKey" : "45a915e4d060149eb4365960e6a7a45f334393093061116b197e3240065ff2d8",
"to" : "095e7baea6a6c7c4c2dfeb977efac326af552d87",
"value" : "0x0186a0"
}
},
"suicideSendEtherToMe" : {
"suicideSendEtherToMe" : {
"env" : {
"env" : {
"currentCoinbase" : "2adc25665018aa1fe0e6bc666dac8fc2697ff9ba",
"currentCoinbase" : "2adc25665018aa1fe0e6bc666dac8fc2697ff9ba",
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