channeldb: update payment request comment

This field isn't optional. It was introduced in
5ed31b1030 which was part of release
0.4.0. This release contained breaking database changes, so it is safe
to assume that from there on the field is always populated.

If there would still be empty payment request fields in the wild, users
would also experience issues with ListInvoices. ListInvoices decodes the
payment request.
This commit is contained in:
Joost Jager
2019-12-15 19:48:52 +01:00
parent c89f0dc7c1
commit af1b8a549d

View File

@@ -219,8 +219,7 @@ type Invoice struct {
// or any other message which fits within the size constraints.
Memo []byte
// PaymentRequest is an optional field where a payment request created
// for this invoice can be stored.
// PaymentRequest is the encoded payment request for this invoice.
PaymentRequest []byte
// CreationDate is the exact time the invoice was created.