Skip to content

Feat: Account Throttling#770

Merged
gilescope merged 19 commits into
mainfrom
nacho/throttling-mechanism
Feb 28, 2026
Merged

Feat: Account Throttling#770
gilescope merged 19 commits into
mainfrom
nacho/throttling-mechanism

Conversation

@NachoPal

@NachoPal NachoPal commented Feb 24, 2026

Copy link
Copy Markdown
Contributor

Overview

Add throttling mechanism to prevent governance member abuse. Adds a new pallet-throttle with a CheckThrottle transaction extension that limits per-account byte usage within a rolling block window.

Each account is allowed up to 10 MB of transaction data per day (14400 blocks at 6s/block). Usage resets automatically once the window expires.

🗹 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:

  • Additional tests are provided (if possible)

🔱 Fork Strategy

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

Links

@NachoPal NachoPal requested a review from a team as a code owner February 24, 2026 12:01
@github-actions

github-actions Bot commented Feb 24, 2026

Copy link
Copy Markdown
Contributor

kics-logo

KICS version: v2.1.16

Category Results
CRITICAL CRITICAL 0
HIGH HIGH 0
MEDIUM MEDIUM 99
LOW LOW 12
INFO INFO 83
TRACE TRACE 0
TOTAL TOTAL 194
Metric Values
Files scanned placeholder 31
Files parsed placeholder 31
Files failed to scan placeholder 0
Total executed queries placeholder 73
Queries failed to execute placeholder 0
Execution time placeholder 11

@NachoPal

Copy link
Copy Markdown
Contributor Author

/bot rebuild-metadata

@github-actions

Copy link
Copy Markdown
Contributor

✅ Metadata rebuild complete! Changes have been committed.

@gilescope gilescope enabled auto-merge February 25, 2026 13:29
@gilescope gilescope added this pull request to the merge queue Feb 25, 2026
@github-merge-queue github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Feb 25, 2026
@NachoPal NachoPal enabled auto-merge February 26, 2026 13:41
@NachoPal NachoPal added this pull request to the merge queue Feb 27, 2026
github-merge-queue Bot pushed a commit that referenced this pull request Feb 27, 2026
* feat: pallet_throttle

* chore: add change file

* chore: add change file 2

* fix: make clippy happy

* fix: make clippy happy 2

* fix: benchmarks

* fix: benchmarks 2

* chore: rebuild metadata

* fix: ci audit

* fix: npm audit

---------

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
@gilescope gilescope removed this pull request from the merge queue due to a manual request Feb 27, 2026
@NachoPal NachoPal added this pull request to the merge queue Feb 27, 2026
@github-merge-queue github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Feb 27, 2026
Signed-off-by: Giles Cope <gilescope@gmail.com>
@gilescope gilescope enabled auto-merge February 28, 2026 10:26
gilescope and others added 2 commits February 28, 2026 16:21
@gilescope gilescope added this pull request to the merge queue Feb 28, 2026
Merged via the queue into main with commit 02336c5 Feb 28, 2026
37 checks passed
@gilescope gilescope deleted the nacho/throttling-mechanism branch February 28, 2026 19:11
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.

3 participants