Skip to content

utilities for mocking interactions on the lightning network

License

Notifications You must be signed in to change notification settings

xplorfin/lndmock

Repository files navigation

Coverage Status Renovate enabled Build status Build status Go Report Card

What is this?

This is a helper library by entropy that hopes to imitate some of the functionality of polar for continuous integration. Right now this supports creating btcd and lnd nodes and funding them. You can check out an example in lnd_test. This also supports mocking bolt11 invoices

Note:

This library was open sourced as a dependency for another project. While this is functional, documentation may be lacking for a bit.

Helpful tips:

This command will remove lndmock containers:

docker stop $(docker ps -a -q --filter label="created-by=docker-utils") || true && docker rm -v $(docker ps -a -q --filter label="created-by=docker-utils") || true && docker network rm lightning-network || true && docker volume rm $( docker volume ls -q --filter label="created-by=docker-utils") || true

Docker Images

Docker images are currently built in this repository. Eventually, we'd like to support bitcoind, eclair, c-lightning, etc and automate retroactive/proactive builds (e.g. a consistent lnd master image). Polar has some docs here and we're probably best off following their lead