-
Notifications
You must be signed in to change notification settings - Fork 138
feat: RFQ forward history accounting and query API #1921
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
base: main
Are you sure you want to change the base?
Conversation
26178d0 to
5e71beb
Compare
Pull Request Test Coverage Report for Build 20822584845Details
💛 - Coveralls |
5e71beb to
ecf9c3e
Compare
72a580d to
acff712
Compare
GeorgeTsagk
left a comment
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.
Direction looking good
|
@jtobin: review reminder |
75f3c39 to
5769d7d
Compare
| payReq := ts.CarolLnd.RPC.DecodePayReq(invoice.PaymentRequest) | ||
|
|
||
| // Construct route: Alice -> Bob -> Carol. | ||
| routeBuildResp := ts.AliceLnd.RPC.BuildRoute( |
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.
Why not just use normal invoices here? Would make the test a bit simpler as then you just make the invoice and all the RFQ related stuff is handled.
5412e68 to
db0a707
Compare
db0a707 to
77ab82a
Compare
Adds a new rfq_forwards table migration with its associated models and queries: - Query forwards with filters - Count forwards
77ab82a to
bac969d
Compare
- Adds the forward store in the DB layer. - Moves business entities from the DB layer to the RFQ layer. - Defines Forward Store interface and entities.
On settle event from LND, log the RFQ forward event into the DB.
with pagination and filters.
Reconciliates the state of pending forwards on startup by verifying their status on LND: - if failed or settled, update the state - if still pending, populate the caches
bac969d to
e86d49f
Compare
This PR adds RFQ forward history tracking, allowing edge nodes to monitor and query their asset forwarding activity and fee revenue. Edge nodes need visibility into their RFQ forwarding activity to:
Changes
rfq_forwardstable to store forward eventsQueryRfqForwards: New RPC endpointtapcli rfqrpc forwards: Query forward history from CLI with filters--min-timestamp,--max-timestamp,--peer,--asset-id,--group-key,--limit,--offsetFixes #1005