-
Notifications
You must be signed in to change notification settings - Fork 123
Add listinstantouts command
#708
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
hieblmi
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Was thinking that we could provide getter methods for the exposed fields rather than making them public.
| initiationHeight: initCtx.initationHeight, | ||
| outgoingChanSet: initCtx.outgoingChanSet, | ||
| cltvExpiry: initCtx.cltvExpiry, | ||
| CltvExpiry: initCtx.cltvExpiry, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Alternatively, to not open up the scope, we could just provide getters for these members. That would also reduce the diff.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd tend to agree, but given that the added use-case doesn't involve sharing state as all instantouts are fetched from the DB, we can keep the exported members too.
|
0f756dd to
982dcb6
Compare
982dcb6 to
034bc24
Compare
bhandras
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 🎉
| initiationHeight: initCtx.initationHeight, | ||
| outgoingChanSet: initCtx.outgoingChanSet, | ||
| cltvExpiry: initCtx.cltvExpiry, | ||
| CltvExpiry: initCtx.cltvExpiry, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd tend to agree, but given that the added use-case doesn't involve sharing state as all instantouts are fetched from the DB, we can keep the exported members too.
hieblmi
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM then 💾
This PR adds the
listinstantoutscli command which let's users monitor their instant out swaps.