routing+routerrpc+lnrpc: add option to use mc in queryroutes#3221
Conversation
5df0f52 to
7ed8afe
Compare
What I think happened is: It did work, but the reason the same route was returned was because it was still the route with the highest probability (although very low). In Modified this PR to also apply that minimum probability to |
7ed8afe to
35fe21c
Compare
|
Same issue. With the code from this PR I get a route, resulting in a temporary channel failure. Running QueryRoutes again returns the same route. With my code, ignoring based on the channel failure, I get a different route when running QueryRoutes the second time. |
|
I failed to reproduce in the following set up on regtest: A -> B -> C. The B has 100k sat balance on the B->C channel.
This is the behavior that I'd expect. Do you have more detailed steps? One thing about |
ce717af to
d5bb8ca
Compare
|
Note to self: Needs to be rebased onto #3164 |
d5bb8ca to
d46ae71
Compare
|
Rebased onto first part of #3164 |
d46ae71 to
e1b4b9d
Compare
edf729a to
37bae01
Compare
c3a190a to
483694a
Compare
cfromknecht
left a comment
There was a problem hiding this comment.
Last 5 commits LGTM, just needs to rebased on final version of #3298 🚀
483694a to
8865e96
Compare
|
Needs a rebase. |
8865e96 to
1235b64
Compare
|
rebased |
There was a problem hiding this comment.
couldn't we define this interface in routing?
There was a problem hiding this comment.
We could, but these are routerrpc's specific requirements for a mission control.
There was a problem hiding this comment.
yeah i think it makes sense to do it in routerrpc, so it can minimally define what it requires to operate
|
Yeah, makes sense. Could move it later if we need to mock it in the router
package.
…On Wed, Jul 17, 2019, 19:30 Joost Jager ***@***.***> wrote:
***@***.**** commented on this pull request.
------------------------------
In lnrpc/routerrpc/router_backend.go
<#3221 (comment)>:
> @@ -55,6 +55,22 @@ type RouterBackend struct {
Tower routing.ControlTower
}
+// MissionControl defines the mission control dependencies of routerrpc.
+type MissionControl interface {
We could, but these are routerrpc's specific requirements for a mission
control.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#3221?email_source=notifications&email_token=AA4XLZEKFV44HUDGG3T3WDLP75JKHA5CNFSM4HZGJXA2YY3PNVWWK3TUL52HS4DFWFIHK3DMKJSXC5LFON2FEZLWNFSXPKTDN5WW2ZLOORPWSZGOB6YDL7I#discussion_r304554381>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AA4XLZG5OUEMZB5BRHLAXFLP75JKHANCNFSM4HZGJXAQ>
.
|
|
Needs rebase |
A boolean flag is added to the QueryRoutes rpc that allows feeding mission control probabilities into path finding.
1235b64 to
541e5f4
Compare
|
rebased |
A boolean flag is added to the QueryRoutes rpc that allows feeding mission control probabilities into path finding.
This pr builds on #3298