diff options
author | Dimitry <dimitry@ethereum.org> | 2017-10-13 20:34:21 +0800 |
---|---|---|
committer | Dimitry <dimitry@ethereum.org> | 2017-10-13 20:34:21 +0800 |
commit | 6e80effa947d9581e5ef8c4e02a45725f5af4346 (patch) | |
tree | ffd5b0bde30e78cf0957a40889980a3adbd0c5b6 /src/BlockchainTestsFiller/GeneralStateTests/stPreCompiledContracts2/modexpRandomInput_d2g0v0Filler.json | |
parent | ba6a35c1f3f2b992279f3072e5f983522a64a5c9 (diff) | |
download | dexon-tests-6e80effa947d9581e5ef8c4e02a45725f5af4346.tar.gz dexon-tests-6e80effa947d9581e5ef8c4e02a45725f5af4346.tar.zst dexon-tests-6e80effa947d9581e5ef8c4e02a45725f5af4346.zip |
modexp input test
Consensus big in Parity: gas calculation of modexp is subject to overflow for certain inputs. Found via manual review. A case was found where consensus issue could be achieved in ~500K gas.
Diffstat (limited to 'src/BlockchainTestsFiller/GeneralStateTests/stPreCompiledContracts2/modexpRandomInput_d2g0v0Filler.json')
-rw-r--r-- | src/BlockchainTestsFiller/GeneralStateTests/stPreCompiledContracts2/modexpRandomInput_d2g0v0Filler.json | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/src/BlockchainTestsFiller/GeneralStateTests/stPreCompiledContracts2/modexpRandomInput_d2g0v0Filler.json b/src/BlockchainTestsFiller/GeneralStateTests/stPreCompiledContracts2/modexpRandomInput_d2g0v0Filler.json new file mode 100644 index 000000000..3bf706dd8 --- /dev/null +++ b/src/BlockchainTestsFiller/GeneralStateTests/stPreCompiledContracts2/modexpRandomInput_d2g0v0Filler.json @@ -0,0 +1,55 @@ +{ + "modexpRandomInput_d2g0v0" : { + "blocks" : [ + { + "blockHeaderPremine" : { + "difficulty" : "0x020000", + "gasLimit" : "0x05f5e100", + "timestamp" : "0x03e8", + "updatePoW" : "1" + }, + "transactions" : [ + { + "data" : "0x0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001147000000000000000000000000000000000000000000000000000000000061660350000000000000000000000000000000000000000000000000000000000000008", + "gasLimit" : "0x0ad570", + "gasPrice" : "0x01", + "nonce" : "0x00", + "r" : "0xa61dd9f5a65cd90ee4caf2b2660743384f5777328b536d21851d94fc8bc17b7e", + "s" : "0x135b6e1801f3a2b34b301dd8667e859b58a4b876c7d506b242957a3b33e9f77d", + "to" : "0x0000000000000000000000000000000000000005", + "v" : "0x1c", + "value" : "0x00" + } + ], + "uncleHeaders" : [ + ] + } + ], + "genesisBlockHeader" : { + "bloom" : "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "coinbase" : "3535353535353535353535353535353535353535", + "difficulty" : "131072", + "extraData" : "0x42", + "gasLimit" : "0x05f5e100", + "gasUsed" : "0", + "mixHash" : "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421", + "nonce" : "0x0102030405060708", + "number" : "0", + "parentHash" : "0x0000000000000000000000000000000000000000000000000000000000000000", + "receiptTrie" : "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421", + "stateRoot" : "0xf99eb1626cfa6db435c0836235942d7ccaa935f1ae247d3f1c21e495685f903a", + "timestamp" : "0x03b6", + "transactionsTrie" : "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421", + "uncleHash" : "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347" + }, + "pre" : { + "0xa94f5374fce5edbc8e2a8697c15331677e6ebf0b" : { + "balance" : "0x3635c9adc5dea00000", + "code" : "", + "nonce" : "0x00", + "storage" : { + } + } + } + } +}
\ No newline at end of file |