Skip to content

Fix CAPTCHA bypass, cursor pagination, explorer links, and blockchain queue (#874, #873, #872, #871) - #979

Merged
nanaf6203-bit merged 3 commits into
MettaChain:mainfrom
khaadish:fix/captcha-pagination-explorer-queue
Jul 28, 2026
Merged

Fix CAPTCHA bypass, cursor pagination, explorer links, and blockchain queue (#874, #873, #872, #871)#979
nanaf6203-bit merged 3 commits into
MettaChain:mainfrom
khaadish:fix/captcha-pagination-explorer-queue

Conversation

@khaadish

@khaadish khaadish commented Jul 26, 2026

Copy link
Copy Markdown
Contributor

Changes

Fix CAPTCHA verification bypass in non-production mode (Closes #874)

  • Require CAPTCHA by default in all environments
  • Add CAPTCHA_BYPASS env var for development-only bypass
  • Log warning when CAPTCHA is bypassed

Implement cursor-based pagination for large datasets (Closes #873)

  • Add cursor support to search, admin, and transactions services
  • Backward compatible: page-based pagination still works when no cursor provided
  • Return nextCursor/previousCursor in paginated responses

Fix blockchain explorer link generation (Closes #872)

  • Use blockchainHash instead of truncated UUID for from address in formatVerificationResult

Fix blockchain recording processor queue name mismatch (Closes #871)

  • Align processor queue name with service (record-blockchain-transaction)
  • Remove non-existent submitTransaction call

…lockchain queue issues

- Fix CAPTCHA verification bypass in non-production mode (MettaChain#874): Require CAPTCHA by default in all environments, add CAPTCHA_BYPASS env var for dev-only bypass
- Implement cursor-based pagination for large datasets (MettaChain#873): Add cursor support to search, admin, and transactions services with backward compatibility
- Fix blockchain explorer link generation (MettaChain#872): Use blockchainHash instead of truncated UUID for from address
- Fix blockchain recording processor queue name mismatch (MettaChain#871): Align processor queue name with service, remove non-existent submitTransaction call
@drips-wave

drips-wave Bot commented Jul 26, 2026

Copy link
Copy Markdown

@khaadish Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

…x TS build errors

- Resolve merge conflicts in .env.example, search.service.ts, transactions.service.ts
- Add isBlocked property to AdminUpdateUserDto
- Fix 'error is of type unknown' by casting to Error in catch blocks
- Replace Prisma.User with User from prisma.types
- Add CAPTCHA_BYPASS env var alongside Redis config
@khaadish
khaadish force-pushed the fix/captcha-pagination-explorer-queue branch from 3cc3c1b to 9915d98 Compare July 28, 2026 18:09
- Fix issueTokenPair parameter type to accept Prisma User type
- Add optional chaining for apiKeyAnalyticsService
- Fix error type in catch handler for API key usage
- Cast getSuggestions return type to string[]
@khaadish
khaadish force-pushed the fix/captcha-pagination-explorer-queue branch 2 times, most recently from 7fd2e40 to f9427a4 Compare July 28, 2026 18:33

@nanaf6203-bit nanaf6203-bit left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@khaadish Good Job

@nanaf6203-bit
nanaf6203-bit merged commit 8d476d2 into MettaChain:main Jul 28, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

2 participants