Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Finalize OP_RETURN default rules #2290

Merged
merged 4 commits into from
Aug 7, 2023
Merged

Finalize OP_RETURN default rules #2290

merged 4 commits into from
Aug 7, 2023

Conversation

prasannavl
Copy link
Member

@prasannavl prasannavl commented Aug 5, 2023

Summary

  • Finalizes default rule sets of OP_RETURN sizes
    • Can be considered as proxy for EVM, DVM Tx sizes without the envelopes and signatures on DVM

Protocol

  • OP_RETURN sizes on validation:
    • Core: 1k (v0/rules/tx/core_op_return_max_size_bytes)
    • DVM: 4k (v0/rules/tx/dvm_op_return_max_size_bytes)
    • EVM: 64k (v0/rules/tx/evm_op_return_max_size_bytes)
  • Note: The above are part of validation, not just miner policy like the -datacarriersize, which still exists and can be used to limit further per node

Implications

  • Storage

    • Database reindex required
    • Database reindex optional
    • Database reindex not required
    • None
  • Consensus

    • Network upgrade required
    • Includes backward compatible changes
    • Includes consensus workarounds
    • Includes consensus refactors
    • None

@prasannavl
Copy link
Member Author

TODO:

  • Retain the large block tests with a custom attributes set first to allow it.
  • Also retain some tests as copy to that prevent this as expected failures

@prasannavl prasannavl merged commit 874a31e into master Aug 7, 2023
@prasannavl prasannavl deleted the pvl/op-ret-rules branch August 7, 2023 12:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants