-
Notifications
You must be signed in to change notification settings - Fork 78
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
Update eth_getBalance to use mirror node #529
Conversation
Signed-off-by: Nana Essilfie-Conduah <[email protected]>
Codecov ReportBase: 76.67% // Head: 76.54% // Decreases project coverage by
Additional details and impacted files@@ Coverage Diff @@
## main #529 +/- ##
==========================================
- Coverage 76.67% 76.54% -0.13%
==========================================
Files 12 12
Lines 926 921 -5
Branches 145 140 -5
==========================================
- Hits 710 705 -5
- Misses 164 166 +2
+ Partials 52 50 -2
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
@@ -507,25 +507,18 @@ export class EthImpl implements Eth { | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
10 lines above this, there is a comment, which I think can be removed now with this PR.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LG, but one acceptance test is failing.
@release should execute "eth_getBalance" for newly created account with 10 HBAR
Signed-off-by: Nana Essilfie-Conduah <[email protected]>
Signed-off-by: Nana Essilfie-Conduah <[email protected]>
Signed-off-by: Nana Essilfie-Conduah <[email protected]>
Kudos, SonarCloud Quality Gate passed!
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Signed-off-by: Nana Essilfie-Conduah [email protected]
Description:
eth_getBalance
currently uses the consensus nodes to retrieve balance since mirror node only update balance every 15 mins.With mirror node fix to update on transfers relay can now point to mirror node
eth_getBalance
logic to call Mirror Node /api/v1/accounts` endpoint and extract balanceresolvedCost
Related issue(s):
Fixes #448
Notes for reviewer:
Checklist