-
Notifications
You must be signed in to change notification settings - Fork 108
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
docs: Transaction consensus rules: Size rules #3461
Conversation
I was not able to found this rule : [Pre-Sapling] The encoded size of the transaction MUST be less than or equal to 100000 bytes. We probably don't implement it because we checkpoint but i was wondering if this should be quoted anyway somewhere in the code with a note on why it is not enforced. |
I suggest quoting it where we enforce the block size limit on transactions. (Since transactions must get mined into a block to be useful, we reject transactions that are larger than blocks.) |
Codecov Report
@@ Coverage Diff @@
## main #3461 +/- ##
==========================================
+ Coverage 78.34% 78.49% +0.15%
==========================================
Files 267 273 +6
Lines 31526 31779 +253
==========================================
+ Hits 24698 24946 +248
- Misses 6828 6833 +5 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, I've checked all rules and only have a question about the last one
Co-authored-by: teor <[email protected]>
This PR failed due to an unrelated timing issue in the acceptance tests:
I don't think we have a ticket for this failure, I haven't seen it in months. Edit: this is now #3489 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, looks good to me!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good! Nightly test is failing, not sure if it's intermittent, I'll retry it
Motivation
Document the transaction consensus rules. This pull request is about a category of them that we called transaction size rules. Will close #3426 if merged.
Solution
Document all the rules in the ticket, remove extra documentation and try to leave where possible just one text for each consensus rule.
Review
Anyone can review.
Reviewer Checklist
Follow Up Work
The other 2 sections of the transaction consensus rules which are in the following issues: