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

Changed the way transaction lanes are calculated if the transaction h… #5024

Open
wants to merge 1 commit into
base: feat-2.0
Choose a base branch
from

Conversation

zajko
Copy link

@zajko zajko commented Dec 12, 2024

…as PricingMode::PaymentLimited. For wasm based transaction with that pricing mode the payment_amount field will be used as size estimate to determine the wasm lane.
Also added some validation for the chainspec to prevent:

  • wasm lanes using reserved ids (mint, auction, install/upgrade)
  • wasm lanes that have duplicate max_transaction_length
  • wasm lanes that have duplicate max_transaction_gas_limit
  • configs that have no wasm lanes defined
  • removed SMALL_WASM_LANE_ID, MEDIUM_WASM_LANE_ID and LARGE_WASM_LANE_ID from casper types public API

This PR might have impact on casper-client-rs

@zajko zajko force-pushed the transaction_size_estimate_should_use_payment_for_limited_pricing branch 2 times, most recently from e8240d5 to a74c727 Compare December 13, 2024 14:29
…as PricingMode::PaymentLimited. For wasm based transaction with that pricing mode the payment_amount field will be used as size estimate to determine the wasm lane.

Also added some validation for the chainspec to prevent:
* wasm lanes using reserved ids (mint, auction, install/upgrade)
* wasm lanes that have duplicate max_transaction_length
* wasm lanes that have duplicate max_transaction_gas_limit
* configs that have no wasm lanes defined
@zajko zajko force-pushed the transaction_size_estimate_should_use_payment_for_limited_pricing branch from a74c727 to 01968e7 Compare December 14, 2024 00:03
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.

1 participant