Skip to content

perf: add weight check to pre_dispatch to quickly dismiss big transactions during block building#1305

Merged
gilescope merged 2 commits into
mainfrom
skowron/weight-check-pre-dispatch
Apr 13, 2026
Merged

perf: add weight check to pre_dispatch to quickly dismiss big transactions during block building#1305
gilescope merged 2 commits into
mainfrom
skowron/weight-check-pre-dispatch

Conversation

@mpskowron

@mpskowron mpskowron commented Apr 10, 2026

Copy link
Copy Markdown
Contributor

Overview

Weight check in pre_dispatch allows to save on repeating costly validations for too big transactions.

🗹 TODO before merging

  • Ready

📌 Submission Checklist

  • Changes are backward-compatible (or flagged if breaking)
  • Pull request description explains why the change is needed
  • Self-reviewed the diff
  • I have included a change file, or skipped for this reason:
  • If the changes introduce a new feature, I have bumped the node minor version
  • Update documentation (if relevant)
  • Updated AGENTS.md if build commands, architecture, or workflows changed
  • No new todos introduced

🧪 Testing Evidence

Please describe any additional testing aside from CI:

Run on the local node and confirmed that it indeed reject too big transactions earlier

  • Additional tests are provided (if possible)

🔱 Fork Strategy

  • Node Runtime Update
  • Node Client Update
  • Other:
  • N/A

Links

…tions during block building

Signed-off-by: Michał Skowron <michal.skowron@shielded.io>
@mpskowron mpskowron force-pushed the skowron/weight-check-pre-dispatch branch from 5ebc205 to ac446f5 Compare April 10, 2026 16:39
@mpskowron mpskowron marked this pull request as ready for review April 10, 2026 16:41
@mpskowron mpskowron requested a review from a team as a code owner April 10, 2026 16:41
Signed-off-by: Giles Cope <gilescope@gmail.com>
@gilescope gilescope enabled auto-merge April 13, 2026 11:37
@gilescope gilescope added this pull request to the merge queue Apr 13, 2026
Merged via the queue into main with commit 0f4ea40 Apr 13, 2026
31 of 34 checks passed
@gilescope gilescope deleted the skowron/weight-check-pre-dispatch branch April 13, 2026 13:02
m2ux added a commit that referenced this pull request Apr 23, 2026
…tions during block building (#1305)

* perf: add weight check to pre_dispatch to quickly dismiss big transactions during block building

Signed-off-by: Michał Skowron <michal.skowron@shielded.io>

* nit: use ensure

Signed-off-by: Giles Cope <gilescope@gmail.com>

---------

Signed-off-by: Michał Skowron <michal.skowron@shielded.io>
Signed-off-by: Giles Cope <gilescope@gmail.com>
Co-authored-by: Giles Cope <gilescope@gmail.com>
Signed-off-by: Mike Clay <mike.clay@shielded.io>
m2ux added a commit that referenced this pull request Apr 23, 2026
…tions during block building (#1305)

* perf: add weight check to pre_dispatch to quickly dismiss big transactions during block building

Signed-off-by: Michał Skowron <michal.skowron@shielded.io>

* nit: use ensure

Signed-off-by: Giles Cope <gilescope@gmail.com>

---------

Signed-off-by: Michał Skowron <michal.skowron@shielded.io>
Signed-off-by: Giles Cope <gilescope@gmail.com>
Co-authored-by: Giles Cope <gilescope@gmail.com>
Signed-off-by: Mike Clay <mike.clay@shielded.io>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants