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

docs: cip for tx limits #226

Merged
merged 7 commits into from
Oct 19, 2024
Merged

docs: cip for tx limits #226

merged 7 commits into from
Oct 19, 2024

Conversation

jcstein
Copy link
Member

@jcstein jcstein commented Oct 17, 2024

@jcstein jcstein self-assigned this Oct 17, 2024
Copy link
Collaborator

@rootulp rootulp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note this PR closes celestiaorg/celestia-app#3970

Thanks for putting this up. I think it's safe to merge but it would be nice if @ninabarbakadze added more details before we move this from draft.


## Rationale

The rationale for this proposal is to set the transaction size limit to 2MiB, even with 8MiB blocks, to prevent issues with gossiping large transactions. Gossiping an 8MiB transaction without chunking could be detrimental to the network. This is a consensus-breaking change.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ninabarbakadze can you elaborate here on why we implemented this as a consensus breaking change instead of modifying the default mempool MaxTxBytes to 2 MiB?

I asked about it in a few places (Slack) and celestiaorg/celestia-app#3686 (comment)

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll wait on feedback until tomorrow and plan to get draft in then. Thank you @ninabarbakadze and @rootulp !

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

because every node can set the default to any value they choose to and afaik we don't know the effect large transactions are going to have on the network so in my understanding it's preventative. cc @evan-forbes

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Agreed the motivation for the change is preventative.

because every node can set the default to any value they choose to

Nodes can override the default but I expect most nodes will use the default. Assuming most nodes use the default config, transactions larger than 2 MiB won't be included in blocks so blob submitters will continue submitting blobs <= 2 MiB so that their blobs get included in blocks.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I agree with you but it seemed like we wanted to have a hard limit on it.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yea, I'm wondering why did we want the hard limit? The non-consensus breaking change is still preventative.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested revision below: #226 (comment)

cips/cip-28.md Outdated

## Security Considerations

This proposal does not introduce any new security risks. However, it does impact network behavior and user experience, which should be carefully considered during implementation.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Any changes to the block validity rules (via PrepareProposal and ProcessProposal) introduce implementation risks that could potentially lead to a chain halt.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested revision below: #226 (comment)

cips/cip-28.md Outdated Show resolved Hide resolved
cips/cip-28.md Outdated Show resolved Hide resolved
@jcstein jcstein merged commit 0cf3a6f into main Oct 19, 2024
1 check passed
@jcstein jcstein deleted the jcs/tx-limit branch October 19, 2024 00:21
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.

Write a CIP for limiting transaction size
3 participants