Skip to content

backend/src/verifier.ts AssetVerifier does not cache negative verification results #721

@Haroldwonder

Description

@Haroldwonder

In backend/src/verifier.ts, the AssetVerifier caches positive verification results but does not cache negative results (unverified or suspicious assets). Every request for an unverified asset triggers a full multi-source verification check, causing unnecessary load on Stellar Expert and TOML endpoints.

File: backend/src/verifier.ts

Fix: Cache negative verification results with a shorter TTL (e.g., 5 minutes) to reduce redundant external API calls for known-bad assets.

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions