sui icon indicating copy to clipboard operation
sui copied to clipboard

Implement transaction count based shared object congestion control

Open halfprice opened this issue 1 year ago • 2 comments

Description

This PR adds another mode in PerObjectCongestionControlMode, TotalTxCount, which uses total transaction count that operate on a object to limit the critical path of shared object transaction in a consensus commit.

The logic is the same as PerObjectCongestionControlMode::TotalGasBudget, except that now a transaction cost is 1 instead of the gas budget.

Test plan

Unit test. Integration test.


Release notes

Check each box that your changes affect. If none of the boxes relate to your changes, release notes aren't required.

For each box you select, include information after the relevant heading that describes the impact of your changes that a user might notice and any actions they must take to implement updates.

  • [ ] Protocol:
  • [ ] Nodes (Validators and Full nodes):
  • [ ] Indexer:
  • [ ] JSON-RPC:
  • [ ] GraphQL:
  • [ ] CLI:
  • [ ] Rust SDK:

halfprice avatar May 20 '24 20:05 halfprice

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
sui-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 29, 2024 9:32pm

vercel[bot] avatar May 20 '24 20:05 vercel[bot]

@halfprice is attempting to deploy a commit to the Mysten Labs Team on Vercel.

A member of the Team first needs to authorize it.

vercel[bot] avatar May 20 '24 20:05 vercel[bot]