- add dev.Dockerfile to /lnd
- add entrypoint.sh to /lnd/docker
- pick random itest in /lnd/itest to modify
- in entrypoint.sh, replace
make itest
withmake itest icase=$NAME_OF_ITEST_SNAKE_CASE;
- run the shits
docker-compose build && docker-compose run --entrypoint "bash ./docker/entrypoint.sh" lnd
Do all this for setting up your nodes: https://github.com/lightningnetwork/lnd/blob/2efe5d527bfdb2c5c2c569bf507e957281548c5b/lntest/itest/lnd_misc_test.go#L1280
Use this
lnrpc
thing for your rpc calls https://github.com/lightningnetwork/lnd/blob/2efe5d527bfdb2c5c2c569bf507e957281548c5b/lntest/itest/lnd_misc_test.go#L1328Manually disable channel
https://github.com/lightningnetwork/lnd/blob/2efe5d527bfdb2c5c2c569bf507e957281548c5b/lntest/itest/lnd_misc_test.go#L1392
oh and in go here's how you print
fmt.Println("Tommy")