Skip to content
This repository has been archived by the owner on Jul 14, 2020. It is now read-only.

Align usage of expiry and refund_timestamp #89

Open
thomaseizinger opened this issue Jul 4, 2019 · 3 comments
Open

Align usage of expiry and refund_timestamp #89

thomaseizinger opened this issue Jul 4, 2019 · 3 comments

Comments

@thomaseizinger
Copy link
Contributor

thomaseizinger commented Jul 4, 2019

We use the term expiry for the SWAP REQUEST message but most of the RFCs talk about a refund_timestamp.

This usage should be unified, potentially with a 3rd term if none of the two fit for all the purposes.

Suggestion:

@da-kami
Copy link
Member

da-kami commented Jul 4, 2019

I feel it should be the other way round, as the original definition was expiry, as defined here: https://github.com/comit-network/RFCs/blob/master/RFC-003-SWAP-Basic.md

For me is both an advantage and a disadvantage to name very specific to the implementation.

@tcharding
Copy link
Collaborator

tcharding commented Jul 5, 2019

What about refund_expiry?. I approved the changes already but names can always be improved.

@thomaseizinger
Copy link
Contributor Author

What about refund_expiry?. I approved the changes already but names can always be improved.

refund_expiry is a bit redundant. In the end, the HTLC expiring means it was not unlocked through the secret in time, and hence, the refund path can be triggered.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants