Merge pull request #6385 from Roasbeef/tlv-all-day-err-day

lnrpc: remove legacy onion payload as an option for SendToRoute
This commit is contained in:
Olaoluwa Osuntokun authored and GitHub committed 2022-04-11 20:45:29 -04:00
commit e6fd93eb38
4 files changed
+1417 -1411

No files matched your search

@@ -166,6 +166,8 @@ then watch it on chain. Taproot script spends are also supported through the
to the transaction structure returned from the RPC `GetTransactions` and when
subscribed with `SubscribeTransactions`.
* [Support for making routes with the legacy onion payload format via `SendToRoute` has been removed.](https://github.com/lightningnetwork/lnd/pull/6385)
## Database
* [Add ForAll implementation for etcd to speed up
+1413 -1409
View File
File diff suppressed because it is too large. Load diff
+1 -1
View File
@@ -2760,7 +2760,7 @@ message Hop {
TLV format. Note that if any custom tlv_records below are specified, then
this field MUST be set to true for them to be encoded properly.
*/
bool tlv_payload = 9;
bool tlv_payload = 9 [deprecated = true];
/*
An optional TLV record that signals the use of an MPP payment. If present,
+1 -1
View File
@@ -476,7 +476,7 @@ func UnmarshallHopWithPubkey(rpcHop *lnrpc.Hop, pubkey route.Vertex) (*route.Hop
PubKeyBytes: pubkey,
ChannelID: rpcHop.ChanId,
CustomRecords: customRecords,
LegacyPayload: !rpcHop.TlvPayload,
LegacyPayload: false,
MPP: mpp,
AMP: amp,
}, nil