2
0
mirror of https://github.com/edouardparis/lntop synced 2024-11-06 03:20:21 +00:00
Go to file
2019-04-29 09:13:47 +02:00
app fix logger: use default development 2019-04-13 17:52:33 +02:00
cli fix cli, ui: add version 2019-04-16 13:40:56 +02:00
cmd/lntop cli: init app 2019-03-15 16:08:57 +01:00
config refac config default 2019-04-05 17:00:25 +02:00
docker docker: tail logs from host 2019-04-13 21:27:29 +02:00
events pubsub: add more ticker 2019-04-15 13:34:29 +02:00
logging fix logger: use default development 2019-04-13 17:52:33 +02:00
network fix lnd: channel without ID 2019-04-13 18:13:13 +02:00
pubsub pubsub: add more ticker 2019-04-15 13:34:29 +02:00
ui fix view channels: truncate node alias 2019-04-29 09:13:47 +02:00
vendor views: message.NewPrinter(language.English) 2019-04-04 16:24:44 +02:00
.gitignore goreleaser 2019-04-16 13:18:51 +02:00
.goreleaser.yml goreleaser 2019-04-16 13:18:51 +02:00
doc.go add doc.go 2019-04-11 13:18:11 +02:00
go.mod views: message.NewPrinter(language.English) 2019-04-04 16:24:44 +02:00
go.sum refac config: use toml 2019-03-28 09:21:46 +01:00
LICENSE Initial commit 2019-03-15 15:42:17 +01:00
README.md README: Compatibility 2019-04-16 14:01:46 +02:00

lntop

MIT licensed Go Report Card Godoc tippin.me

lntop is an interactive text-mode channels viewer for Unix systems.

lntop-v0.0.0 lntop-v0.0.0

Install

Require the go programming language (version >= 1.11)

git clone https://github.com/edouardparis/lntop.git
cd lntop && export GO111MODULE=on && go install -mod=vendor ./...

Config

First time lntop is used a config file .lntop/config.toml is created in the user home directory.

[logger]
type = "production"
dest = "/root/.lntop/lntop.log"

[network]
name = "lnd"
type = "lnd"
address = "//127.0.0.1:10009"
cert = "/root/.lnd/tls.cert"
macaroon = "/root/.lnd/data/chain/bitcoin/mainnet/admin.macaroon"
macaroon_timeout = 60
max_msg_recv_size = 52428800
conn_timeout = 1000000
pool_capacity = 3

Change macaroon path according to your network.

Docker

If you prefer to run lntop from a docker container:

cd docker

# now you should review ./lntop/home/initial-config.toml
# if you have an existing .lntop directory, you can export it
# export LNTOP_HOME=~/.lntop
# ! change path to files in .lntop/config with user current directory /root !

# point LND_HOME to your actual lnd directory
# we recommend using .envrc with direnv
export LND_HOME=~/.lnd

# build the container
./build.sh

# run lntop from the container
./lntop.sh

# lntop data will be mapped to host folder at ./_volumes/lntop-data

To see lntop logs, you can tail them in another terminal session via:

./logs.sh -f

To start from scratch:

./clean.sh
./build.sh --no-cache

Compatibility

lntop lightningnetwork/lnd
v0.0.1 v0.5.1