From 510ff563639e71224306d9af0e50a28a9d624b8f Mon Sep 17 00:00:00 2001 From: Gav Wood Date: Fri, 21 Feb 2014 18:54:08 +0000 Subject: [PATCH] Updated the tests. --- vmtests.json | 155 +++++++++++++++++++++++++++++++++------------------ 1 file changed, 101 insertions(+), 54 deletions(-) diff --git a/vmtests.json b/vmtests.json index 07f69a671..e344c7af8 100644 --- a/vmtests.json +++ b/vmtests.json @@ -1,56 +1,103 @@ { - "suicide": { - "env" : { - "previousHash" : "5e20a0453cecd065ea59c37ac63e079ee08998b6045136a8ce6635c7912ec0b6", - "previousNonce" : "9c9c6567b5ec0c5f3f25df79be42707090f1e62e9db84cbb556ae2a2f6ccccae", - "currentDifficulty" : "256", - "currentTimestamp" : 1, - "currentCoinbase" : "2adc25665018aa1fe0e6bc666dac8fc2697ff9ba", - "feeMultiplier" : 1 - }, - "pre" : { - "0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : { - "balance" : 1000000000000000000, - "nonce" : 0, - "code" : "(suicide (txsender))" - } - }, - "exec" : [ - { - "address" : "0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6", - "sender" : "cd1722f3947def4cf144679da39c4c32bdc35681", - "value" : 1000000000000000000, - "data" : [ - ] - } - ] - }, - - "mktx": { - "env" : { - "previousHash" : "5e20a0453cecd065ea59c37ac63e079ee08998b6045136a8ce6635c7912ec0b6", - "previousNonce" : "9c9c6567b5ec0c5f3f25df79be42707090f1e62e9db84cbb556ae2a2f6ccccae", - "currentDifficulty" : "256", - "currentTimestamp" : 1, - "currentCoinbase" : "2adc25665018aa1fe0e6bc666dac8fc2697ff9ba", - "feeMultiplier" : 1 - }, - "pre" : { - "0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : { - "balance" : 1000000000000000000, - "nonce" : 0, - "code" : "(mktx (txsender) (txvalue) 0)" - } - }, - "exec" : [ - { - "address" : "0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6", - "sender" : "cd1722f3947def4cf144679da39c4c32bdc35681", - "value" : 1000000000000000000, - "data" : [ - ] - } - ] - } - + "mktx" : { + "env" : { + "currentCoinbase" : "2adc25665018aa1fe0e6bc666dac8fc2697ff9ba", + "currentDifficulty" : "256", + "currentTimestamp" : 1, + "feeMultiplier" : 1, + "previousHash" : "5e20a0453cecd065ea59c37ac63e079ee08998b6045136a8ce6635c7912ec0b6", + "previousNonce" : "9c9c6567b5ec0c5f3f25df79be42707090f1e62e9db84cbb556ae2a2f6ccccae" + }, + "exec" : [ + { + "address" : "0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6", + "data" : [ + ], + "sender" : "cd1722f3947def4cf144679da39c4c32bdc35681", + "value" : 1000000000000000000 + } + ], + "post" : { + "0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : { + "balance" : 999999999999999900, + "extroPrice" : 0, + "nonce" : 0, + "store" : { + "0" : [ + 48, + 0, + 18, + 17, + 61, + 0 + ] + } + } + }, + "pre" : { + "0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : { + "balance" : 1000000000000000000, + "extroPrice" : 0, + "nonce" : 0, + "store" : { + "0" : [ + 48, + 0, + 18, + 17, + 61 + ] + } + } + }, + "txs" : [ + { + "data" : [ + ], + "destination" : "cd1722f3947def4cf144679da39c4c32bdc35681", + "value" : 1000000000000000000 + } + ] + }, + "suicide" : { + "env" : { + "currentCoinbase" : "2adc25665018aa1fe0e6bc666dac8fc2697ff9ba", + "currentDifficulty" : "256", + "currentTimestamp" : 1, + "feeMultiplier" : 1, + "previousHash" : "5e20a0453cecd065ea59c37ac63e079ee08998b6045136a8ce6635c7912ec0b6", + "previousNonce" : "9c9c6567b5ec0c5f3f25df79be42707090f1e62e9db84cbb556ae2a2f6ccccae" + }, + "exec" : [ + { + "address" : "0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6", + "data" : [ + ], + "sender" : "cd1722f3947def4cf144679da39c4c32bdc35681", + "value" : 1000000000000000000 + } + ], + "post" : { + "cd1722f3947def4cf144679da39c4c32bdc35681" : { + "balance" : 1000000000000000010, + "extroPrice" : 0, + "nonce" : 0 + } + }, + "pre" : { + "0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : { + "balance" : 1000000000000000000, + "extroPrice" : 0, + "nonce" : 0, + "store" : { + "0" : [ + 17, + 63 + ] + } + } + }, + "txs" : [ + ] + } }