aboutsummaryrefslogtreecommitdiffstats
path: root/src/BlockchainTestsFiller/GeneralStateTests/stPreCompiledContracts2/modexpRandomInput_d2g1v0Filler.json
diff options
context:
space:
mode:
authorDimitry <dimitry@ethereum.org>2017-10-13 20:34:21 +0800
committerDimitry <dimitry@ethereum.org>2017-10-13 20:34:21 +0800
commit6e80effa947d9581e5ef8c4e02a45725f5af4346 (patch)
treeffd5b0bde30e78cf0957a40889980a3adbd0c5b6 /src/BlockchainTestsFiller/GeneralStateTests/stPreCompiledContracts2/modexpRandomInput_d2g1v0Filler.json
parentba6a35c1f3f2b992279f3072e5f983522a64a5c9 (diff)
downloadtangerine-tests-6e80effa947d9581e5ef8c4e02a45725f5af4346.tar
tangerine-tests-6e80effa947d9581e5ef8c4e02a45725f5af4346.tar.gz
tangerine-tests-6e80effa947d9581e5ef8c4e02a45725f5af4346.tar.bz2
tangerine-tests-6e80effa947d9581e5ef8c4e02a45725f5af4346.tar.lz
tangerine-tests-6e80effa947d9581e5ef8c4e02a45725f5af4346.tar.xz
tangerine-tests-6e80effa947d9581e5ef8c4e02a45725f5af4346.tar.zst
tangerine-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_d2g1v0Filler.json')
-rw-r--r--src/BlockchainTestsFiller/GeneralStateTests/stPreCompiledContracts2/modexpRandomInput_d2g1v0Filler.json55
1 files changed, 55 insertions, 0 deletions
diff --git a/src/BlockchainTestsFiller/GeneralStateTests/stPreCompiledContracts2/modexpRandomInput_d2g1v0Filler.json b/src/BlockchainTestsFiller/GeneralStateTests/stPreCompiledContracts2/modexpRandomInput_d2g1v0Filler.json
new file mode 100644
index 000000000..0c98bc0f4
--- /dev/null
+++ b/src/BlockchainTestsFiller/GeneralStateTests/stPreCompiledContracts2/modexpRandomInput_d2g1v0Filler.json
@@ -0,0 +1,55 @@
+{
+ "modexpRandomInput_d2g1v0" : {
+ "blocks" : [
+ {
+ "blockHeaderPremine" : {
+ "difficulty" : "0x020000",
+ "gasLimit" : "0x05f5e100",
+ "timestamp" : "0x03e8",
+ "updatePoW" : "1"
+ },
+ "transactions" : [
+ {
+ "data" : "0x0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001147000000000000000000000000000000000000000000000000000000000061660350000000000000000000000000000000000000000000000000000000000000008",
+ "gasLimit" : "0x6acfc0",
+ "gasPrice" : "0x01",
+ "nonce" : "0x00",
+ "r" : "0xb37d77a66c3e92e5bc6ce02c5cf681dc209534afb388b763837cff9400b6a69b",
+ "s" : "0x08d5cbe47b56954f8a061cfe20c4144f5331587210444a3d0d8b6cbc21869c",
+ "to" : "0x0000000000000000000000000000000000000005",
+ "v" : "0x1b",
+ "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