lnrpc: re-enable custom records

This commit also renames the rpc field for consistency. As it wasn't
functional and the id doesn't change, this isn't considered a breaking
change.
This commit is contained in:
Joost Jager committed 2019-12-04 13:27:33 +01:00
1 parent 0abc054eb0
commit 352334d470
8 files changed
+831 -727

No files matched your search

+5 -2
View File
@@ -3133,8 +3133,11 @@ func (r *rpcServer) extractPaymentIntent(rpcPayReq *rpcPaymentRequest) (rpcPayme
}
payIntent.cltvLimit = cltvLimit
if len(rpcPayReq.DestTlv) != 0 {
payIntent.destTLV = tlv.MapToRecords(rpcPayReq.DestTlv)
payIntent.destTLV, err = routerrpc.UnmarshallCustomRecords(
rpcPayReq.DestCustomRecords,
)
if err != nil {
return payIntent, err
}
validateDest := func(dest route.Vertex) error {