-
Notifications
You must be signed in to change notification settings - Fork 2.2k
add tr rlp to state tests #4263
Conversation
It's not sufficient to just add the transaction, cpp-ethereum also needs to use it for testing. |
there is whole bunch of code which rely on general state tests indexes. that check a specific transaction during the test filling, debug, and execution. I don't think that now is a good time for a big refactoring like this. But we can include transaction rlp into final tests with one line. (which is basically an rlp representation of a transaction section) |
I am not saying that expect indexes should be removed from the filler. It's OK to have the indexes there. But running the test without In ethereum/EIPs#176 (comment), I'm proposing to remove "transaction" from the test. It will remain in the filler, but "indexes" is useless without "transaction". |
To check a specific transaction when not filling, you can always identify it by fork and index in the array. |
running the test without --filltests still need the indexes at the moment. you will have to remove this logic. we should better focus on fuzz tests and test coverage for Metropolis. |
I'm working on it ;)
This doesn't need to get in before Metropolis. It can wait. |
To me, the current situation is, many many things are broken (hive cannot run consensus tests because |
the format was not changed. blockchain tests just moved to different directories. we missed that other clients use static links to test folders |
@winsvega yes, things break when we just move directories. I don't think we can afford to break things now. |
could they just scan the folders for .json files? |
They could but they did not. People don't do what we think they could. That's why things break for a change that, we think, should not matter. |
this leaves the current state tests as it is but adds a tr RLP to the final test
so you could use both indexes and transaction rlp.
@fjl please check that you could parse this RLP and it is correct
use
./testeth -t StateTestsGeneral -- --filltests --checkstate
to produce new format to the test repository