Skip to content

Conversation

@nkramer44
Copy link
Contributor

@nkramer44 nkramer44 commented Jan 14, 2025

Fixes #1825 by removing the check in the gateway_balances RPC handler that returns the RpcInvalidHotWallet error code if one of the addresses supplied in the request's hotwallet array does not have a trustline with the account from the request.

As stated in the original ticket, this change fixes a discrepancy in behavior between Clio and rippled, as rippled does not check for trustline existence when handling gateway_balances RPCs

cindyyan317
cindyyan317 previously approved these changes Jan 15, 2025
Copy link
Contributor

@cindyyan317 cindyyan317 left a comment

Choose a reason for hiding this comment

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

LGTM

@kuznetsss
Copy link
Collaborator

@nkramer44, please, sign your commit.

@nkramer44
Copy link
Contributor Author

@kuznetsss I tried to work some git magic to sign 9db9de6, but it looks like I did something wrong. Should I just close this PR and re-open with a clean branch that has a signed commit?

@kuznetsss
Copy link
Collaborator

@nkramer44, up to you. I think you could hard reset your branch to the commit you need to sign, then sign it by git commit --amend --no-edit -S and then force push it. But if you feel more comfortable to open a new PR, that is also fine.

@kuznetsss kuznetsss changed the title 1825: Remove InvalidHotWallet Error from gateway_balances RPC handler feat!: Remove InvalidHotWallet Error from gateway_balances RPC handler Jan 16, 2025
@kuznetsss kuznetsss changed the title feat!: Remove InvalidHotWallet Error from gateway_balances RPC handler fix: Remove InvalidHotWallet Error from gateway_balances RPC handler Jan 16, 2025
@nkramer44 nkramer44 requested a review from cindyyan317 January 16, 2025 20:38
@codecov
Copy link

codecov bot commented Jan 17, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 71.75%. Comparing base (f64d8ec) to head (a3adaba).
Report is 1 commits behind head on develop.

Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #1830      +/-   ##
===========================================
- Coverage    71.78%   71.75%   -0.03%     
===========================================
  Files          324      324              
  Lines        13268    13265       -3     
  Branches      6743     6742       -1     
===========================================
- Hits          9524     9518       -6     
- Misses        1906     1907       +1     
- Partials      1838     1840       +2     

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

@cindyyan317
Copy link
Contributor

@nkramer44 All checks passed. let's go 💯

@cindyyan317 cindyyan317 merged commit fbedeff into XRPLF:develop Jan 21, 2025
17 checks passed
@nkramer44 nkramer44 deleted the 1825 branch January 21, 2025 14:07
kuznetsss added a commit to kuznetsss/clio that referenced this pull request Feb 3, 2025
…RPLF#1830)

Fixes XRPLF#1825 by removing the check in the gateway_balances RPC handler
that returns the RpcInvalidHotWallet error code if one of the addresses
supplied in the request's `hotwallet` array does not have a trustline
with the `account` from the request.

As stated in the original ticket, this change fixes a discrepancy in
behavior between Clio and rippled, as rippled does not check for
trustline existence when handling gateway_balances RPCs

Co-authored-by: Sergey Kuznetsov <[email protected]>
kuznetsss added a commit to kuznetsss/clio that referenced this pull request Feb 3, 2025
…RPLF#1830)

Fixes XRPLF#1825 by removing the check in the gateway_balances RPC handler
that returns the RpcInvalidHotWallet error code if one of the addresses
supplied in the request's `hotwallet` array does not have a trustline
with the `account` from the request.

As stated in the original ticket, this change fixes a discrepancy in
behavior between Clio and rippled, as rippled does not check for
trustline existence when handling gateway_balances RPCs

Co-authored-by: Sergey Kuznetsov <[email protected]>
kuznetsss added a commit to kuznetsss/clio that referenced this pull request Feb 4, 2025
…RPLF#1830)

Fixes XRPLF#1825 by removing the check in the gateway_balances RPC handler
that returns the RpcInvalidHotWallet error code if one of the addresses
supplied in the request's `hotwallet` array does not have a trustline
with the `account` from the request.

As stated in the original ticket, this change fixes a discrepancy in
behavior between Clio and rippled, as rippled does not check for
trustline existence when handling gateway_balances RPCs

Co-authored-by: Sergey Kuznetsov <[email protected]>
kuznetsss added a commit that referenced this pull request Feb 4, 2025
#1873)

Port of #1830 into release/2.3.1.

Fixes #1825 by removing the check in the gateway_balances RPC handler
that returns the RpcInvalidHotWallet error code if one of the addresses
supplied in the request's `hotwallet` array does not have a trustline
with the `account` from the request.

As stated in the original ticket, this change fixes a discrepancy in
behavior between Clio and rippled, as rippled does not check for
trustline existence when handling gateway_balances RPCs
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.

gateway_balances introduces breaking change to API V1 due to invalidHotWallet return code (Version: 2.3.0)

3 participants