Fix RLP tests.

This commit is contained in:
Gav Wood 2014-02-28 11:22:49 +00:00
parent f87ce15ad2
commit e1f5e12abb
2 changed files with 808 additions and 284 deletions

View File

@ -5,11 +5,11 @@
}, },
"shortstring": { "shortstring": {
"in": "dog", "in": "dog",
"out": "43646f67" "out": "83646f67"
}, },
"longstring": { "longstring": {
"in": "Lorem ipsum dolor sit amet, consectetur adipisicing elit", "in": "Lorem ipsum dolor sit amet, consectetur adipisicing elit",
"out": "TODO" "out": "b8384c6f72656d20697073756d20646f6c6f722073697420616d65742c20636f6e7365637465747572206164697069736963696e6720656c6974"
}, },
"zero": { "zero": {
"in": 0, "in": 0,
@ -23,24 +23,24 @@
"in": 1000, "in": 1000,
"out": "8203e8" "out": "8203e8"
}, },
"bigint": {
"in": 115792089237316195423570985008687907853269984665640564039457584007913129639936,
"out": "3821010000000000000000000000000000000000000000000000000000000000000000"
},
"emptylist": { "emptylist": {
"in": [], "in": [],
"out": "c0" "out": "c0"
}, },
"stringlist": { "stringlist": {
"in": [ "dog", "god", "cat" ], "in": [ "dog", "god", "cat" ],
"out": "8343646f6743676f6443636174" "out": "cc83646f6783676f6483636174"
}, },
"multilist": { "multilist": {
"in": [ "zw", [ 4 ], 1 ], "in": [ "zw", [ 4 ], 1 ],
"out": "TODO" "out": "c6827a77c10401"
}, },
"listsoflists": { "listsoflists": {
"in": [ [ [], [] ], [] ], "in": [ [ [], [] ], [] ],
"out": "c2c2c0c0c0" "out": "c4c2c0c0c0"
},
"xbigint": {
"in": 115792089237316195423570985008687907853269984665640564039457584007913129639936,
"out": "3821010000000000000000000000000000000000000000000000000000000000000000"
} }
} }

View File

