Skip to content

Fix(block): avoid prevout fan-out for tx values - #23

Open
NateIsern wants to merge 1 commit into
mainfrom
codex/fix-block-endpoint-transaction-fan-out-dos
Open

Fix(block): avoid prevout fan-out for tx values#23
NateIsern wants to merge 1 commit into
mainfrom
codex/fix-block-endpoint-transaction-fan-out-dos

Conversation

@NateIsern

Copy link
Copy Markdown
Member

Motivation

  • Prevent the /api/block endpoint from triggering expensive prevout enrichment and RPC/Mongo amplification when it only needs per-transaction total output values.

Description

  • When computing txValues in server/index.ts, pass prevoutLookupBudget: { remaining: 0 } to blockCache.getTransaction so enrichInputPrevouts is not invoked.

Testing

  • Ran bun run typecheck and bun run test, and both completed successfully.

Codex Task

@cursor

cursor Bot commented Aug 3, 2026

Copy link
Copy Markdown

Bugbot is not enabled for your account, so this pull request was not reviewed.

Enable Bugbot in the Cursor dashboard to get automatic reviews on future PRs.

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.

1 participant