mirror of https://github.com/edouardparis/lntop
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
8c77b09737 | 6 years ago | |
---|---|---|
app | 6 years ago | |
cli | 6 years ago | |
cmd/lntop | 6 years ago | |
config | 6 years ago | |
docker | 6 years ago | |
events | 6 years ago | |
logging | 6 years ago | |
network | 6 years ago | |
pubsub | 6 years ago | |
ui | 6 years ago | |
vendor | 6 years ago | |
.gitignore | 6 years ago | |
LICENSE | 6 years ago | |
README.md | 6 years ago | |
doc.go | 6 years ago | |
go.mod | 6 years ago | |
go.sum | 6 years ago |
README.md
lntop
lntop
is an interactive text-mode channels viewer for Unix systems.
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