Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions docs/release-notes/release-notes-0.7.0.md
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,10 @@
[PR](https://github.com/lightninglabs/taproot-assets/pull/1640) addresses the
issue.

- Errors received from a price oracle [are now relayed to a requesting
peer](https://github.com/lightninglabs/taproot-assets/pull/1751) in
the reject message sent to them, instead of being ignored.

## RPC Updates

## tapcli Updates
Expand Down Expand Up @@ -217,5 +221,6 @@

- ffranr
- George Tsagkarelis
- Jared Tobin
- Olaoluwa Osuntokun
- Oliver Gugger
4 changes: 2 additions & 2 deletions rfq/negotiator.go
Original file line number Diff line number Diff line change
Expand Up @@ -346,7 +346,7 @@
// Send a reject message to the peer.
msg := rfqmsg.NewReject(
request.Peer, request.ID,
rfqmsg.ErrUnknownReject,
rfqmsg.ErrUnknownRejectWithCustomMsg(err.Error()),

Check failure on line 349 in rfq/negotiator.go

View workflow job for this annotation

GitHub Actions / Lint check

The line is 82 characters long, which exceeds the maximum of 80 characters. (lll)
)
sendOutgoingMsg(msg)

Expand Down Expand Up @@ -441,7 +441,7 @@
// Send a reject message to the peer.
msg := rfqmsg.NewReject(
request.Peer, request.ID,
rfqmsg.ErrUnknownReject,
rfqmsg.ErrUnknownRejectWithCustomMsg(err.Error()),

Check failure on line 444 in rfq/negotiator.go

View workflow job for this annotation

GitHub Actions / Lint check

The line is 82 characters long, which exceeds the maximum of 80 characters. (lll)
)
sendOutgoingMsg(msg)

Expand Down
9 changes: 9 additions & 0 deletions rfqmsg/reject.go
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,15 @@ var (
}
)

// ErrUnknownRejectWithCustomMsg produces the "unknown" error code, but
// pairs it with a custom error message
func ErrUnknownRejectWithCustomMsg(msg string) RejectErr {
return RejectErr{
Code: 0,
Msg: msg,
}
}

const (
// latestRejectVersion is the latest supported reject wire message data
// field version.
Expand Down
Loading