Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: add warning log for invalid node account #2171

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

0xivanov
Copy link
Contributor

@0xivanov 0xivanov commented Jan 14, 2025

Description:

Recently there were increased complaints for INVALID_NODE_ACCOUNT error. After debugging with the team it turns out if a transaction is built to be a submitted to a specific node, but that node is not listed in the Clinet's list instead of throwing an error the SDK will send the transaction to a random node and it will reach the consensus node where it will fail at PRECHECK.

This PR adds log that warns the user that the client configuration is incorrect and it might cause INVALID_NODE_ACCOUNT

Related issue(s):

Fixes #2124

Notes for reviewer:

Checklist

  • Documented (Code comments, README, etc.)
  • Tested (unit, integration, etc.)

@0xivanov 0xivanov requested a review from a team as a code owner January 14, 2025 13:19
@0xivanov 0xivanov requested a review from agadzhalov January 14, 2025 13:19
@0xivanov 0xivanov self-assigned this Jan 14, 2025
Copy link

codecov bot commented Jan 14, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 82.41%. Comparing base (b86ee46) to head (e869825).
Report is 216 commits behind head on main.

Additional details and impacted files
@@             Coverage Diff              @@
##               main    #2171      +/-   ##
============================================
+ Coverage     82.20%   82.41%   +0.21%     
- Complexity     3588     4042     +454     
============================================
  Files           186      205      +19     
  Lines         11697    12913    +1216     
  Branches       1150     1283     +133     
============================================
+ Hits           9615    10642    +1027     
- Misses         1604     1813     +209     
+ Partials        478      458      -20     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@naydenovn naydenovn self-requested a review January 14, 2025 13:52
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