Skip to content

Conversation

jtobin
Copy link
Member

@jtobin jtobin commented Aug 20, 2025

Forwards errors received from a price oracle back to the requesting peer in the 'Reject' message that it is sent. An error is simply rendered as a string and included in the 'msg' field of the RejectErr, which seems sufficient.

Resolves #1326.

jtobin added 2 commits August 20, 2025 05:58
ErrUnknownRejectWithCustomMsg constructs a RejectErr with error code 0
and the specified error message.
Simply forwards any error received from an oracle, following a price
query, along with any reject message sent to the peer.
@jtobin jtobin added error handling RFQ Work relating to TAP channel Request For Quote (RFQ). labels Aug 20, 2025
@coveralls
Copy link

coveralls commented Aug 20, 2025

Pull Request Test Coverage Report for Build 17093326325

Details

  • 0 of 8 (0.0%) changed or added relevant lines in 2 files are covered.
  • 79 unchanged lines in 16 files lost coverage.
  • Overall coverage decreased (-0.05%) to 56.616%

Changes Missing Coverage Covered Lines Changed/Added Lines %
rfq/negotiator.go 0 2 0.0%
rfqmsg/reject.go 0 6 0.0%
Files with Coverage Reduction New Missed Lines %
address/mock.go 2 87.5%
asset/group_key.go 2 72.15%
tapdb/sqlc/transfers.sql.go 2 83.33%
universe/syncer.go 2 82.73%
itest/multisig.go 3 97.91%
tapdb/interfaces.go 3 80.0%
universe/archive.go 3 79.29%
authmailbox/receive_subscription.go 4 77.89%
rpcserver.go 4 61.3%
authmailbox/server.go 5 79.6%
Totals Coverage Status
Change from base Build 17057360543: -0.05%
Covered Lines: 60657
Relevant Lines: 107138

💛 - Coveralls

@jtobin
Copy link
Member Author

jtobin commented Aug 20, 2025

@GeorgeTsagk pointed out out-of-band that this is probably a bad idea, since we may not actually want to share with a peer the reason we're not giving them a quote, and I'm inclined to agree.

@jtobin
Copy link
Member Author

jtobin commented Aug 20, 2025

Yeah, I'm pretty sure this one is misguided. Going to close for the time being.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
error handling RFQ Work relating to TAP channel Request For Quote (RFQ).
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[bug]: clearer error with price oracle that does not support the asset requested
2 participants