diff options
Diffstat (limited to 'src/BlockchainTestsFiller/bcUncleHeaderValidity')
30 files changed, 277 insertions, 82 deletions
diff --git a/src/BlockchainTestsFiller/bcUncleHeaderValidity/correctFiller.json b/src/BlockchainTestsFiller/bcUncleHeaderValidity/correctFiller.json index 59ff6ed93..427b60627 100644 --- a/src/BlockchainTestsFiller/bcUncleHeaderValidity/correctFiller.json +++ b/src/BlockchainTestsFiller/bcUncleHeaderValidity/correctFiller.json @@ -17,6 +17,7 @@ "transactionsTrie" : "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421", "uncleHash" : "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347" }, + "sealEngine" : "Ethash", "expect" : [ { "network" : ["Frontier", "Homestead", "EIP150", "EIP158"], @@ -45,6 +46,20 @@ "balance" : "2625000000000000000" } } + }, + { + "network" : [">=Constantinople"], + "result" : { + "095e7baea6a6c7c4c2dfeb977efac326af552d87" : { + "balance" : "30" + }, + "a94f5374fce5edbc8e2a8697c15331677e6ebf0b" : { + "nonce" : "3" + }, + "0000000000000000000000000000000000000000" : { + "balance" : "1750000000000000000" + } + } } ], "pre" : { diff --git a/src/BlockchainTestsFiller/bcUncleHeaderValidity/diffTooHighFiller.json b/src/BlockchainTestsFiller/bcUncleHeaderValidity/diffTooHighFiller.json index 1f0d94f57..ce5a2c697 100644 --- a/src/BlockchainTestsFiller/bcUncleHeaderValidity/diffTooHighFiller.json +++ b/src/BlockchainTestsFiller/bcUncleHeaderValidity/diffTooHighFiller.json @@ -17,9 +17,10 @@ "transactionsTrie" : "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421", "uncleHash" : "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347" }, + "sealEngine" : "Ethash", "expect" : [ { - "network" : ["ALL"], + "network" : [">=Frontier"], "result" : { "095e7baea6a6c7c4c2dfeb977efac326af552d87" : { "balance" : "10" diff --git a/src/BlockchainTestsFiller/bcUncleHeaderValidity/diffTooLow2Filler.json b/src/BlockchainTestsFiller/bcUncleHeaderValidity/diffTooLow2Filler.json index 774f3f4c1..5e4eb515a 100644 --- a/src/BlockchainTestsFiller/bcUncleHeaderValidity/diffTooLow2Filler.json +++ b/src/BlockchainTestsFiller/bcUncleHeaderValidity/diffTooLow2Filler.json @@ -17,9 +17,10 @@ "transactionsTrie" : "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421", "uncleHash" : "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347" }, + "sealEngine" : "Ethash", "expect" : [ { - "network" : ["ALL"], + "network" : [">=Frontier"], "result" : { "095e7baea6a6c7c4c2dfeb977efac326af552d87" : { "balance" : "10" diff --git a/src/BlockchainTestsFiller/bcUncleHeaderValidity/diffTooLowFiller.json b/src/BlockchainTestsFiller/bcUncleHeaderValidity/diffTooLowFiller.json index ba29f846f..1def2f08c 100644 --- a/src/BlockchainTestsFiller/bcUncleHeaderValidity/diffTooLowFiller.json +++ b/src/BlockchainTestsFiller/bcUncleHeaderValidity/diffTooLowFiller.json @@ -17,9 +17,10 @@ "transactionsTrie" : "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421", "uncleHash" : "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347" }, + "sealEngine" : "Ethash", "expect" : [ { - "network" : ["ALL"], + "network" : [">=Frontier"], "result" : { "095e7baea6a6c7c4c2dfeb977efac326af552d87" : { "balance" : "10" diff --git a/src/BlockchainTestsFiller/bcUncleHeaderValidity/futureUncleTimestamp2Filler.json b/src/BlockchainTestsFiller/bcUncleHeaderValidity/futureUncleTimestamp2Filler.json index eb7a17afd..0899f9e74 100644 --- a/src/BlockchainTestsFiller/bcUncleHeaderValidity/futureUncleTimestamp2Filler.json +++ b/src/BlockchainTestsFiller/bcUncleHeaderValidity/futureUncleTimestamp2Filler.json @@ -17,9 +17,10 @@ "transactionsTrie" : "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421", "uncleHash" : "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347" }, + "sealEngine" : "Ethash", "expect" : [ { - "network" : ["Frontier", "Homestead", "EIP150", "EIP158"], + "network" : ["Homestead", "EIP158"], "result" : { "095e7baea6a6c7c4c2dfeb977efac326af552d87" : { "balance" : "30" @@ -28,17 +29,6 @@ "nonce" : "3" } } - }, - { - "network" : ["Byzantium", "Constantinople"], - "result" : { - "095e7baea6a6c7c4c2dfeb977efac326af552d87" : { - "balance" : "20" - }, - "a94f5374fce5edbc8e2a8697c15331677e6ebf0b" : { - "nonce" : "2" - } - } } ], "pre" : { @@ -81,8 +71,6 @@ ] }, { - "expectExceptionByzantium" : "InvalidStateRoot", - "expectExceptionConstantinople" : "InvalidStateRoot", "blockHeader" : { "stateRoot" : "0x77f96f4c766c10cd0207e2672b1b747c741ed75bc94e7be7abacb71cdca3c8fb", "updatePoW" : "1" diff --git a/src/BlockchainTestsFiller/bcUncleHeaderValidity/futureUncleTimestamp3Filler.json b/src/BlockchainTestsFiller/bcUncleHeaderValidity/futureUncleTimestamp3Filler.json index 0246c31e3..011ca837a 100644 --- a/src/BlockchainTestsFiller/bcUncleHeaderValidity/futureUncleTimestamp3Filler.json +++ b/src/BlockchainTestsFiller/bcUncleHeaderValidity/futureUncleTimestamp3Filler.json @@ -17,9 +17,10 @@ "transactionsTrie" : "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421", "uncleHash" : "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347" }, + "sealEngine" : "Ethash", "expect" : [ { - "network" : ["Frontier", "Homestead", "EIP150", "EIP158", "Byzantium", "Constantinople"], + "network" : ["Homestead", "EIP150", "Byzantium"], "result" : { "095e7baea6a6c7c4c2dfeb977efac326af552d87" : { "balance" : "20" @@ -70,12 +71,9 @@ ] }, { - "expectExceptionFrontier" : "InvalidStateRoot", "expectExceptionHomestead" : "InvalidStateRoot", "expectExceptionEIP150" : "InvalidStateRoot", - "expectExceptionEIP158" : "InvalidStateRoot", "expectExceptionByzantium" : "InvalidStateRoot", - "expectExceptionConstantinople" : "InvalidStateRoot", "blockHeader" : { "stateRoot" : "0x3e9110dccee270e36e254d8e3b67cb18c12a9a0aa24065e24372a85856195c70", "updatePoW" : "1" diff --git a/src/BlockchainTestsFiller/bcUncleHeaderValidity/futureUncleTimestampDifficultyDrop2Filler.json b/src/BlockchainTestsFiller/bcUncleHeaderValidity/futureUncleTimestampDifficultyDrop2Filler.json index b19d1c726..abb61526b 100644 --- a/src/BlockchainTestsFiller/bcUncleHeaderValidity/futureUncleTimestampDifficultyDrop2Filler.json +++ b/src/BlockchainTestsFiller/bcUncleHeaderValidity/futureUncleTimestampDifficultyDrop2Filler.json @@ -17,15 +17,16 @@ "transactionsTrie" : "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421", "uncleHash" : "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347" }, + "sealEngine" : "Ethash", "expect" : [ { - "network" : ["Frontier", "Homestead", "EIP150", "EIP158"], + "network" : ["Byzantium"], "result" : { "095e7baea6a6c7c4c2dfeb977efac326af552d87" : { - "balance" : "20" + "balance" : "30" }, "a94f5374fce5edbc8e2a8697c15331677e6ebf0b" : { - "nonce" : "2" + "nonce" : "3" } } } @@ -72,10 +73,6 @@ ] }, { - "expectExceptionFrontier" : "InvalidStateRoot", - "expectExceptionHomestead" : "InvalidStateRoot", - "expectExceptionEIP150" : "InvalidStateRoot", - "expectExceptionEIP158" : "InvalidStateRoot", "blocknumber" : "3", "blockHeader" : { "stateRoot" : "0xaa4b1943360f5a0ea3b1a2a1d661de5b6d773eb371bd84b319837d96ffc7b630", diff --git a/src/BlockchainTestsFiller/bcUncleHeaderValidity/futureUncleTimestampDifficultyDrop3Filler.json b/src/BlockchainTestsFiller/bcUncleHeaderValidity/futureUncleTimestampDifficultyDrop3Filler.json new file mode 100644 index 000000000..9eeaede2e --- /dev/null +++ b/src/BlockchainTestsFiller/bcUncleHeaderValidity/futureUncleTimestampDifficultyDrop3Filler.json @@ -0,0 +1,101 @@ +{ + "futureUncleTimestampDifficultyDrop3" : { + "genesisBlockHeader" : { + "bloom" : "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "coinbase" : "0x8888f1f195afa192cfee860698584c030f4c9db1", + "difficulty" : "331072", + "extraData" : "0x42", + "gasLimit" : "3141592", + "gasUsed" : "0", + "number" : "0", + "parentHash" : "0x0000000000000000000000000000000000000000000000000000000000000000", + "receiptTrie" : "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421", + "stateRoot" : "0xf99eb1626cfa6db435c0836235942d7ccaa935f1ae247d3f1c21e495685f903a", + "timestamp" : "0x01", + "mixHash" : "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421", + "nonce" : "0x0102030405060708", + "transactionsTrie" : "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421", + "uncleHash" : "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347" + }, + "sealEngine" : "Ethash", + "expect" : [ + { + "network" : [">=Constantinople"], + "result" : { + "095e7baea6a6c7c4c2dfeb977efac326af552d87" : { + "balance" : "30" + }, + "a94f5374fce5edbc8e2a8697c15331677e6ebf0b" : { + "nonce" : "3" + } + } + } + ], + "pre" : { + "a94f5374fce5edbc8e2a8697c15331677e6ebf0b" : { + "balance" : "10000000000000", + "nonce" : "0", + "code" : "", + "storage": {} + } + }, + "blocks" : [ + { + "blocknumber" : "1", + "transactions" : [ + { + "data" : "", + "gasLimit" : "314159", + "gasPrice" : "1", + "nonce" : "0", + "secretKey" : "45a915e4d060149eb4365960e6a7a45f334393093061116b197e3240065ff2d8", + "to" : "095e7baea6a6c7c4c2dfeb977efac326af552d87", + "value" : "10" + } + ], + "uncleHeaders" : [ + ] + }, + { + "blocknumber" : "2", + "transactions" : [ + { + "data" : "", + "gasLimit" : "314159", + "gasPrice" : "1", + "nonce" : "1", + "secretKey" : "45a915e4d060149eb4365960e6a7a45f334393093061116b197e3240065ff2d8", + "to" : "095e7baea6a6c7c4c2dfeb977efac326af552d87", + "value" : "10" + } + ], + "uncleHeaders" : [ + ] + }, + { + "blocknumber" : "3", + "blockHeader" : { + "stateRoot" : "0xaf4765939e9fc7da9e2e4ba67d896c41f126e161f1b1f514a84fda61cff3d2ef", + "updatePoW" : "1" + }, + "transactions" : [ + { + "data" : "", + "gasLimit" : "314159", + "gasPrice" : "1", + "nonce" : "2", + "secretKey" : "45a915e4d060149eb4365960e6a7a45f334393093061116b197e3240065ff2d8", + "to" : "095e7baea6a6c7c4c2dfeb977efac326af552d87", + "value" : "10" + } + ], + "uncleHeaders" : [ + { + "populateFromBlock" : "1", + "RelTimestamp" : "5000000" + } + ] + } + ] + } +} diff --git a/src/BlockchainTestsFiller/bcUncleHeaderValidity/futureUncleTimestampDifficultyDropFiller.json b/src/BlockchainTestsFiller/bcUncleHeaderValidity/futureUncleTimestampDifficultyDropFiller.json index 12cdf16c6..3969cc570 100644 --- a/src/BlockchainTestsFiller/bcUncleHeaderValidity/futureUncleTimestampDifficultyDropFiller.json +++ b/src/BlockchainTestsFiller/bcUncleHeaderValidity/futureUncleTimestampDifficultyDropFiller.json @@ -17,9 +17,10 @@ "transactionsTrie" : "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421", "uncleHash" : "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347" }, + "sealEngine" : "Ethash", "expect" : [ { - "network" : ["Frontier", "Homestead", "EIP150", "EIP158"], + "network" : ["Frontier", "EIP158"], "result" : { "095e7baea6a6c7c4c2dfeb977efac326af552d87" : { "balance" : "30" @@ -28,17 +29,6 @@ "nonce" : "3" } } - }, - { - "network" : ["Constantinople", "Byzantium"], - "result" : { - "095e7baea6a6c7c4c2dfeb977efac326af552d87" : { - "balance" : "20" - }, - "a94f5374fce5edbc8e2a8697c15331677e6ebf0b" : { - "nonce" : "2" - } - } } ], "pre" : { @@ -83,8 +73,6 @@ ] }, { - "expectExceptionByzantium" : "InvalidStateRoot", - "expectExceptionConstantinople" : "InvalidStateRoot", "blocknumber" : "3", "blockHeader" : { "stateRoot" : "0x77f96f4c766c10cd0207e2672b1b747c741ed75bc94e7be7abacb71cdca3c8fb", diff --git a/src/BlockchainTestsFiller/bcUncleHeaderValidity/gasLimitLTGasUsageUncleFiller.json b/src/BlockchainTestsFiller/bcUncleHeaderValidity/gasLimitLTGasUsageUncleFiller.json index 48b59ef9f..d6a71e9cb 100644 --- a/src/BlockchainTestsFiller/bcUncleHeaderValidity/gasLimitLTGasUsageUncleFiller.json +++ b/src/BlockchainTestsFiller/bcUncleHeaderValidity/gasLimitLTGasUsageUncleFiller.json @@ -17,9 +17,10 @@ "transactionsTrie" : "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421", "uncleHash" : "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347" }, + "sealEngine" : "Ethash", "expect" : [ { - "network" : ["ALL"], + "network" : [">=Frontier"], "result" : { "095e7baea6a6c7c4c2dfeb977efac326af552d87" : { "balance" : "20" diff --git a/src/BlockchainTestsFiller/bcUncleHeaderValidity/gasLimitTooHighExactBoundFiller.json b/src/BlockchainTestsFiller/bcUncleHeaderValidity/gasLimitTooHighExactBoundFiller.json index 0db1f567d..5d4c9dace 100644 --- a/src/BlockchainTestsFiller/bcUncleHeaderValidity/gasLimitTooHighExactBoundFiller.json +++ b/src/BlockchainTestsFiller/bcUncleHeaderValidity/gasLimitTooHighExactBoundFiller.json @@ -17,9 +17,10 @@ "transactionsTrie" : "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421", "uncleHash" : "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347" }, + "sealEngine" : "Ethash", "expect" : [ { - "network" : ["ALL"], + "network" : [">=Frontier"], "result" : { "095e7baea6a6c7c4c2dfeb977efac326af552d87" : { "balance" : "10" diff --git a/src/BlockchainTestsFiller/bcUncleHeaderValidity/gasLimitTooHighFiller.json b/src/BlockchainTestsFiller/bcUncleHeaderValidity/gasLimitTooHighFiller.json index d11dcb284..0749bd675 100644 --- a/src/BlockchainTestsFiller/bcUncleHeaderValidity/gasLimitTooHighFiller.json +++ b/src/BlockchainTestsFiller/bcUncleHeaderValidity/gasLimitTooHighFiller.json @@ -17,9 +17,10 @@ "transactionsTrie" : "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421", "uncleHash" : "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347" }, + "sealEngine" : "Ethash", "expect" : [ { - "network" : ["ALL"], + "network" : [">=Frontier"], "result" : { "095e7baea6a6c7c4c2dfeb977efac326af552d87" : { "balance" : "10" diff --git a/src/BlockchainTestsFiller/bcUncleHeaderValidity/gasLimitTooLowExactBoundFiller.json b/src/BlockchainTestsFiller/bcUncleHeaderValidity/gasLimitTooLowExactBoundFiller.json index 79b742364..74c49ada1 100644 --- a/src/BlockchainTestsFiller/bcUncleHeaderValidity/gasLimitTooLowExactBoundFiller.json +++ b/src/BlockchainTestsFiller/bcUncleHeaderValidity/gasLimitTooLowExactBoundFiller.json @@ -17,9 +17,10 @@ "transactionsTrie" : "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421", "uncleHash" : "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347" }, + "sealEngine" : "Ethash", "expect" : [ { - "network" : ["ALL"], + "network" : [">=Frontier"], "result" : { "095e7baea6a6c7c4c2dfeb977efac326af552d87" : { "balance" : "10" diff --git a/src/BlockchainTestsFiller/bcUncleHeaderValidity/gasLimitTooLowFiller.json b/src/BlockchainTestsFiller/bcUncleHeaderValidity/gasLimitTooLowFiller.json index c9608ff59..d3a768413 100644 --- a/src/BlockchainTestsFiller/bcUncleHeaderValidity/gasLimitTooLowFiller.json +++ b/src/BlockchainTestsFiller/bcUncleHeaderValidity/gasLimitTooLowFiller.json @@ -17,9 +17,10 @@ "transactionsTrie" : "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421", "uncleHash" : "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347" }, + "sealEngine" : "Ethash", "expect" : [ { - "network" : ["ALL"], + "network" : [">=Frontier"], "result" : { "095e7baea6a6c7c4c2dfeb977efac326af552d87" : { "balance" : "10" diff --git a/src/BlockchainTestsFiller/bcUncleHeaderValidity/incorrectUncleNumber0Filler.json b/src/BlockchainTestsFiller/bcUncleHeaderValidity/incorrectUncleNumber0Filler.json index 9bed1eb33..c731ffd49 100644 --- a/src/BlockchainTestsFiller/bcUncleHeaderValidity/incorrectUncleNumber0Filler.json +++ b/src/BlockchainTestsFiller/bcUncleHeaderValidity/incorrectUncleNumber0Filler.json @@ -17,9 +17,10 @@ "transactionsTrie" : "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421", "uncleHash" : "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347" }, + "sealEngine" : "Ethash", "expect" : [ { - "network" : ["ALL"], + "network" : [">=Frontier"], "result" : { "095e7baea6a6c7c4c2dfeb977efac326af552d87" : { "balance" : "0x14" diff --git a/src/BlockchainTestsFiller/bcUncleHeaderValidity/incorrectUncleNumber1Filler.json b/src/BlockchainTestsFiller/bcUncleHeaderValidity/incorrectUncleNumber1Filler.json index 4fd89a8f8..8a98389f7 100644 --- a/src/BlockchainTestsFiller/bcUncleHeaderValidity/incorrectUncleNumber1Filler.json +++ b/src/BlockchainTestsFiller/bcUncleHeaderValidity/incorrectUncleNumber1Filler.json @@ -17,9 +17,10 @@ "transactionsTrie" : "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421", "uncleHash" : "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347" }, + "sealEngine" : "Ethash", "expect" : [ { - "network" : ["ALL"], + "network" : [">=Frontier"], "result" : { "095e7baea6a6c7c4c2dfeb977efac326af552d87" : { "balance" : "0x14" diff --git a/src/BlockchainTestsFiller/bcUncleHeaderValidity/incorrectUncleNumber500Filler.json b/src/BlockchainTestsFiller/bcUncleHeaderValidity/incorrectUncleNumber500Filler.json index 65871ca85..bc7963946 100644 --- a/src/BlockchainTestsFiller/bcUncleHeaderValidity/incorrectUncleNumber500Filler.json +++ b/src/BlockchainTestsFiller/bcUncleHeaderValidity/incorrectUncleNumber500Filler.json @@ -17,9 +17,10 @@ "transactionsTrie" : "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421", "uncleHash" : "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347" }, + "sealEngine" : "Ethash", "expect" : [ { - "network" : ["ALL"], + "network" : [">=Frontier"], "result" : { "095e7baea6a6c7c4c2dfeb977efac326af552d87" : { "balance" : "0x14" diff --git a/src/BlockchainTestsFiller/bcUncleHeaderValidity/incorrectUncleTimestamp2Filler.json b/src/BlockchainTestsFiller/bcUncleHeaderValidity/incorrectUncleTimestamp2Filler.json index a4d527e02..efdd1ce43 100644 --- a/src/BlockchainTestsFiller/bcUncleHeaderValidity/incorrectUncleTimestamp2Filler.json +++ b/src/BlockchainTestsFiller/bcUncleHeaderValidity/incorrectUncleTimestamp2Filler.json @@ -17,9 +17,10 @@ "transactionsTrie" : "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421", "uncleHash" : "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347" }, + "sealEngine" : "Ethash", "expect" : [ { - "network" : ["ALL"], + "network" : [">=Frontier"], "result" : { "095e7baea6a6c7c4c2dfeb977efac326af552d87" : { "balance" : "0x14" diff --git a/src/BlockchainTestsFiller/bcUncleHeaderValidity/incorrectUncleTimestampFiller.json b/src/BlockchainTestsFiller/bcUncleHeaderValidity/incorrectUncleTimestampFiller.json index 03c6e4847..9e808fc06 100644 --- a/src/BlockchainTestsFiller/bcUncleHeaderValidity/incorrectUncleTimestampFiller.json +++ b/src/BlockchainTestsFiller/bcUncleHeaderValidity/incorrectUncleTimestampFiller.json @@ -17,9 +17,10 @@ "transactionsTrie" : "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421", "uncleHash" : "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347" }, + "sealEngine" : "Ethash", "expect" : [ { - "network" : ["ALL"], + "network" : [">=Frontier"], "result" : { "095e7baea6a6c7c4c2dfeb977efac326af552d87" : { "balance" : "0x14" diff --git a/src/BlockchainTestsFiller/bcUncleHeaderValidity/nonceWrongFiller.json b/src/BlockchainTestsFiller/bcUncleHeaderValidity/nonceWrongFiller.json index e13137ba2..3244b424f 100644 --- a/src/BlockchainTestsFiller/bcUncleHeaderValidity/nonceWrongFiller.json +++ b/src/BlockchainTestsFiller/bcUncleHeaderValidity/nonceWrongFiller.json @@ -17,9 +17,10 @@ "transactionsTrie" : "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421", "uncleHash" : "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347" }, + "sealEngine" : "Ethash", "expect" : [ { - "network" : ["ALL"], + "network" : [">=Frontier"], "result" : { "0000000000000000000000000000000000000000" : { "balance" : "10" diff --git a/src/BlockchainTestsFiller/bcUncleHeaderValidity/pastUncleTimestampFiller.json b/src/BlockchainTestsFiller/bcUncleHeaderValidity/pastUncleTimestampFiller.json index ac714f4b4..e518e57bb 100644 --- a/src/BlockchainTestsFiller/bcUncleHeaderValidity/pastUncleTimestampFiller.json +++ b/src/BlockchainTestsFiller/bcUncleHeaderValidity/pastUncleTimestampFiller.json @@ -17,9 +17,10 @@ "transactionsTrie" : "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421", "uncleHash" : "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347" }, + "sealEngine" : "Ethash", "expect" : [ { - "network" : ["ALL"], + "network" : [">=Frontier"], "result" : { "095e7baea6a6c7c4c2dfeb977efac326af552d87" : { "balance" : "20" @@ -92,7 +93,7 @@ "uncleHeaders" : [ { "populateFromBlock" : "1", - "RelTimestamp" : "-5000000" + "RelTimestamp" : "-500000" } ] } diff --git a/src/BlockchainTestsFiller/bcUncleHeaderValidity/timestampTooHighFiller.json b/src/BlockchainTestsFiller/bcUncleHeaderValidity/timestampTooHighFiller.json index fc4822bd1..c0d65dc3d 100644 --- a/src/BlockchainTestsFiller/bcUncleHeaderValidity/timestampTooHighFiller.json +++ b/src/BlockchainTestsFiller/bcUncleHeaderValidity/timestampTooHighFiller.json @@ -17,9 +17,10 @@ "transactionsTrie" : "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421", "uncleHash" : "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347" }, + "sealEngine" : "Ethash", "expect" : [ { - "network" : ["ALL"], + "network" : [">=Frontier"], "result" : { "095e7baea6a6c7c4c2dfeb977efac326af552d87" : { "balance" : "10" @@ -73,7 +74,7 @@ ] }, { - "expectExceptionALL" : "InvalidDifficulty", + "expectExceptionALL" : "InvalidTimestamp", "transactions" : [ { "data" : "", diff --git a/src/BlockchainTestsFiller/bcUncleHeaderValidity/timestampTooLowFiller.json b/src/BlockchainTestsFiller/bcUncleHeaderValidity/timestampTooLowFiller.json index 1c8d7b30d..896f6dce4 100644 --- a/src/BlockchainTestsFiller/bcUncleHeaderValidity/timestampTooLowFiller.json +++ b/src/BlockchainTestsFiller/bcUncleHeaderValidity/timestampTooLowFiller.json @@ -17,9 +17,10 @@ "transactionsTrie" : "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421", "uncleHash" : "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347" }, + "sealEngine" : "Ethash", "expect" : [ { - "network" : ["ALL"], + "network" : [">=Frontier"], "result" : { "095e7baea6a6c7c4c2dfeb977efac326af552d87" : { "balance" : "10" diff --git a/src/BlockchainTestsFiller/bcUncleHeaderValidity/uncleBloomNot0Filler.json b/src/BlockchainTestsFiller/bcUncleHeaderValidity/uncleBloomNot0Filler.json index 16ade2f02..e26bad962 100644 --- a/src/BlockchainTestsFiller/bcUncleHeaderValidity/uncleBloomNot0Filler.json +++ b/src/BlockchainTestsFiller/bcUncleHeaderValidity/uncleBloomNot0Filler.json @@ -17,6 +17,7 @@ "transactionsTrie" : "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421", "uncleHash" : "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347" }, + "sealEngine" : "Ethash", "expect" : [ { "network" : ["Frontier", "Homestead", "EIP150", "EIP158"], @@ -28,17 +29,6 @@ "nonce" : "3" } } - }, - { - "network" : ["Byzantium", "Constantinople"], - "result" : { - "095e7baea6a6c7c4c2dfeb977efac326af552d87" : { - "balance" : "20" - }, - "a94f5374fce5edbc8e2a8697c15331677e6ebf0b" : { - "nonce" : "2" - } - } } ], "pre" : { @@ -83,8 +73,6 @@ ] }, { - "expectExceptionByzantium" : "InvalidStateRoot", - "expectExceptionConstantinople" : "InvalidStateRoot", "blocknumber" : "3", "blockHeader" : { "stateRoot" : "0x77f96f4c766c10cd0207e2672b1b747c741ed75bc94e7be7abacb71cdca3c8fb", diff --git a/src/BlockchainTestsFiller/bcUncleHeaderValidity/uncleBloomNot0_2Filler.json b/src/BlockchainTestsFiller/bcUncleHeaderValidity/uncleBloomNot0_2Filler.json index dba246b0e..740bf90a4 100644 --- a/src/BlockchainTestsFiller/bcUncleHeaderValidity/uncleBloomNot0_2Filler.json +++ b/src/BlockchainTestsFiller/bcUncleHeaderValidity/uncleBloomNot0_2Filler.json @@ -17,15 +17,16 @@ "transactionsTrie" : "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421", "uncleHash" : "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347" }, + "sealEngine" : "Ethash", "expect" : [ { - "network" : ["Frontier", "Homestead", "EIP150", "EIP158"], + "network" : ["Byzantium"], "result" : { "095e7baea6a6c7c4c2dfeb977efac326af552d87" : { - "balance" : "20" + "balance" : "30" }, "a94f5374fce5edbc8e2a8697c15331677e6ebf0b" : { - "nonce" : "2" + "nonce" : "3" } } } @@ -72,10 +73,6 @@ ] }, { - "expectExceptionFrontier" : "InvalidStateRoot", - "expectExceptionHomestead" : "InvalidStateRoot", - "expectExceptionEIP150" : "InvalidStateRoot", - "expectExceptionEIP158" : "InvalidStateRoot", "blocknumber" : "3", "blockHeader" : { "stateRoot" : "0xaa4b1943360f5a0ea3b1a2a1d661de5b6d773eb371bd84b319837d96ffc7b630", diff --git a/src/BlockchainTestsFiller/bcUncleHeaderValidity/uncleBloomNot0_3Filler.json b/src/BlockchainTestsFiller/bcUncleHeaderValidity/uncleBloomNot0_3Filler.json new file mode 100644 index 000000000..e278a3a70 --- /dev/null +++ b/src/BlockchainTestsFiller/bcUncleHeaderValidity/uncleBloomNot0_3Filler.json @@ -0,0 +1,102 @@ +{ + "uncleBloomNot0_2" : { + "genesisBlockHeader" : { + "bloom" : "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "coinbase" : "0x8888f1f195afa192cfee860698584c030f4c9db1", + "difficulty" : "131072", + "extraData" : "0x42", + "gasLimit" : "3141592", + "gasUsed" : "0", + "number" : "0", + "parentHash" : "0x0000000000000000000000000000000000000000000000000000000000000000", + "receiptTrie" : "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421", + "stateRoot" : "0xf99eb1626cfa6db435c0836235942d7ccaa935f1ae247d3f1c21e495685f903a", + "timestamp" : "0x01", + "mixHash" : "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421", + "nonce" : "0x0102030405060708", + "transactionsTrie" : "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421", + "uncleHash" : "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347" + }, + "sealEngine" : "Ethash", + "expect" : [ + { + "network" : [">=Constantinople"], + "result" : { + "095e7baea6a6c7c4c2dfeb977efac326af552d87" : { + "balance" : "30" + }, + "a94f5374fce5edbc8e2a8697c15331677e6ebf0b" : { + "nonce" : "3" + } + } + } + ], + "pre" : { + "a94f5374fce5edbc8e2a8697c15331677e6ebf0b" : { + "balance" : "10000000000000", + "nonce" : "0", + "code" : "", + "storage": {} + } + }, + "blocks" : [ + { + "blocknumber" : "1", + "transactions" : [ + { + "data" : "", + "gasLimit" : "314159", + "gasPrice" : "1", + "nonce" : "0", + "secretKey" : "45a915e4d060149eb4365960e6a7a45f334393093061116b197e3240065ff2d8", + "to" : "095e7baea6a6c7c4c2dfeb977efac326af552d87", + "value" : "10" + } + ], + "uncleHeaders" : [ + ] + }, + { + "blocknumber" : "2", + "transactions" : [ + { + "data" : "", + "gasLimit" : "314159", + "gasPrice" : "1", + "nonce" : "1", + "secretKey" : "45a915e4d060149eb4365960e6a7a45f334393093061116b197e3240065ff2d8", + "to" : "095e7baea6a6c7c4c2dfeb977efac326af552d87", + "value" : "10" + } + ], + "uncleHeaders" : [ + ] + }, + { + "blocknumber" : "3", + "blockHeader" : { + "stateRoot" : "0xaf4765939e9fc7da9e2e4ba67d896c41f126e161f1b1f514a84fda61cff3d2ef", + "updatePoW" : "1" + }, + "transactions" : [ + { + "data" : "", + "gasLimit" : "314159", + "gasPrice" : "1", + "nonce" : "2", + "secretKey" : "45a915e4d060149eb4365960e6a7a45f334393093061116b197e3240065ff2d8", + "to" : "095e7baea6a6c7c4c2dfeb977efac326af552d87", + "value" : "10" + } + ], + "uncleHeaders" : [ + { + "populateFromBlock" : "1", + "bloom" : "00000000010000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000012000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000450000", + "overwriteAndRedoPoW" : "bloom" + } + ] + } + ] + } +} diff --git a/src/BlockchainTestsFiller/bcUncleHeaderValidity/unknownUncleParentHashFiller.json b/src/BlockchainTestsFiller/bcUncleHeaderValidity/unknownUncleParentHashFiller.json index b09909961..534640e50 100644 --- a/src/BlockchainTestsFiller/bcUncleHeaderValidity/unknownUncleParentHashFiller.json +++ b/src/BlockchainTestsFiller/bcUncleHeaderValidity/unknownUncleParentHashFiller.json @@ -17,9 +17,10 @@ "transactionsTrie" : "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421", "uncleHash" : "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347" }, + "sealEngine" : "Ethash", "expect" : [ { - "network" : ["ALL"], + "network" : [">=Frontier"], "result" : { "095e7baea6a6c7c4c2dfeb977efac326af552d87" : { "balance" : "20" diff --git a/src/BlockchainTestsFiller/bcUncleHeaderValidity/wrongMixHashFiller.json b/src/BlockchainTestsFiller/bcUncleHeaderValidity/wrongMixHashFiller.json index 90c870af6..b1d30e8df 100644 --- a/src/BlockchainTestsFiller/bcUncleHeaderValidity/wrongMixHashFiller.json +++ b/src/BlockchainTestsFiller/bcUncleHeaderValidity/wrongMixHashFiller.json @@ -17,9 +17,10 @@ "transactionsTrie" : "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421", "uncleHash" : "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347" }, + "sealEngine" : "Ethash", "expect" : [ { - "network" : ["ALL"], + "network" : [">=Frontier"], "result" : { "095e7baea6a6c7c4c2dfeb977efac326af552d87" : { "balance" : "10" diff --git a/src/BlockchainTestsFiller/bcUncleHeaderValidity/wrongParentHashFiller.json b/src/BlockchainTestsFiller/bcUncleHeaderValidity/wrongParentHashFiller.json index 451c3eb5b..8ae60b950 100644 --- a/src/BlockchainTestsFiller/bcUncleHeaderValidity/wrongParentHashFiller.json +++ b/src/BlockchainTestsFiller/bcUncleHeaderValidity/wrongParentHashFiller.json @@ -17,9 +17,10 @@ "transactionsTrie" : "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421", "uncleHash" : "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347" }, + "sealEngine" : "Ethash", "expect" : [ { - "network" : ["ALL"], + "network" : [">=Frontier"], "result" : { "095e7baea6a6c7c4c2dfeb977efac326af552d87" : { "balance" : "10" diff --git a/src/BlockchainTestsFiller/bcUncleHeaderValidity/wrongStateRootFiller.json b/src/BlockchainTestsFiller/bcUncleHeaderValidity/wrongStateRootFiller.json index ef371d58c..153d98b26 100644 --- a/src/BlockchainTestsFiller/bcUncleHeaderValidity/wrongStateRootFiller.json +++ b/src/BlockchainTestsFiller/bcUncleHeaderValidity/wrongStateRootFiller.json @@ -17,9 +17,10 @@ "transactionsTrie" : "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421", "uncleHash" : "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347" }, + "sealEngine" : "Ethash", "expect" : [ { - "network" : ["ALL"], + "network" : [">=Frontier"], "result" : { "095e7baea6a6c7c4c2dfeb977efac326af552d87" : { "balance" : "10" |