lightningnetwork / lnd

Lightning Network Daemon ⚡️
MIT License
7.61k stars 2.06k forks source link

Neutrino LTC: target height not found in index #2700

Closed losh11 closed 5 years ago

losh11 commented 5 years ago

Background

After enabling neutrino for LTC in lnd/config.go#651, using litecoin with neutrino fails to work.

Your environment

Steps to reproduce

On lnd/config.go#651: add case "neutrino":

then

$ lnd --neutrino.connect=127.0.0.1 --litecoin.mainnet --litecoin.active --litecoin.node=neutrino --debuglevel=debug
2019-02-25 17:08:57.225 [INF] LTND: Version: 0.5.2-99-beta commit=v0.5.1-beta-805-ga6cf6f4237ef53b1f0c51c2fcfb9c1ce73cf9e06-dirty, build=production, logging=default
2019-02-25 17:08:57.241 [INF] LTND: Active chain: Litecoin (network=mainnet)
2019-02-25 17:08:57.275 [INF] CHDB: Checking for schema update: latest_version=8, db_version=8
2019-02-25 17:08:57.294 [INF] RPCS: password RPC server listening on 127.0.0.1:10009
2019-02-25 17:08:57.294 [INF] RPCS: password gRPC proxy started at 127.0.0.1:8080
2019-02-25 17:08:57.294 [INF] LTND: Waiting for wallet encryption password. Use `lncli create` to create a wallet, `lncli unlock` to unlock an existing wallet, or `lncli changepassword` to change the password of an existing wallet and unlock it.
2019-02-25 17:09:06.531 [INF] LNWL: Opened wallet
2019-02-25 17:09:06.675 [INF] LTND: Primary chain is set to: litecoin
unable to create chain control: unable to create neutrino: target height not found in index
2019-02-25 17:09:06.713 [INF] LTND: Shutdown complete
unable to create neutrino: target height not found in index

Expected behaviour

Neutrino should start syncing with LTC neutrino capable nodes.

cfromknecht commented 5 years ago

Neutrino is not supported on mainnet at this time

losh11 commented 5 years ago

Okay, same thing occurs with testnet. Please reopen.

$ lnd --neutrino.connect=127.0.0.1 --litecoin.testnet --litecoin.active --litecoin.node=neutrino --debuglevel=debug
2019-02-25 17:34:31.789 [WRN] LTND: open /Users/loshan/Library/Application Support/Lnd/lnd.conf: no such file or directory
2019-02-25 17:34:31.789 [INF] LTND: Version: 0.5.2-99-beta commit=v0.5.1-beta-805-ga6cf6f4237ef53b1f0c51c2fcfb9c1ce73cf9e06-dirty, build=production, logging=default
2019-02-25 17:34:31.789 [INF] LTND: Active chain: Litecoin (network=testnet)
2019-02-25 17:34:31.906 [INF] CHDB: Checking for schema update: latest_version=8, db_version=7
2019-02-25 17:34:31.906 [INF] CHDB: Performing database schema migration
2019-02-25 17:34:31.907 [INF] CHDB: Applying migration #8
2019-02-25 17:34:31.907 [INF] CHDB: Migrating to the gossip message store new key format
2019-02-25 17:34:31.907 [INF] CHDB: Migration to the gossip message store new key format complete!
2019-02-25 17:34:32.029 [INF] RPCS: password RPC server listening on 127.0.0.1:10009
2019-02-25 17:34:32.030 [INF] RPCS: password gRPC proxy started at 127.0.0.1:8080
2019-02-25 17:34:32.030 [INF] LTND: Waiting for wallet encryption password. Use `lncli create` to create a wallet, `lncli unlock` to unlock an existing wallet, or `lncli changepassword` to change the password of an existing wallet and unlock it.
2019-02-25 17:34:54.979 [INF] LNWL: Opened wallet
2019-02-25 17:34:55.031 [INF] LTND: Primary chain is set to: litecoin
unable to create chain control: unable to create neutrino: unable to fetch chain tip: target height not found in index
2019-02-25 17:34:55.099 [INF] LTND: Shutdown complete
unable to create neutrino: unable to fetch chain tip: target height not found in index
cfromknecht commented 5 years ago

@losh11 this is known/expected behavior. There’s a reason the unmodified code gives the error “only ltcd and litecoind mode supported for litecoin at this time”

kcw-grunt commented 10 months ago

@cfromknecht is this an old issue. Is this still the case?

ellemouton commented 10 months ago

@kcw-grunt - Litcoin is no longer supported in LND