edouardparis / lntop

:zap: LN terminal dashboard :bar_chart:
MIT License
181 stars 24 forks source link

Routing not showing under menu F2 #108

Closed HappyBear-btc closed 1 year ago

HappyBear-btc commented 1 year ago

Screenshot_4

I run a node on amd64, followed the raspibolt/miniblot guide. after installing lntop the menu only showing channel and transactions without routing.

edouardparis commented 1 year ago

Can you give me your lntop version please. Raspibolt guide give you instruction to install 0.3 but 0.4 is the version with the routing tab. My bad it is for the forwarding history.

Can you please add

[views.routing]
columns = [
        "IN_SCID",
        "OUT_SCID",
    "DIR",            # event type:  send, receive, forward
    "STATUS",         # one of: active, settled, failed, linkfail
    "IN_CHANNEL",     # channel id of the incomming channel
    "IN_ALIAS",       # incoming channel node alias
    "IN_SCID",      # incoming short channel id (BxTxO)
    "IN_HTLC",      # htlc id on incoming channel
    "IN_TIMELOCK",  # incoming timelock height
    "OUT_CHANNEL",    # channel id of the outgoing channel
    "OUT_ALIAS",      # outgoing channel node alias
    "OUT_SCID",     # outgoing short channel id (BxTxO)
    "OUT_HTLC",     # htlc id on outgoing channel
    "OUT_TIMELOCK", # outgoing timelock height
    "AMOUNT",         # routed amount
    "FEE",            # routing fee
    "LAST UPDATE",    # last update
    "DETAIL",         # error description
]

to your lntop config (should be in ~/.lntop/config.toml)

HappyBear-btc commented 1 year ago

I followed this guide as is https://minibolt.info/guide/bonus/lightning/lntop.html is my version is wrong? I see 0.4.0 doesn't have x86_64 file...

HappyBear-btc commented 1 year ago

I added the text to config file. still routing is not showing

edouardparis commented 1 year ago

Sorry I misread the guide, I think you have the version 0.1 that does not have the routing panel feature. I compiled and signed a new x86_64 binary to the v0.4.0 release

HappyBear-btc commented 1 year ago

thank you so much! I downloaded it but couldn't install. I followed the guide on minibolt and did the following: $ wget https://github.com/edouardparis/lntop/releases/download/v0.4.0/lntop-v0.4.0_Linux_x86_64.tar.gz $ tar -xvf lntop-v0.4.0_Linux_x86_64.tar.gz $ sudo install -m 0755 -o root -g root -t /usr/local/bin ./lntop

and I got this error: $ install: cannot stat './lntop': No such file or directory

I also tried the instructions from github but this error: Command 'lntop' not found, did you mean: command 'sntop' from deb sntop (1.4.3-6) Try: sudo apt install image

edouardparis commented 1 year ago

So you have the three explanation for the three alternative (your choice)

tar -xvf lntop-v0.4.0_Linux_x86_64.tar.gz must have extract the files in lntop-v0.4.0-Linux_x86_64 so you may do: sudo install -m 0755 -o root -g root -t /usr/local/bin ./lntop-v0.4.0-Linux_x86_64/lntop instead

go install will move the binary in your $GOBIN wich may not be linked in your bashrc I think you can add it with export PATH="$PATH:$HOME/go/bin"

go build will build the binary in the directory you are currently. so I think you can run it with cd ~/lntop && ./lntop because you already build it

HappyBear-btc commented 1 year ago

Hi thanks! actually I did slightly different before I read your comment sudo install -m 0755 -o root -g root -t /usr/local/bin release-v0.4.0-Linux-x86_64/lntop

and it seems to work now. image

HappyBear-btc commented 1 year ago

thanks for the update! lntop 0.4.0 is now part of the minibolt bonus guide https://minibolt.info/guide/bonus/lightning/lntop.html