VM tests.

This commit is contained in:
Gav Wood 2014-05-30 17:50:18 +02:00
parent e1ae4ad449
commit a2257f3471

View File

@ -3,14 +3,10 @@
"callcreates" : [ "callcreates" : [
{ {
"data" : [ "data" : [
0,
0,
0,
0
], ],
"destination" : "cd1722f3947def4cf144679da39c4c32bdc35681", "destination" : "cd1722f3947def4cf144679da39c4c32bdc35681",
"gasLimit" : 9776, "gasLimit" : 9792,
"value" : 4 "value" : 74
} }
], ],
"env" : { "env" : {
@ -20,7 +16,6 @@
"currentGasLimit" : "1000000", "currentGasLimit" : "1000000",
"currentNumber" : "0", "currentNumber" : "0",
"currentTimestamp" : 1, "currentTimestamp" : 1,
"gasLimit" : null,
"previousHash" : "5e20a0453cecd065ea59c37ac63e079ee08998b6045136a8ce6635c7912ec0b6" "previousHash" : "5e20a0453cecd065ea59c37ac63e079ee08998b6045136a8ce6635c7912ec0b6"
}, },
"exec" : [ "exec" : [
@ -34,32 +29,12 @@
"value" : "1000000000000000000" "value" : "1000000000000000000"
} }
], ],
"gas" : 9954, "gas" : 9971,
"out" : [ "out" : [
], ],
"post" : { "post" : {
"0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : { "0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : {
"balance" : 999999999999999992, "balance" : 999999999999999852,
"nonce" : 1,
"storage" : {
}
},
"cd1722f3947def4cf144679da39c4c32bdc35681" : {
"balance" : 4,
"nonce" : 0,
"storage" : {
}
},
"code" : [
]
},
"pre" : {
"0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : {
"balance" : 1000000000000000000,
"nonce" : 0,
"storage" : {
}
},
"code" : [ "code" : [
96, 96,
0, 0,
@ -70,41 +45,52 @@
96, 96,
0, 0,
96, 96,
2, 74,
96,
2,
96,
8,
3,
96,
2,
96,
3,
6,
96,
2,
96,
2,
4,
96,
4,
96,
4,
96,
4,
2,
96,
2,
96,
2,
1,
51, 51,
96, 96,
200, 200,
92, 92,
3, 3,
241 241
] ],
"nonce" : 1,
"storage" : {
}
},
"cd1722f3947def4cf144679da39c4c32bdc35681" : {
"balance" : 74,
"code" : [
],
"nonce" : 0,
"storage" : {
}
}
},
"pre" : {
"0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : {
"balance" : 1000000000000000000,
"code" : [
96,
0,
96,
0,
96,
0,
96,
0,
96,
74,
51,
96,
200,
92,
3,
241
],
"nonce" : 0,
"storage" : {
}
}
} }
}, },
"boolean" : { "boolean" : {
@ -145,7 +131,6 @@
"currentGasLimit" : "1000000", "currentGasLimit" : "1000000",
"currentNumber" : "0", "currentNumber" : "0",
"currentTimestamp" : 1, "currentTimestamp" : 1,
"gasLimit" : null,
"previousHash" : "5e20a0453cecd065ea59c37ac63e079ee08998b6045136a8ce6635c7912ec0b6" "previousHash" : "5e20a0453cecd065ea59c37ac63e079ee08998b6045136a8ce6635c7912ec0b6"
}, },
"exec" : [ "exec" : [
@ -165,26 +150,6 @@
"post" : { "post" : {
"0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : { "0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : {
"balance" : 999999999999999918, "balance" : 999999999999999918,
"nonce" : 4,
"storage" : {
}
},
"cd1722f3947def4cf144679da39c4c32bdc35681" : {
"balance" : 41,
"nonce" : 0,
"storage" : {
}
},
"code" : [
]
},
"pre" : {
"0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : {
"balance" : 1000000000000000000,
"nonce" : 0,
"storage" : {
}
},
"code" : [ "code" : [
96, 96,
1, 1,
@ -192,11 +157,8 @@
1, 1,
16, 16,
15, 15,
99, 96,
0, 26,
0,
0,
29,
89, 89,
96, 96,
0, 0,
@ -221,11 +183,8 @@
1, 1,
16, 16,
15, 15,
99, 96,
0, 52,
0,
0,
58,
89, 89,
96, 96,
0, 0,
@ -250,11 +209,8 @@
0, 0,
16, 16,
15, 15,
99, 96,
0, 78,
0,
0,
87,
89, 89,
96, 96,
0, 0,
@ -279,11 +235,8 @@
0, 0,
16, 16,
15, 15,
99, 96,
0, 104,
0,
0,
116,
89, 89,
96, 96,
0, 0,
@ -308,11 +261,8 @@
1, 1,
17, 17,
15, 15,
99, 96,
0, 130,
0,
0,
145,
89, 89,
96, 96,
0, 0,
@ -337,11 +287,8 @@
1, 1,
17, 17,
15, 15,
99, 96,
0, 156,
0,
0,
174,
89, 89,
96, 96,
0, 0,
@ -366,11 +313,8 @@
0, 0,
17, 17,
15, 15,
99, 96,
0, 182,
0,
0,
203,
89, 89,
96, 96,
0, 0,
@ -395,11 +339,8 @@
0, 0,
17, 17,
15, 15,
99, 96,
0, 208,
0,
0,
232,
89, 89,
96, 96,
0, 0,
@ -418,7 +359,237 @@
3, 3,
241, 241,
80 80
] ],
"nonce" : 4,
"storage" : {
}
},
"cd1722f3947def4cf144679da39c4c32bdc35681" : {
"balance" : 41,
"code" : [
],
"nonce" : 0,
"storage" : {
}
}
},
"pre" : {
"0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : {
"balance" : 1000000000000000000,
"code" : [
96,
1,
96,
1,
16,
15,
96,
26,
89,
96,
0,
96,
0,
96,
0,
96,
0,
96,
2,
51,
96,
200,
92,
3,
241,
80,
96,
0,
96,
1,
16,
15,
96,
52,
89,
96,
0,
96,
0,
96,
0,
96,
0,
96,
3,
51,
96,
200,
92,
3,
241,
80,
96,
1,
96,
0,
16,
15,
96,
78,
89,
96,
0,
96,
0,
96,
0,
96,
0,
96,
4,
51,
96,
200,
92,
3,
241,
80,
96,
0,
96,
0,
16,
15,
96,
104,
89,
96,
0,
96,
0,
96,
0,
96,
0,
96,
5,
51,
96,
200,
92,
3,
241,
80,
96,
1,
96,
1,
17,
15,
96,
130,
89,
96,
0,
96,
0,
96,
0,
96,
0,
96,
12,
51,
96,
200,
92,
3,
241,
80,
96,
0,
96,
1,
17,
15,
96,
156,
89,
96,
0,
96,
0,
96,
0,
96,
0,
96,
13,
51,
96,
200,
92,
3,
241,
80,
96,
1,
96,
0,
17,
15,
96,
182,
89,
96,
0,
96,
0,
96,
0,
96,
0,
96,
14,
51,
96,
200,
92,
3,
241,
80,
96,
0,
96,
0,
17,
15,
96,
208,
89,
96,
0,
96,
0,
96,
0,
96,
0,
96,
15,
51,
96,
200,
92,
3,
241,
80
],
"nonce" : 0,
"storage" : {
}
}
} }
}, },
"mktx" : { "mktx" : {
@ -438,7 +609,6 @@
"currentGasLimit" : "1000000", "currentGasLimit" : "1000000",
"currentNumber" : "0", "currentNumber" : "0",
"currentTimestamp" : 1, "currentTimestamp" : 1,
"gasLimit" : null,
"previousHash" : "5e20a0453cecd065ea59c37ac63e079ee08998b6045136a8ce6635c7912ec0b6" "previousHash" : "5e20a0453cecd065ea59c37ac63e079ee08998b6045136a8ce6635c7912ec0b6"
}, },
"exec" : [ "exec" : [
@ -458,26 +628,6 @@
"post" : { "post" : {
"0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : { "0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : {
"balance" : 0, "balance" : 0,
"nonce" : 1,
"storage" : {
}
},
"cd1722f3947def4cf144679da39c4c32bdc35681" : {
"balance" : 500000000000000000,
"nonce" : 0,
"storage" : {
}
},
"code" : [
]
},
"pre" : {
"0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : {
"balance" : 1000000000000000000,
"nonce" : 0,
"storage" : {
}
},
"code" : [ "code" : [
96, 96,
0, 0,
@ -502,7 +652,52 @@
92, 92,
3, 3,
241 241
] ],
"nonce" : 1,
"storage" : {
}
},
"cd1722f3947def4cf144679da39c4c32bdc35681" : {
"balance" : 500000000000000000,
"code" : [
],
"nonce" : 0,
"storage" : {
}
}
},
"pre" : {
"0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : {
"balance" : 1000000000000000000,
"code" : [
96,
0,
96,
0,
96,
0,
96,
0,
103,
6,
240,
91,
89,
211,
178,
0,
0,
51,
96,
200,
92,
3,
241
],
"nonce" : 0,
"storage" : {
}
}
} }
}, },
"suicide" : { "suicide" : {
@ -515,7 +710,6 @@
"currentGasLimit" : "1000000", "currentGasLimit" : "1000000",
"currentNumber" : "0", "currentNumber" : "0",
"currentTimestamp" : 1, "currentTimestamp" : 1,
"gasLimit" : null,
"previousHash" : "5e20a0453cecd065ea59c37ac63e079ee08998b6045136a8ce6635c7912ec0b6" "previousHash" : "5e20a0453cecd065ea59c37ac63e079ee08998b6045136a8ce6635c7912ec0b6"
}, },
"exec" : [ "exec" : [
@ -535,24 +729,24 @@
"post" : { "post" : {
"cd1722f3947def4cf144679da39c4c32bdc35681" : { "cd1722f3947def4cf144679da39c4c32bdc35681" : {
"balance" : 1000000000000000000, "balance" : 1000000000000000000,
"code" : [
],
"nonce" : 0, "nonce" : 0,
"storage" : { "storage" : {
} }
}, }
"code" : [
]
}, },
"pre" : { "pre" : {
"0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : { "0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : {
"balance" : 1000000000000000000, "balance" : 1000000000000000000,
"nonce" : 0,
"storage" : {
}
},
"code" : [ "code" : [
51, 51,
255 255
] ],
"nonce" : 0,
"storage" : {
}
}
} }
} }
} }