Skip to content
Snippets Groups Projects

Fix #235 allow remark in prod with a limit on extrinsic size for free transaction

Merged Fix #235 allow remark in prod with a limit on extrinsic size for free transaction
All threads resolved!
Merged Benjamin Gallois requested to merge fix-235 into master
All threads resolved!
  • Allow the remark extrinsic on all chains.
  • Set an extrinsic length limit of 256 bytes for now. Beyond this limit, users will start paying fees proportional to the length. With an overhead of 110 bytes, this allows for a remark of up to 146 bytes.
  • Adjust the fee constant for fee computation: all extrinsics should be under this limit, except for the runtime upgrade (approximately 700 bytes), which will currently cost 20 ĞDev. Spamming the block at once (e.g., submitting one massive remark that fills the entire block) will cost 115 ĞDev.
  • Spamming with "free" remarks: 1 block allows for up to 5 242 880 bytes, of which 3 932 160 bytes are allocated for normal dispatch. With a block fullness target of 25% for normal dispatch (weight or length), this leaves 983 040 bytes available, allowing for approximately 3 840 remarks. After this, fees will be applied, taking into account both weight and length for any length even shorter than 256 bytes (one remark of 256 bytes (overhead + data) will cost 10 mĞDev).
Edited by Benjamin Gallois

Merge request reports

Merge request pipeline #38112 passed

Merge request pipeline passed for eee9cc75

Approval is optional

Merged by Hugo TrentesauxHugo Trentesaux 9 months ago (Oct 2, 2024 1:20pm UTC)

Merge details

Pipeline #38134 passed

Pipeline passed for 370f548f on master

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
  • Hugo Trentesaux requested review from @tuxmain and removed review request for @HugoTrentesaux

    requested review from @tuxmain and removed review request for @HugoTrentesaux

  • Hugo Trentesaux changed title from Fix #235 (closed) to Fix #235 (closed) allow remark in prod with a limit on extrinsic size for free transaction

    changed title from Fix #235 (closed) to Fix #235 (closed) allow remark in prod with a limit on extrinsic size for free transaction

  • added 1 commit

    Compare with previous version

  • added 2 commits

    Compare with previous version

  • added 1 commit

    Compare with previous version

  • added 2 commits

    Compare with previous version

  • Hugo Trentesaux resolved all threads

    resolved all threads

  • Pascal Engélibert approved this merge request

    approved this merge request

  • Benjamin Gallois resolved all threads

    resolved all threads

  • Hugo Trentesaux approved this merge request

    approved this merge request

  • mentioned in commit 370f548f

  • Please register or sign in to reply
    Loading