-
Notifications
You must be signed in to change notification settings - Fork 117
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
Track HTLCs in rfq policies #1186
Track HTLCs in rfq policies #1186
Conversation
Pull Request Test Coverage Report for Build 12185650868Details
💛 - Coveralls |
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.
As mentioned offline, we also need to track and take into account canceled HTLCs from previous attempts.
These can be subscribed to with https://lightning.engineering/api-docs/api/lnd/router/subscribe-htlc-events.
781102e
to
e559106
Compare
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.
I'm up-to-date with this PR. I agree with Oli's comments.
e559106
to
e5edcfd
Compare
Will also see how to add some coverage here |
@GeorgeTsagk should i review this before you add coverage or wait for that extra changes? |
You can review |
e5edcfd
to
1fd418e
Compare
0dd58d6
to
5c62e34
Compare
Rebased on #1224 to include manual rfq scid functionality in |
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.
Looks pretty good. Left a couple of comments to simplify the code and make it more concurrency safe.
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.
I'm up to date on this. Will wait for the revised commits based on Oli's review.
5c62e34
to
b5dfb89
Compare
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.
Almost there! Concurrency is very tricky, so a couple of more comments on the mutexes.
a85350f
to
5f3c446
Compare
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 pending the dependent PR.
5f3c446
to
1923ca2
Compare
Rebased on Updated LitD itests to point to 1923ca2 |
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 🎉
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.
I'm not sure if we need
htlcToPolicy lnutils.SyncMap[models.CircuitKey, Policy]
Please see review comments.
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.
Will leave merging down to @GeorgeTsagk .
1923ca2
to
8d9bb75
Compare
Description
This PR adds a simple in-memory tracking of accepted htlcs in the RFQ policy level. HTLCs that passed the policy check are now tracked by each policy, possibly affecting future policy check outcomes (depends on individual policy's implementation)