Skip to content

Commit

Permalink
fix: use new tapd image (#181)
Browse files Browse the repository at this point in the history
  • Loading branch information
tiero authored Jun 1, 2023
1 parent f84dbb3 commit 04a21f8
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 18 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ $ nigiri start
```
- Use the `--liquid` flag to let you do experiments with the Liquid sidechain. A liquid daemon and a block explorer are also started when passing this flag.

- Use the `--ln` flag to start a Core Lightning node, a LND node and a Taro daemon.
- Use the `--ln` flag to start a Core Lightning node, a LND node and a Tap daemon.

### Stop nigiri

Expand Down Expand Up @@ -171,8 +171,8 @@ el1qqwwx9gyrcrjrhgnrnjq9dq9t4hykmr6ela46ej63dnkdkcg8veadrvg5p0xg0zd6j3aug74cv9m4
$ nigiri cln listpeers
# LND
$ nigiri lnd listpeers
# Taro
$ nigiri taro assets list
# Tap (Taro)
$ nigiri tap assets list
```

### Connect Core Lightning to LND
Expand Down
4 changes: 2 additions & 2 deletions cmd/nigiri/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ func main() {
&logs,
&mint,
&push,
&taro,
&tap,
&start,
&update,
&faucet,
Expand Down Expand Up @@ -123,7 +123,7 @@ func provisionResourcesToDatadir(datadir string) error {
if err := makeDirectoryIfNotExists(filepath.Join(datadir, "volumes", "lightningd")); err != nil {
return err
}
if err := makeDirectoryIfNotExists(filepath.Join(datadir, "volumes", "taro")); err != nil {
if err := makeDirectoryIfNotExists(filepath.Join(datadir, "volumes", "tapd")); err != nil {
return err
}

Expand Down
10 changes: 5 additions & 5 deletions cmd/nigiri/resources/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ services:

lnd:
container_name: lnd
image: ghcr.io/vulpemventures/lnd
image: ghcr.io/vulpemventures/lnd:v0.16.2-beta
user: 1000:1000
depends_on:
- bitcoin
Expand All @@ -182,15 +182,15 @@ services:
- "10009:10009" # grpc"
- "18080:18080" # rest"

taro:
container_name: taro
image: ghcr.io/vulpemventures/taro
tap:
container_name: tap
image: ghcr.io/vulpemventures/tapd:v0.2.0
user: 1000:1000
depends_on:
- bitcoin
- lnd
volumes:
- ./volumes/taro:/data/.taro
- ./volumes/tapd:/data/.tapd
- ./volumes/lnd:/data/.lnd
environment:
HOME: /data
Expand Down
4 changes: 2 additions & 2 deletions cmd/nigiri/start.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ func startAction(ctx *cli.Context) error {

if isLN {
// LND
servicesToRun = append(servicesToRun, "taro")
servicesToRun = append(servicesToRun, "tap")
// Core Lightning Network
servicesToRun = append(servicesToRun, "cln")
}
Expand All @@ -64,7 +64,7 @@ func startAction(ctx *cli.Context) error {
// add also LN services if needed
if isLN {
// LND
servicesToRun = append(servicesToRun, "taro")
servicesToRun = append(servicesToRun, "tap")
// Core Lightning Network
servicesToRun = append(servicesToRun, "cln")
}
Expand Down
12 changes: 6 additions & 6 deletions cmd/nigiri/taro.go → cmd/nigiri/tap.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@ import (
"github.com/urfave/cli/v2"
)

var taro = cli.Command{
Name: "taro",
Usage: "invoke taro command line interface",
Action: taroAction,
var tap = cli.Command{
Name: "tap",
Usage: "invoke tap command line interface",
Action: tapAction,
}

func taroAction(ctx *cli.Context) error {
func tapAction(ctx *cli.Context) error {

if isRunning, _ := nigiriState.GetBool("running"); !isRunning {
return errors.New("nigiri is not running")
Expand All @@ -34,7 +34,7 @@ func taroAction(ctx *cli.Context) error {
if isCi {
ttyOption = "-i"
}
rpcArgs := []string{"exec", ttyOption, "taro", "tarocli", "--network=" + network}
rpcArgs := []string{"exec", ttyOption, "tap", "tapcli", "--network=" + network, "--tapddir=/data/.tapd"}
cmdArgs := append(rpcArgs, ctx.Args().Slice()...)
bashCmd := exec.Command("docker", cmdArgs...)
bashCmd.Stdin = os.Stdin
Expand Down

0 comments on commit 04a21f8

Please sign in to comment.