Skip to content

Blacklist sender address and IP address if failed to send transfer to… - #14

Merged
boqiu merged 1 commit into
mainfrom
fix-blacklist
Aug 10, 2026
Merged

Blacklist sender address and IP address if failed to send transfer to…#14
boqiu merged 1 commit into
mainfrom
fix-blacklist

Conversation

@boqiu

@boqiu boqiu commented Aug 10, 2026

Copy link
Copy Markdown
Contributor

…ken tx due to rpc error


This change is Reviewable

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

Updates TokenPay’s monitoring flow to blacklist a sender address and client IP when sending the transfer token transaction fails with an RPC JSON error, aligning blacklisting behavior with RPC-level send failures rather than specific error-message substrings.

Changes:

  • Remove string-matching checks for specific send failure messages (insufficient funds / nonce too low).
  • Blacklist sender + IP when SendRawTransactionWithRetry fails and the error is classified as an RPC JSON error via utils.IsRPCJSONError.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread service/token_pay.go Outdated

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated no new comments.

@boqiu
boqiu merged commit af24764 into main Aug 10, 2026
2 checks passed
@boqiu
boqiu deleted the fix-blacklist branch August 10, 2026 03:38
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.

2 participants