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 2022-04-11 20:45:29 -04:00 committed by GitHub
commit e6fd93eb38
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 1417 additions and 1411 deletions

View File

@ -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 to the transaction structure returned from the RPC `GetTransactions` and when
subscribed with `SubscribeTransactions`. 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 ## Database
* [Add ForAll implementation for etcd to speed up * [Add ForAll implementation for etcd to speed up

File diff suppressed because it is too large Load Diff

View File

@ -2760,7 +2760,7 @@ message Hop {
TLV format. Note that if any custom tlv_records below are specified, then 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. 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, An optional TLV record that signals the use of an MPP payment. If present,

View File

@ -476,7 +476,7 @@ func UnmarshallHopWithPubkey(rpcHop *lnrpc.Hop, pubkey route.Vertex) (*route.Hop
PubKeyBytes: pubkey, PubKeyBytes: pubkey,
ChannelID: rpcHop.ChanId, ChannelID: rpcHop.ChanId,
CustomRecords: customRecords, CustomRecords: customRecords,
LegacyPayload: !rpcHop.TlvPayload, LegacyPayload: false,
MPP: mpp, MPP: mpp,
AMP: amp, AMP: amp,
}, nil }, nil