routerrpc: parse dest_features bits for manual SendPayment

This commit is contained in:
Conner Fromknecht committed 2019-12-18 23:57:38 -08:00
1 parent 457fda6095
commit 35dd5f354d
2 files changed
+31

No files matched your search

+8
View File
@@ -3442,6 +3442,14 @@ func (r *rpcServer) extractPaymentIntent(rpcPayReq *rpcPaymentRequest) (rpcPayme
copy(payIntent.rHash[:], rpcPayReq.PaymentHash)
}
// Unmarshal any custom destination features.
payIntent.destFeatures, err = routerrpc.UnmarshalFeatures(
rpcPayReq.DestFeatures,
)
if err != nil {
return payIntent, err
}
// Currently, within the bootstrap phase of the network, we limit the
// largest payment size allotted to (2^32) - 1 mSAT or 4.29 million
// satoshis.