Skip to content

lnrpc+routerrpc: disable custom tlv records via rpc#3575

Merged
Roasbeef merged 1 commit into
lightningnetwork:masterfrom
cfromknecht:disable-str-custom-tlvs
Oct 4, 2019
Merged

lnrpc+routerrpc: disable custom tlv records via rpc#3575
Roasbeef merged 1 commit into
lightningnetwork:masterfrom
cfromknecht:disable-str-custom-tlvs

Conversation

@cfromknecht
Copy link
Copy Markdown
Contributor

In order to prevent future unforeseen issues, we are temporarily
disabling the ability to send custom tlv records to the receiver of a
payment. Currently the receiver does not process or expose these
additional fields via rpc or internally, so they are being disabled
until the end-to-end flow is finished and fully validated.

In order to prevent future unforeseen issues, we are temporarily
disabling the ability to send custom tlv records to the receiver of a
payment. Currently the receiver does not process or expose these
additional fields via rpc or internally, so they are being disabled
until the end-to-end flow is finished and fully validated.
@cfromknecht cfromknecht added this to the 0.8.0 milestone Oct 3, 2019
Copy link
Copy Markdown
Contributor

@joostjager joostjager left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Only thing is what we discussed before, we are still writing a zero here

if err := WriteElements(w, numRecords); err != nil {

But I don't think we easily do anything about that.

Copy link
Copy Markdown
Member

@Roasbeef Roasbeef left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 🎸

@Roasbeef Roasbeef merged commit 5c154fe into lightningnetwork:master Oct 4, 2019
@Roasbeef
Copy link
Copy Markdown
Member

Roasbeef commented Oct 4, 2019

Only thing is what we discussed before, we are still writing a zero here

I don't think that's an issue, as we can still project any tlv values written in the payload within the main Hop struct. Usage of the TLV format on disk lets us decouple the in-memory representation from the on-disk representation. The same goes for any of the proto structs as well.

@cfromknecht cfromknecht deleted the disable-str-custom-tlvs branch October 4, 2019 22:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants