Skip to content

[bug]: a height hint greater than 0 must be provided #8383

@robtex

Description

@robtex

Background

lnd refuses to start, complainding about hint must be greater than 0

Your environment

  • version of lnd
    lnd version 0.17.3-beta commit=v0.17.3-beta

  • which operating system (uname -a on *Nix)

Linux lndmain 4.4.0-206-generic #238-Ubuntu SMP Tue Mar 16 07:52:37 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux

  • version of btcd, bitcoind, or other backend

Bitcoin Core version v25.0.0

  • any other relevant environment details

Steps to reproduce

start lnd.
having the same issue on two lnd nodes (with different transactions)
also tried
lnd --height-hint-cache-query-disable

2024-01-13 09:54:44.129 [ERR] BTCN: Broadcast attempt failed: tx already confirmed: -27: Transaction already in block chain 
2024-01-13 09:54:44.130 [INF] LNWL: Inserting unconfirmed transaction 62ff2f1f063082090be8aecd42bba5ae29b4b1b1a00e1f13806b9d99f8087e00 
2024-01-13 09:54:44.291 [INF] LNWL: 62ff2f1f063082090be8aecd42bba5ae29b4b1b1a00e1f13806b9d99f8087e00: tx already confirmed 
2024-01-13 09:54:44.450 [ERR] UTXN: Failed to sweep first-stage HTLC (CLTV-delayed) output 62ff2f1f063082090be8aecd42bba5ae29b4b1b1a00e1f13806b9d99f8087e00:0 
2024-01-13 09:54:44.451 [ERR] UTXN: Failed to sweep outputs at height=0: a height hint greater than 0 must be provided 
2024-01-13 09:54:44.451 [INF] SWPR: Sweeper shutting down 
2024-01-13 09:54:44.451 [INF] NTFN: Cancelling epoch notification, epoch_id=2 
2024-01-13 09:54:44.451 [INF] NTFN: New confirmation subscription: conf_id=1, txid=62ff2f1f063082090be8aecd42bba5ae29b4b1b1a00e1f13806b9d99f8087e00, num_confs=6 height_hint=825608 
2024-01-13 09:54:44.451 [INF] HSWC: HtlcNotifier shutting down 
2024-01-13 09:54:44.451 [INF] PRNF: PeerNotifier shutting down 
2024-01-13 09:54:44.451 [INF] CHNF: ChannelNotifier shutting down 
2024-01-13 09:54:44.451 [INF] NTFN: bitcoind notifier shutting down 
2024-01-13 09:54:45.441 [INF] NTFN: Dispatching 6 confirmation notification for txid=62ff2f1f063082090be8aecd42bba5ae29b4b1b1a00e1f13806b9d99f8087e00 
2024-01-13 09:54:45.442 [INF] NTFN: Stopping mempool notifier 
2024-01-13 09:54:45.442 [INF] HLCK: Health monitor shutting down 
2024-01-13 09:54:45.442 [ERR] LTND: Shutting down because error in main method: unable to start server: a height hint greater than 0 must be provided 

Expected behaviour

lnd should start

Actual behaviour

does not start

Metadata

Metadata

Assignees

Labels

P2should be fixed if one has timebugUnintended code behaviourinitIssues related to LND startup

Type

No type

Projects

Status

In review

Relationships

None yet

Development

No branches or pull requests

Issue actions