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

Keep transactions from only one chunk in ChunkStateWitness #11581

Open
jancionear opened this issue Jun 14, 2024 · 2 comments
Open

Keep transactions from only one chunk in ChunkStateWitness #11581

jancionear opened this issue Jun 14, 2024 · 2 comments
Labels
A-stateless-validation Area: stateless validation

Comments

@jancionear
Copy link
Contributor

Currently ChunkStateWitness contains transactions from two chunks:

  • transactions - transactions added in the previous chunk
  • new_transactions - transactions added in the current chunk

To limit the state witness size we have a size limit for the sum of those two fields (combined_transactions_size_limit), but the fact that the witness contains transactions from two chunks really limits the throughput of incoming transactions.

For NEAR DA we would like to be able to ingest 4MB on every chunk, but this would require combined_transactions_size_limit to be 8MB, as we'd have to include 4MB of transactions from the previous chunk and 4MB of transactions from the current one.

It would be nice to only have transactions from one chunk inside the witness, it'd double the throughput.

Refs: zulip discussion

/cc @pugachAG @staffik

@jancionear jancionear added the A-stateless-validation Area: stateless validation label Jun 14, 2024
@staffik
Copy link
Contributor

staffik commented Jun 18, 2024

@jancionear How criticial do you think it is for mainnet launch? I wonder whether to prioritize this over current issues investigation.

@jancionear
Copy link
Contributor Author

@jancionear How criticial do you think it is for mainnet launch? I wonder whether to prioritize this over current issues investigation.

I think it can be done after the mainnet launch, it's a nice optimization but it isn't that critical. AFAIK it would really help NEAR DA, as it doubles the network throughput.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-stateless-validation Area: stateless validation
Projects
None yet
Development

No branches or pull requests

2 participants