Skip to content
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

Refactor swap clients to be generic, remove hardcoded btclnd/ltclnd #554

Closed
sangaman opened this issue Oct 2, 2018 · 2 comments
Closed
Assignees
Labels
code quality Improving code structure, organization, and clarity has PR issues with an open PR lightning Lightning network & lnd integration swaps

Comments

@sangaman
Copy link
Collaborator

sangaman commented Oct 2, 2018

This issue is to track refactoring code to make lnd swap clients generic and configurable. Currently we hardcode btclnd and ltclnd as the only supported networks, but longer term we'd need to support more and we don't want code changes for each one.

@sangaman sangaman added code quality Improving code structure, organization, and clarity lightning Lightning network & lnd integration swaps labels Oct 2, 2018
@ImmanuelSegol
Copy link
Contributor

Can I take this?

@sangaman sangaman changed the title Refactor swap clients to be generic, remove hardcoded btclnd/ltcldn Refactor swap clients to be generic, remove hardcoded btclnd/ltclnd Oct 3, 2018
@sangaman
Copy link
Collaborator Author

sangaman commented Oct 3, 2018

I had some ideas for how to approach this, if you don't mind let me have a chance at it after alpha.1 is tagged, but if I'm not able to get it to soon then you can definitely take it.

@sangaman sangaman self-assigned this Oct 12, 2018
@kilrau kilrau added this to the 1.0.0 milestone Oct 26, 2018
@kilrau kilrau modified the milestones: 1.0.0-beta.1, 1.0.0-alpha.7 Nov 15, 2018
sangaman added a commit that referenced this issue Feb 13, 2019
This replaces all hardcoded references to the `lndbtc` and `lndltc`
clients with generic collections of lnd clients identified by their
currency/ticker symbol such as "BTC" as in `lndClients.BTC`. This will
allow adding lnd clients for newly supported currencies without in the
future without requiring changes to `xud`. It also reduces the amount
of boilerplate code that's required in the codebase.

Closes #554.

BREAKING CHANGE: Changes p2p packet structures for packets that
communicate the node state.
BREAKING CHANGE: Changes the way lnd config options are passed in via
command line arguments.
@ghost ghost added the in progress label Feb 13, 2019
@kilrau kilrau modified the milestones: 1.0.0-alpha.9, 1.0.0-alpha.10 Feb 20, 2019
@kilrau kilrau added the has PR issues with an open PR label Feb 20, 2019
sangaman added a commit that referenced this issue Feb 28, 2019
This replaces all hardcoded references to the `lndbtc` and `lndltc`
clients with generic collections of lnd clients identified by their
currency/ticker symbol such as "BTC" as in `lndClients.BTC`. This will
allow adding lnd clients for newly supported currencies without in the
future without requiring changes to `xud`. It also reduces the amount
of boilerplate code that's required in the codebase.

Closes #554.

BREAKING CHANGE: Changes p2p packet structures for packets that
communicate the node state.
BREAKING CHANGE: Changes the way lnd config options are passed in via
command line arguments.
sangaman added a commit that referenced this issue Feb 28, 2019
This replaces all hardcoded references to the `lndbtc` and `lndltc`
clients with generic collections of lnd clients identified by their
currency/ticker symbol such as "BTC" as in `lndClients.BTC`. This will
allow adding lnd clients for newly supported currencies without in the
future without requiring changes to `xud`. It also reduces the amount
of boilerplate code that's required in the codebase.

Closes #554.

BREAKING CHANGE: Changes p2p packet structures for packets that
communicate the node state.
BREAKING CHANGE: Changes the way lnd config options are passed in via
command line arguments.
sangaman added a commit that referenced this issue Mar 1, 2019
This replaces all hardcoded references to the `lndbtc` and `lndltc`
clients with generic collections of lnd clients identified by their
currency/ticker symbol such as "BTC" as in `lndClients.BTC`. This will
allow adding lnd clients for newly supported currencies without in the
future without requiring changes to `xud`. It also reduces the amount
of boilerplate code that's required in the codebase.

Closes #554.

BREAKING CHANGE: Changes p2p packet structures for packets that
communicate the node state.
BREAKING CHANGE: Changes the way lnd config options are passed in via
command line arguments.
@kilrau kilrau modified the milestones: 1.0.0-alpha.10, 1.0.0-alpha.11 Mar 6, 2019
sangaman added a commit that referenced this issue Mar 9, 2019
This replaces all hardcoded references to the `lndbtc` and `lndltc`
clients with generic collections of lnd clients identified by their
currency/ticker symbol such as "BTC" as in `lndClients.BTC`. This will
allow adding lnd clients for newly supported currencies without in the
future without requiring changes to `xud`. It also reduces the amount
of boilerplate code that's required in the codebase.

Closes #554.

BREAKING CHANGE: Changes p2p packet structures for packets that
communicate the node state.
BREAKING CHANGE: Changes the way lnd config options are passed in via
command line arguments.
sangaman added a commit that referenced this issue Mar 9, 2019
This replaces all hardcoded references to the `lndbtc` and `lndltc`
clients with generic collections of lnd clients identified by their
currency/ticker symbol such as "BTC" as in `lndClients.BTC`. This will
allow adding lnd clients for newly supported currencies without in the
future without requiring changes to `xud`. It also reduces the amount
of boilerplate code that's required in the codebase.

Closes #554.

BREAKING CHANGE: Changes p2p packet structures for packets that
communicate the node state.
BREAKING CHANGE: Changes the way lnd config options are passed in via
command line arguments.
@ghost ghost removed the in progress label Mar 14, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
code quality Improving code structure, organization, and clarity has PR issues with an open PR lightning Lightning network & lnd integration swaps
Projects
None yet
Development

No branches or pull requests

3 participants