-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
config: Experimental support for Litecoin/simnet #1865
config: Experimental support for Litecoin/simnet #1865
Conversation
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.
utACK, should be safe to add.
lnd.go
Outdated
@@ -134,6 +134,10 @@ func lndMain() error { | |||
strings.Title(registeredChains.PrimaryChain().String()), | |||
network, | |||
) | |||
if cfg.Litecoin.SimNet { |
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.
Not needed, no risk running on simnet anyway.
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 added that here just to inform the user that he can't expect community and LND's team help if encountered problems related to Litecoin and SimNet.
Should I take it out?
Let me know @halseth please.
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 would say take it out.
This PR adds the configuration needed to run LND with Litecoin on simnet. The change is minimal and has no impact for users that don't enable this mode. When using this configuration, the user is being warned that this mode is not officially supported.
fd26974
to
28213b7
Compare
@halseth took out per your suggestion. Anything else? |
The simnet params for ltcd should be updated as well: https://github.com/ltcsuite/ltcd/blob/master/chaincfg/params.go#L492 Currently they are just copied from bitcoin simnet. Some things that would need to change:
|
@cfromknecht do you suggest to open a PR against ltcsuite/ltcd and wait for a change? or maybe fix these values on LND side once Also, since this is a private network why these parameters are so important? please guide me. |
@offerm I would definitely welcome a PR to ltcd making those param changes, this is the primary reason ltc simnet was never exposed in lnd.
I'd prefer not to hack this in, the changes to ltcd are pretty minimal and worth doing properly IMO. FWIW, the ltcd backend would then have different parameters from LND. |
FWIW, you're aware that |
@Roasbeef @cfromknecht LTCD is supporting simnet already (even if using wrong parameters). @cfromknecht two questions related to these parameters which should change on LTCD:
|
@offerm Hoping that this answer helps you A) litecoin/bitcoin are very similar in ways, but also have their own protocol level differences (e.g. transaction times or supply). You'll have to look at differences between the two, to know which settings need to be changed. I've found that simply searching for B) Its probably meant as a quality issue. You will want the LTCD changes merged before making the change to LND or we wont be running a 'correct' simnet. |
@cfromknecht @halseth per your request I created |
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 🌈
This PR adds the configuration needed to run LND with Litecoin on simnet. The change is minimal and has no impact for users that don't enable this mode. When using this configuration, the user is being warned that this mode is not officially supported.
Fixes #1830.