Coder Social home page Coder Social logo

Comments (6)

spencer-tb avatar spencer-tb commented on July 30, 2024

This case will be invalid for evmone!

The valid tx rlp is overwritten with the invalid tx rlp in this test: https://github.com/ethereum/execution-spec-tests/blob/main/tests/cancun/eip4844_blobs/test_blob_txs.py#L1155-L1156

I think we can update how the rlp_decoded txs are output in the fixture by deserialzing the invalid tx rlp. Or even simpler for these specific cases we don't display rlp_decoded.

from execution-spec-tests.

winsvega avatar winsvega commented on July 30, 2024

actually I thought about rlp_decoded.
the only case where it can;t be done is when rlp is invalid. (and this ones are rlp serialization tests)

but we can actually agree to print rlp_decoded to specificly indicate that the block has some field missing.
so if blobGasUsed field is missing it will be like
"blobGasUsed" : "not included in rlp" or smth as a hint.
and if there are extra fields it can print it too
"extraField1" : "..."

and then if we construct invalid block with >256 values we can also indicate it in rlp_decoded
so the user will see what is going on in this rlp.

from execution-spec-tests.

winsvega avatar winsvega commented on July 30, 2024

and this test should not produce any rlp_decoded or should note in it that the transaction rlp is invalid

Error: Unhandled UpwardsException: Failed to verify rlp vs rlp_decoded in filled block: BlobTransaction::fromRLP(RLP) expected to have exactly 14 elements! (cancun/eip4844_blobs/src/GeneralStateTestsFiller/Pyspecs/cancun/eip4844_blobs/test_blob_txs_full.py::test_reject_valid_full_blob_in_block_rlp[fork_Cancun-blockchain_test-one_full_blob_at_the_end_max_txs], fork: Cancun, block: 1)

from execution-spec-tests.

marioevz avatar marioevz commented on July 30, 2024

I think we could close this now that #427 is merged or is there anything left to be fixed @winsvega ?

from execution-spec-tests.

winsvega avatar winsvega commented on July 30, 2024

Yes.

from execution-spec-tests.

winsvega avatar winsvega commented on July 30, 2024

solved for now by not printing rlp_decoded for some cases

from execution-spec-tests.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.