Sign inSign up

provable/litecore-node

By provable

Updated about 6 years ago

Litecore node with insight-lite-api preinstalled.

Image
0

167

provable/litecore-node repository overview

Litecore node

Github project

Configurations through env variables:

  • MODE: can be testnet or livenet (default)

The node is configured to listen on port 3001 and will store chain relative data inside the /home/node/data folder.

Execute
docker run -e MODE=testnet -p 3001:3001 -v $(pwd)/data:/home/node/data --name ltc_node provable/litecore-node
Check logs
tail -f $(pwd)/data/debug.log
Check api is working

curl http://localhost:3001/insight-lite-api/sync

{
  "status": "syncing",
  "blockChainHeight": 248869,
  "syncPercentage": 53,
  "height": 248869,
  "error": null,
  "type": "bitcore node"
}
Troubleshooting:
EACCESS error

Error: EACCES: permission denied, open '/home/node/data/bitcoin.conf'

Be careful the permission inside the docker are equals to those on the host, in particular:

  • uid and gid inside the docker should match those on the host. If not, overwrite them using the -u option
docker run ... -u 1001:1001 provable/litecore-node
  • check $(pwd)/data doesn't have set root access, otherwise changes it through
chown -R auser:agroup $(pwd)/data 

Tag summary

Content type

Image

Digest

Size

656.6 MB

Last updated

about 6 years ago

docker pull provable/litecore-node