Skip to content

Commit

Permalink
treat invalid input as hard precompiler failure
Browse files Browse the repository at this point in the history
  • Loading branch information
shemnon committed Aug 26, 2019
1 parent ae4c9c4 commit 502a10c
Show file tree
Hide file tree
Showing 2 changed files with 449 additions and 0 deletions.
255 changes: 255 additions & 0 deletions GeneralStateTests/stPreCompiledContracts2/CALLBlake2f.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,255 @@
{
"CALLBlake2f" : {
"_info" : {
"comment" : "",
"filling-rpc-server" : "pantheon/v1.2.2-dev-47295f1a/osx-x86_64/corretto-java-11",
"filling-tool-version" : "retesteth-0.0.1+commit.e7eb725f.Darwin.appleclang",
"lllcversion" : "Version: 0.5.0-develop.2019.8.6+commit.9709dfe0.Darwin.appleclang",
"source" : "src/GeneralStateTestsFiller/stPreCompiledContracts2/CALLBlake2fFiller.json",
"sourceHash" : "e3e755ea9f1fb43605883d0f9154970479e9158ac451854084dccf4d7502d7a4"
},
"env" : {
"currentCoinbase" : "0x2adc25665018aa1fe0e6bc666dac8fc2697ff9ba",
"currentDifficulty" : "0x020000",
"currentGasLimit" : "0x02540be400",
"currentNumber" : "0x01",
"currentTimestamp" : "0x03e8",
"previousHash" : "0x5e20a0453cecd065ea59c37ac63e079ee08998b6045136a8ce6635c7912ec0b6"
},
"post" : {
"Istanbul" : [
{
"indexes" : {
"data" : 0,
"gas" : 0,
"value" : 0
},
"hash" : "0x56c0c7bd91cff99f993ede0733fa3a38e194d01f5c87a9b882305f61c3a4c338",
"logs" : "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347"
},
{
"indexes" : {
"data" : 1,
"gas" : 0,
"value" : 0
},
"hash" : "0x56c0c7bd91cff99f993ede0733fa3a38e194d01f5c87a9b882305f61c3a4c338",
"logs" : "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347"
},
{
"indexes" : {
"data" : 2,
"gas" : 0,
"value" : 0
},
"hash" : "0x56c0c7bd91cff99f993ede0733fa3a38e194d01f5c87a9b882305f61c3a4c338",
"logs" : "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347"
},
{
"indexes" : {
"data" : 3,
"gas" : 0,
"value" : 0
},
"hash" : "0x21fe47d455973e9fc124d9fc140b8e20c9b173e736c1c6029f405f4481d57c10",
"logs" : "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347"
},
{
"indexes" : {
"data" : 3,
"gas" : 1,
"value" : 0
},
"hash" : "0x21fe47d455973e9fc124d9fc140b8e20c9b173e736c1c6029f405f4481d57c10",
"logs" : "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347"
},
{
"indexes" : {
"data" : 3,
"gas" : 2,
"value" : 0
},
"hash" : "0x21fe47d455973e9fc124d9fc140b8e20c9b173e736c1c6029f405f4481d57c10",
"logs" : "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347"
},
{
"indexes" : {
"data" : 3,
"gas" : 3,
"value" : 0
},
"hash" : "0x21fe47d455973e9fc124d9fc140b8e20c9b173e736c1c6029f405f4481d57c10",
"logs" : "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347"
},
{
"indexes" : {
"data" : 4,
"gas" : 0,
"value" : 0
},
"hash" : "0x9aceeeb83c87245efc07d5b7eeae5cba3c12a2f327df1681a1e11d458d4ab338",
"logs" : "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347"
},
{
"indexes" : {
"data" : 4,
"gas" : 1,
"value" : 0
},
"hash" : "0x9aceeeb83c87245efc07d5b7eeae5cba3c12a2f327df1681a1e11d458d4ab338",
"logs" : "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347"
},
{
"indexes" : {
"data" : 4,
"gas" : 2,
"value" : 0
},
"hash" : "0x9aceeeb83c87245efc07d5b7eeae5cba3c12a2f327df1681a1e11d458d4ab338",
"logs" : "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347"
},
{
"indexes" : {
"data" : 4,
"gas" : 3,
"value" : 0
},
"hash" : "0x9aceeeb83c87245efc07d5b7eeae5cba3c12a2f327df1681a1e11d458d4ab338",
"logs" : "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347"
},
{
"indexes" : {
"data" : 5,
"gas" : 0,
"value" : 0
},
"hash" : "0xe8abe80c32a3d135651eb7dd1f925283266112b11bf9a3ff0dec5abeffd624be",
"logs" : "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347"
},
{
"indexes" : {
"data" : 5,
"gas" : 1,
"value" : 0
},
"hash" : "0xe8abe80c32a3d135651eb7dd1f925283266112b11bf9a3ff0dec5abeffd624be",
"logs" : "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347"
},
{
"indexes" : {
"data" : 5,
"gas" : 2,
"value" : 0
},
"hash" : "0xe8abe80c32a3d135651eb7dd1f925283266112b11bf9a3ff0dec5abeffd624be",
"logs" : "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347"
},
{
"indexes" : {
"data" : 5,
"gas" : 3,
"value" : 0
},
"hash" : "0xe8abe80c32a3d135651eb7dd1f925283266112b11bf9a3ff0dec5abeffd624be",
"logs" : "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347"
},
{
"indexes" : {
"data" : 6,
"gas" : 0,
"value" : 0
},
"hash" : "0x2238b371dfeabedc72549076f4fdb28b8ffb02a6f1191b9903be964567cea2b5",
"logs" : "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347"
},
{
"indexes" : {
"data" : 7,
"gas" : 0,
"value" : 0
},
"hash" : "0x85a75f9dd0a3eb5f46602bd4a3681e3148d42e2ded4ce1ab1c190666ec704d43",
"logs" : "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347"
},
{
"indexes" : {
"data" : 8,
"gas" : 0,
"value" : 0
},
"hash" : "0xf0ca7bf67109e3aff73d728a3163a07c8361ee6115db4e7efe27bf2f1b5cd72f",
"logs" : "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347"
},
{
"indexes" : {
"data" : 8,
"gas" : 1,
"value" : 0
},
"hash" : "0xf0ca7bf67109e3aff73d728a3163a07c8361ee6115db4e7efe27bf2f1b5cd72f",
"logs" : "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347"
},
{
"indexes" : {
"data" : 8,
"gas" : 2,
"value" : 0
},
"hash" : "0xf0ca7bf67109e3aff73d728a3163a07c8361ee6115db4e7efe27bf2f1b5cd72f",
"logs" : "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347"
},
{
"indexes" : {
"data" : 8,
"gas" : 3,
"value" : 0
},
"hash" : "0xf0ca7bf67109e3aff73d728a3163a07c8361ee6115db4e7efe27bf2f1b5cd72f",
"logs" : "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347"
}
]
},
"pre" : {
"0x1000000000000000000000000000000000000000" : {
"balance" : "0x00",
"code" : "0x36600060003760406103e8366000600060095af16001556103e85160025561040851600355",
"nonce" : "0x00",
"storage" : {
}
},
"0xa94f5374fce5edbc8e2a8697c15331677e6ebf0b" : {
"balance" : "0x3635c9adc5dea00000",
"code" : "0x",
"nonce" : "0x00",
"storage" : {
}
}
},
"transaction" : {
"data" : [
"0x00000c48c9bdf267e6096a3ba7ca8485ae67bb2bf894fe72f36e3cf1361d5f3af54fa5d182e6ad7f520e511f6c3e2b8c68059b6bbd41fbabd9831f79217e1319cde05b61626300000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000300000000000000000000000000000001",
"0x000000000c48c9bdf267e6096a3ba7ca8485ae67bb2bf894fe72f36e3cf1361d5f3af54fa5d182e6ad7f520e511f6c3e2b8c68059b6bbd41fbabd9831f79217e1319cde05b61626300000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000300000000000000000000000000000001",
"0x0000000c48c9bdf267e6096a3ba7ca8485ae67bb2bf894fe72f36e3cf1361d5f3af54fa5d182e6ad7f520e511f6c3e2b8c68059b6bbd41fbabd9831f79217e1319cde05b61626300000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000300000000000000000000000000000002",
"0x0000000c48c9bdf267e6096a3ba7ca8485ae67bb2bf894fe72f36e3cf1361d5f3af54fa5d182e6ad7f520e511f6c3e2b8c68059b6bbd41fbabd9831f79217e1319cde05b61626300000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000300000000000000000000000000000001",
"0x0000000c48c9bdf267e6096a3ba7ca8485ae67bb2bf894fe72f36e3cf1361d5f3af54fa5d182e6ad7f520e511f6c3e2b8c68059b6bbd41fbabd9831f79217e1319cde05b61626300000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000300000000000000000000000000000000",
"0x0000000148c9bdf267e6096a3ba7ca8485ae67bb2bf894fe72f36e3cf1361d5f3af54fa5d182e6ad7f520e511f6c3e2b8c68059b6bbd41fbabd9831f79217e1319cde05b61626300000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000300000000000000000000000000000001",
"0x",
"0x007A120048c9bdf267e6096a3ba7ca8485ae67bb2bf894fe72f36e3cf1361d5f3af54fa5d182e6ad7f520e511f6c3e2b8c68059b6bbd41fbabd9831f79217e1319cde05b61626300000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000300000000000000000000000000000001",
"0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"
],
"gasLimit" : [
"0x05f5e100",
"0x015f90",
"0x01adb0",
"0x030d40"
],
"gasPrice" : "0x01",
"nonce" : "0x00",
"secretKey" : "0x45a915e4d060149eb4365960e6a7a45f334393093061116b197e3240065ff2d8",
"to" : "0x1000000000000000000000000000000000000000",
"value" : [
"0x00"
]
}
}
}
Loading

0 comments on commit 502a10c

Please sign in to comment.