Skip to content

Conversation

mlerner
Copy link
Contributor

@mlerner mlerner commented Dec 5, 2017

This PR contains two commits that resolve a TODO from channeldb/invoices.go: https://github.com/lightningnetwork/lnd/compare/master...mlerner:ml/settle-date?expand=1#diff-9f84ce21f17bb10010b2d2b19cb17e3cL421

  1. Add SettleDate to the channeldb representation of an invoice.
  2. Update the rpcserver so that invoice related commands map the SettleDate stored in the database to the RPC representation of an invoice.

fallbackAddr = decoded.FallbackAddr.String()
}

settleDate := int64(0)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

The Unix timestamp for the zero value of time.Time is -62135596800, which I think is not as friendly as a default of 0.

Copy link
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.

Nice addition! Tested this locally and works as expected. FWIW, this is a breaking change, but that's fine as we haven't yet shipped a non-alpha release.

LGTM 🎷

@Roasbeef Roasbeef merged commit 0f3ff11 into lightningnetwork:master Dec 9, 2017
@mlerner mlerner deleted the ml/settle-date branch December 9, 2017 01: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.

2 participants