@ -1,4 +1,528 @@
{ {
"arith" : {
"env" : {
"currentCoinbase" : "2adc25665018aa1fe0e6bc666dac8fc2697ff9ba",
"currentDifficulty" : "256",
"currentTimestamp" : 1,
"feeMultiplier" : 1,
"previousHash" : "5e20a0453cecd065ea59c37ac63e079ee08998b6045136a8ce6635c7912ec0b6",
"previousNonce" : "9c9c6567b5ec0c5f3f25df79be42707090f1e62e9db84cbb556ae2a2f6ccccae"
},
"exec" : [
{
"address" : "0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6",
"data" : [
],
"sender" : "cd1722f3947def4cf144679da39c4c32bdc35681",
"value" : 1000000000000000000
}
],
"post" : {
"0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : {
"balance" : 999999999999999810,
"extroPrice" : 0,
"nonce" : 1,
"store" : {
"0" : [
48,
0,
48,
2,
48,
2,
1,
48,
4,
48,
4,
2,
48,
4,
2,
1,
48,
2,
48,
2,
4,
1,
48,
3,
48,
2,
6,
1,
48,
8,
48,
2,
3,
48,
2,
3,
1,
17,
61,
0
]
}
}
},
"pre" : {
"0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : {
"balance" : 1000000000000000000,
"extroPrice" : 0,
"nonce" : 0,
"store" : {
"0" : [
48,
0,
48,
2,
48,
2,
1,
48,
4,
48,
4,
2,
48,
4,
2,
1,
48,
2,
48,
2,
4,
1,
48,
3,
48,
2,
6,
1,
48,
8,
48,
2,
3,
48,
2,
3,
1,
17,
61
]
}
}
},
"txs" : [
{
"data" : [
],
"destination" : "cd1722f3947def4cf144679da39c4c32bdc35681",
"value" : 79
}
]
},
"boolean" : {
"env" : {
"currentCoinbase" : "2adc25665018aa1fe0e6bc666dac8fc2697ff9ba",
"currentDifficulty" : "256",
"currentTimestamp" : 1,
"feeMultiplier" : 1,
"previousHash" : "5e20a0453cecd065ea59c37ac63e079ee08998b6045136a8ce6635c7912ec0b6",
"previousNonce" : "9c9c6567b5ec0c5f3f25df79be42707090f1e62e9db84cbb556ae2a2f6ccccae"
},
"exec" : [
{
"address" : "0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6",
"data" : [
],
"sender" : "cd1722f3947def4cf144679da39c4c32bdc35681",
"value" : 1000000000000000000
}
],
"post" : {
"0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : {
"balance" : 999999999999999490,
"extroPrice" : 0,
"nonce" : 4,
"store" : {
"0" : [
48,
21,
48,
0,
48,
13,
48,
1,
15,
57,
49,
48,
1,
15,
57,
48,
0,
48,
2,
17,
61,
48,
42,
48,
0,
48,
34,
48,
1,
15,
57,
49,
48,
0,
15,
57,
48,
0,
48,
3,
17,
61,
48,
63,
48,
0,
48,
55,
48,
0,
15,
57,
49,
48,
1,
15,
57,
48,
0,
48,
4,
17,
61,
48,
84,
48,
0,
48,
76,
48,
0,
15,
57,
49,
48,
0,
15,
57,
48,
0,
48,
5,
17,
61,
48,
104,
48,
1,
48,
96,
48,
1,
57,
49,
48,
1,
15,
57,
48,
0,
48,
12,
17,
61,
48,
124,
48,
1,
48,
116,
48,
1,
57,
49,
48,
0,
15,
57,
48,
0,
48,
13,
17,
61,
48,
144,
48,
1,
48,
136,
48,
0,
57,
49,
48,
1,
15,
57,
48,
0,
48,
14,
17,
61,
48,
164,
48,
1,
48,
156,
48,
0,
57,
49,
48,
0,
15,
57,
48,
0,
48,
15,
17,
61,
0
]
}
}
},
"pre" : {
"0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : {
"balance" : 1000000000000000000,
"extroPrice" : 0,
"nonce" : 0,
"store" : {
"0" : [
48,
21,
48,
0,
48,
13,
48,
1,
15,
57,
49,
48,
1,
15,
57,
48,
0,
48,
2,
17,
61,
48,
42,
48,
0,
48,
34,
48,
1,
15,
57,
49,
48,
0,
15,
57,
48,
0,
48,
3,
17,
61,
48,
63,
48,
0,
48,
55,
48,
0,
15,
57,
49,
48,
1,
15,
57,
48,
0,
48,
4,
17,
61,
48,
84,
48,
0,
48,
76,
48,
0,
15,
57,
49,
48,
0,
15,
57,
48,
0,
48,
5,
17,
61,
48,
104,
48,
1,
48,
96,
48,
1,
57,
49,
48,
1,
15,
57,
48,
0,
48,
12,
17,
61,
48,
124,
48,
1,
48,
116,
48,
1,
57,
49,
48,
0,
15,
57,
48,
0,
48,
13,
17,
61,
48,
144,
48,
1,
48,
136,
48,
0,
57,
49,
48,
1,
15,
57,
48,
0,
48,
14,
17,
61,
48,
164,
48,
1,
48,
156,
48,
0,
57,
49,
48,
0,
15,
57,
48,
0,
48,
15,
17,
61
]
}
}
},
"txs" : [
{
"data" : [
],
"destination" : "cd1722f3947def4cf144679da39c4c32bdc35681",
"value" : 2
},
{
"data" : [
],
"destination" : "cd1722f3947def4cf144679da39c4c32bdc35681",
"value" : 12
},
{
"data" : [
],
"destination" : "cd1722f3947def4cf144679da39c4c32bdc35681",
"value" : 13
},
{
"data" : [
],
"destination" : "cd1722f3947def4cf144679da39c4c32bdc35681",
"value" : 14
}
]
},
"fan" : { "fan" : {
"env" : { "env" : {
"currentCoinbase" : "2adc25665018aa1fe0e6bc666dac8fc2697ff9ba", "currentCoinbase" : "2adc25665018aa1fe0e6bc666dac8fc2697ff9ba",