Sign inSign up

exceltior/litecoin-daemon

By exceltior

Updated about 5 years ago

Litecoin daemon that acts as a binary.

Image
0

106

exceltior/litecoin-daemon repository overview

Litecoin daemon instructions

This document shows how to run the litecoin daemon as a binary.

More info about litecoin daemon options at https://litecoin.info/index.php/Litecoin.conf

Build process

docker build -t litecoin-daemon:v0.18.1 .

# or

make build

Run

To run container as daemon use

docker run --name litecoin-daemon -P litecoin-daemon:v0.18.1

This will configure exposed ports dynamically.

To use a different data dir than /home/litecoin/.litecoin, change LITECOIN_DATA environment variable.

docker run -e LITECOIN_DATA=/var/lib/litecoind -P litecoin-daemon:v0.18.1

It's also possible to use any Litecoin argument from https://litecoin.info/index.php/Litecoin.conf

sudo docker run --name litecoin-mine -P litecoin-mine \
    -regtest=1 \
    -rpcallowip=127.0.0.1 \
    -rpcauth='<userpw>'

Test

Run in docker container

sudo docker run --name litecoin-mine -p 19332:19332 -p 19444:19444 litecoin-mine \
    -regtest=1 \
    -rpcallowip=127.0.0.1 \
    -rpcauth='test:530827f38f93b43ed12af0b3ad25a288dc02ed74d6d7857862df51fc56c416f9'

Test JSON-RPC

curl http://test:-530827f38f93b43ed12af0b3ad25a288dc02ed74d6d7857862df51fc56c416f9=@0.0.0.0:19332/ \
    -d '{"jsonrpc":"1.0","id":"1","method":"getnetworkinfo","params":[]}'

Ports

Mainnet
  • 9332(JSON-RPC)
  • 9333(P2P)
Testnet
  • 19332(JSON-RPC)
  • 19333(P2P)
RegTest
  • 19332(JSON-RPC)
  • 19444(P2P)

Tag summary

Content type

Image

Digest

Size

68.5 MB

Last updated

about 5 years ago

docker pull exceltior/litecoin-daemon:0.18.1