Skip to content

Velocity base rate limiting#948

Draft
bitcoin-coder-bob wants to merge 2 commits into
masterfrom
bob/velocity-base-rate-limiting
Draft

Velocity base rate limiting#948
bitcoin-coder-bob wants to merge 2 commits into
masterfrom
bob/velocity-base-rate-limiting

Conversation

@bitcoin-coder-bob

@bitcoin-coder-bob bitcoin-coder-bob commented Mar 2, 2026

Copy link
Copy Markdown
Collaborator

closes #940

Work paused on this until #908 is merged in

forked off the branch bob/dag-1 which is in PR: #908 as that branch has requisite changes needed to implement the features of this branch.

@coderabbitai

coderabbitai Bot commented Mar 2, 2026

Copy link
Copy Markdown
Contributor

Important

Review skipped

Draft detected.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 05e15af9-4c36-4349-b39e-b3e2834a05b4

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch bob/velocity-base-rate-limiting

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

Ports the velocity rate limiter onto master's settings architecture.
Rate-limit config (enabled/max velocity/max cooldown) lives in
domain.Settings and is disabled by default. Markers gain a created_at
column so the limiter can measure chain growth, and offchain tx
submission rejects inputs whose VTXO chain grows faster than the
configured velocity.
@bitcoin-coder-bob bitcoin-coder-bob force-pushed the bob/velocity-base-rate-limiting branch from 57de9e0 to 0a80108 Compare July 14, 2026 19:14
- reject invalid rate-limit values (velocity <= 0, negative cooldown) in Settings.Validate
- expose rate-limit settings through the admin UpdateSettings API
- cover legacy created_at 0, the timeDelta guard, and cooldown metadata in unit tests
- add an e2e smoke test and document the ARKD_RATE_LIMIT_* settings
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.

Velocity-based rate limiting for off-chain transactions

1 participant