diff options
author | Dimitry <winsvega@mail.ru> | 2017-07-01 05:04:11 +0800 |
---|---|---|
committer | Dimitry <winsvega@mail.ru> | 2017-07-03 21:41:54 +0800 |
commit | 7d843b93f034f74efaf1d30a3019cca8700896c3 (patch) | |
tree | a32b498bb856b19a02185d55cdcb1a3f0a229eb3 /src/BlockchainTestsFiller/bcStateTests | |
parent | 37d74dfff152154adec9eecd6f7af6bbb14e6a5d (diff) | |
download | dexon-tests-7d843b93f034f74efaf1d30a3019cca8700896c3.tar dexon-tests-7d843b93f034f74efaf1d30a3019cca8700896c3.tar.gz dexon-tests-7d843b93f034f74efaf1d30a3019cca8700896c3.tar.bz2 dexon-tests-7d843b93f034f74efaf1d30a3019cca8700896c3.tar.lz dexon-tests-7d843b93f034f74efaf1d30a3019cca8700896c3.tar.xz dexon-tests-7d843b93f034f74efaf1d30a3019cca8700896c3.tar.zst dexon-tests-7d843b93f034f74efaf1d30a3019cca8700896c3.zip |
convert more bctests
Diffstat (limited to 'src/BlockchainTestsFiller/bcStateTests')
-rw-r--r-- | src/BlockchainTestsFiller/bcStateTests/BLOCKHASH_BoundsFiller.json | 121 | ||||
-rw-r--r-- | src/BlockchainTestsFiller/bcStateTests/BadStateRootTxBCFiller.json | 82 |
2 files changed, 203 insertions, 0 deletions
diff --git a/src/BlockchainTestsFiller/bcStateTests/BLOCKHASH_BoundsFiller.json b/src/BlockchainTestsFiller/bcStateTests/BLOCKHASH_BoundsFiller.json new file mode 100644 index 000000000..9f7ac1418 --- /dev/null +++ b/src/BlockchainTestsFiller/bcStateTests/BLOCKHASH_BoundsFiller.json @@ -0,0 +1,121 @@ +{ + "BLOCKHASH_Bounds" : { + "blocks" : [ + { + "blockHeaderPremine" : { + "difficulty" : "0x020000", + "gasLimit" : "0x7fffffffffffffff", + "timestamp" : "0x03e8", + "updatePoW" : "1" + }, + "transactions" : [ + { + "data" : "", + "gasLimit" : "0x0249f0", + "gasPrice" : "0x01", + "nonce" : "0x00", + "r" : "0xa8d69db5cc7b988975447a2e77fa471a04e8738915df60767b3104a95bf95c1a", + "s" : "0x30d6d7f9cd259c5937c46412312a382eabaf62794a7f6d6183891f864057feec", + "to" : "0x1000000000000000000000000000000000000000", + "v" : "0x1b", + "value" : "0x01" + }, + { + "data" : "", + "gasLimit" : "0x0f4240", + "gasPrice" : "0x01", + "nonce" : "0x00", + "r" : "0x3e25058b9043ef9130f5423b04831a80989f086dacf5ff8468da47b0790086d7", + "s" : "0x4115beb874eee5f516fd60c91471249bde75186e260632ebf3567b7f05b3ea40", + "to" : "0x1000000000000000000000000000000000000001", + "v" : "0x1b", + "value" : "0x01" + }, + { + "data" : "", + "gasLimit" : "0x0ee6b280", + "gasPrice" : "0x01", + "nonce" : "0x00", + "r" : "0xb4d82d934cb8d0b959b87a51e42cd51d560d24a71047b2127e78830404837662", + "s" : "0x0e7c42d2e4ce666564a232a4705cf6e43a2bcf29ecbd7db39a21484d01383e75", + "to" : "0x1000000000000000000000000000000000000002", + "v" : "0x1c", + "value" : "0x01" + } + ], + "uncleHeaders" : [ + ] + } + ], + "expect" : [ + { + "network" : ["ALL"], + "result" : { + "0x1000000000000000000000000000000000000000" : { + "balance" : "0x01" + }, + "0x1000000000000000000000000000000000000001" : { + "balance" : "0x01" + }, + "0x1000000000000000000000000000000000000002" : { + "balance" : "0x01" + } + } + } + ], + "genesisBlockHeader" : { + "bloom" : "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "coinbase" : "2adc25665018aa1fe0e6bc666dac8fc2697ff9ba", + "difficulty" : "131072", + "extraData" : "0x42", + "gasLimit" : "0x7fffffffffffffff", + "gasUsed" : "0", + "mixHash" : "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421", + "nonce" : "0x0102030405060708", + "number" : "0", + "parentHash" : "0x0000000000000000000000000000000000000000000000000000000000000000", + "receiptTrie" : "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421", + "stateRoot" : "0xf99eb1626cfa6db435c0836235942d7ccaa935f1ae247d3f1c21e495685f903a", + "timestamp" : "0x03b6", + "transactionsTrie" : "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421", + "uncleHash" : "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347" + }, + "pre" : { + "0x1000000000000000000000000000000000000000" : { + "balance" : "0x00", + "code" : "0x60004060005563ffffffff4060015567ffffffffffffffff406002556fffffffffffffffffffffffffffffffff406003557fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff40600455", + "nonce" : "0x00", + "storage" : { + } + }, + "0x1000000000000000000000000000000000000001" : { + "balance" : "0x00", + "code" : "0x60004060005563ffffffff4060015567ffffffffffffffff406002556fffffffffffffffffffffffffffffffff406003557fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff40600455", + "nonce" : "0x00", + "storage" : { + } + }, + "0x840c2083a4726e89c45df3387770b8fb55677229" : { + "balance" : "0x7fffffffffffffff", + "code" : "", + "nonce" : "0x00", + "storage" : { + } + }, + "0xa94f5374fce5edbc8e2a8697c15331677e6ebf0b" : { + "balance" : "0x7fffffffffffffff", + "code" : "", + "nonce" : "0x00", + "storage" : { + } + }, + "0x118797674cc60c07ad39a824cecc53c29d803feb" : { + "balance" : "0x7fffffffffffffff", + "code" : "", + "nonce" : "0x00", + "storage" : { + } + } + } + } +} diff --git a/src/BlockchainTestsFiller/bcStateTests/BadStateRootTxBCFiller.json b/src/BlockchainTestsFiller/bcStateTests/BadStateRootTxBCFiller.json new file mode 100644 index 000000000..dd3995785 --- /dev/null +++ b/src/BlockchainTestsFiller/bcStateTests/BadStateRootTxBCFiller.json @@ -0,0 +1,82 @@ +{ + "BadStateRootTxBC" : { + "blocks" : [ + { + "blockHeaderPremine" : { + "difficulty" : "0x020000", + "gasLimit" : "0x7fffffffffffffff", + "timestamp" : "0x03e8", + "updatePoW" : "1" + }, + "transactions" : [ + { + "data" : "0x00000000000000000000000000000000000000000000000000000000000bc03712fac13c68425054e372b0861af05648614d69d32800fba9ad4522238d4b937a0000000000000000000000000000000000000000000000000000000000000000", + "gasLimit" : "0x030d40", + "gasPrice" : "0x01", + "nonce" : "0x00", + "r" : "0x3d55a2ac293c7ad82632b18705e67ad2a0e6177d44f601dca043934c8cd8c07a", + "s" : "0x1c069ed47162b350a1f496e9a55f53685189e9c3076a4931334a43719b9a158e", + "to" : "0x1baf27b88c48dd02b744999cf3522766929d2b2a", + "v" : "0x1c", + "value" : "0x00" + } + ], + "uncleHeaders" : [ + ] + } + ], + "expect" : [ + { + "network" : ["Frontier", "Homestead", "EIP150", "EIP158"], + "result" : { + "0xa94f5374fce5edbc8e2a8697c15331677e6ebf0b" : { + "balance" : "0x1e282b", + "nonce" : "0x01" + } + } + }, + { + "network" : ["Metropolis"], + "result" : { + "0xa94f5374fce5edbc8e2a8697c15331677e6ebf0b" : { + "balance" : "1975583", + "nonce" : "0x01" + } + } + } + ], + "genesisBlockHeader" : { + "bloom" : "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "coinbase" : "2adc25665018aa1fe0e6bc666dac8fc2697ff9ba", + "difficulty" : "131072", + "extraData" : "0x42", + "gasLimit" : "0x7fffffffffffffff", + "gasUsed" : "0", + "mixHash" : "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421", + "nonce" : "0x0102030405060708", + "number" : "0", + "parentHash" : "0x0000000000000000000000000000000000000000000000000000000000000000", + "receiptTrie" : "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421", + "stateRoot" : "0xf99eb1626cfa6db435c0836235942d7ccaa935f1ae247d3f1c21e495685f903a", + "timestamp" : "0x03b6", + "transactionsTrie" : "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421", + "uncleHash" : "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347" + }, + "pre" : { + "0x1baf27b88c48dd02b744999cf3522766929d2b2a" : { + "balance" : "0x03e8", + "code" : "0x600073a94f5374fce5edbc8e2a8697c15331677e6ebf0b3314156023573540602035145b15602e576040356000555b", + "nonce" : "0x00", + "storage" : { + } + }, + "0xa94f5374fce5edbc8e2a8697c15331677e6ebf0b" : { + "balance" : "0x1e8480", + "code" : "", + "nonce" : "0x00", + "storage" : { + } + } + } + } +} |