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
2019-11-20 12:00:25 +01:00
parent 0abc054eb0
commit 352334d470
8 changed files with 831 additions and 727 deletions

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 {