mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
random state test optmization
This commit is contained in:
parent
5f43489d3d
commit
eb2fd0f521
@ -155,6 +155,7 @@ bool doStateTest(mValue& _v)
|
|||||||
{
|
{
|
||||||
cout << "Missing expected address " << expectedAddr;
|
cout << "Missing expected address " << expectedAddr;
|
||||||
return 1;
|
return 1;
|
||||||
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
if (importer.m_statePost.balance(expectedAddr) != theState.balance(expectedAddr))
|
if (importer.m_statePost.balance(expectedAddr) != theState.balance(expectedAddr))
|
||||||
|
@ -87,10 +87,10 @@ int main(int argc, char *argv[])
|
|||||||
"randomStatetest" : {
|
"randomStatetest" : {
|
||||||
"env" : {
|
"env" : {
|
||||||
"currentCoinbase" : "2adc25665018aa1fe0e6bc666dac8fc2697ff9ba",
|
"currentCoinbase" : "2adc25665018aa1fe0e6bc666dac8fc2697ff9ba",
|
||||||
"currentDifficulty" : "256",
|
"currentDifficulty" : "0x945304eb96065b2a98b57a48a06ae28d285a71b5",
|
||||||
"currentGasLimit" : "1000000",
|
"currentGasLimit" : "115792089237316195423570985008687907853269984665640564039457584007913129639935",
|
||||||
"currentNumber" : "0",
|
"currentNumber" : "0",
|
||||||
"currentTimestamp" : 1,
|
"currentTimestamp" : "1",
|
||||||
"previousHash" : "5e20a0453cecd065ea59c37ac63e079ee08998b6045136a8ce6635c7912ec0b6"
|
"previousHash" : "5e20a0453cecd065ea59c37ac63e079ee08998b6045136a8ce6635c7912ec0b6"
|
||||||
},
|
},
|
||||||
"pre" : {
|
"pre" : {
|
||||||
@ -101,6 +101,13 @@ int main(int argc, char *argv[])
|
|||||||
"storage" : {
|
"storage" : {
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"945304eb96065b2a98b57a48a06ae28d285a71b5" : {
|
||||||
|
"balance" : "46",
|
||||||
|
"code" : "0x6000355415600957005b60203560003555",
|
||||||
|
"nonce" : "0",
|
||||||
|
"storage" : {
|
||||||
|
}
|
||||||
|
},
|
||||||
"a94f5374fce5edbc8e2a8697c15331677e6ebf0b" : {
|
"a94f5374fce5edbc8e2a8697c15331677e6ebf0b" : {
|
||||||
"balance" : "1000000000000000000",
|
"balance" : "1000000000000000000",
|
||||||
"code" : "0x",
|
"code" : "0x",
|
||||||
@ -110,7 +117,7 @@ int main(int argc, char *argv[])
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"transaction" : {
|
"transaction" : {
|
||||||
"data" : "",
|
"data" : "0x42",
|
||||||
"gasLimit" : "400000",
|
"gasLimit" : "400000",
|
||||||
"gasPrice" : "1",
|
"gasPrice" : "1",
|
||||||
"nonce" : "0",
|
"nonce" : "0",
|
||||||
|
@ -389,7 +389,7 @@
|
|||||||
"095e7baea6a6c7c4c2dfeb977efac326af552d87" : {
|
"095e7baea6a6c7c4c2dfeb977efac326af552d87" : {
|
||||||
"balance" : "1000000000000000000",
|
"balance" : "1000000000000000000",
|
||||||
"nonce" : "0",
|
"nonce" : "0",
|
||||||
"code" : "{ (MSTORE 0 0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff) (MSTORE 32 0xaaffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffaa ) [[ 0 ]] (CALL 1000 0x945304eb96065b2a98b57a48a06ae28d285a71b5 23 0 64 64 0) }",
|
"code" : "{ (MSTORE 0 0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff) (MSTORE 32 0xaaffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffaa ) [[ 0 ]] (CALL 100000 0x945304eb96065b2a98b57a48a06ae28d285a71b5 23 0 64 64 0) }",
|
||||||
"storage": {}
|
"storage": {}
|
||||||
},
|
},
|
||||||
"945304eb96065b2a98b57a48a06ae28d285a71b5" : {
|
"945304eb96065b2a98b57a48a06ae28d285a71b5" : {
|
||||||
@ -410,7 +410,7 @@
|
|||||||
"transaction" : {
|
"transaction" : {
|
||||||
"nonce" : "0",
|
"nonce" : "0",
|
||||||
"gasPrice" : "1",
|
"gasPrice" : "1",
|
||||||
"gasLimit" : "30000",
|
"gasLimit" : "300000",
|
||||||
"to" : "095e7baea6a6c7c4c2dfeb977efac326af552d87",
|
"to" : "095e7baea6a6c7c4c2dfeb977efac326af552d87",
|
||||||
"value" : "100000",
|
"value" : "100000",
|
||||||
"secretKey" : "45a915e4d060149eb4365960e6a7a45f334393093061116b197e3240065ff2d8",
|
"secretKey" : "45a915e4d060149eb4365960e6a7a45f334393093061116b197e3240065ff2d8",
|
||||||
|
Loading…
Reference in New Issue
Block a user