routerrpc: convert sendpayment to async

Modify the routerrpc SendPayment api to asynchronous. This allows
callers to pick up a payment after the rpc connection was lost or lnd
was restarted.
This commit is contained in:
Joost Jager committed 2019-06-05 12:41:53 +02:00
1 parent 07d289c14e
commit f03533c67a
8 files changed
+571 -239

No files matched your search

+1
View File
@@ -477,6 +477,7 @@ func newRPCServer(s *server, macService *macaroons.Service,
FindRoute: s.chanRouter.FindRoute,
MissionControl: s.missionControl,
ActiveNetParams: activeNetParams.Params,
Tower: s.controlTower,
}
var (