Skip to content

Commit

Permalink
fix: dolos start and persistence (#232)
Browse files Browse the repository at this point in the history
Signed-off-by: Chris Gianelloni <wolf31o2@blinklabs.io>
  • Loading branch information
wolf31o2 authored May 23, 2024
1 parent b8d1770 commit 1a2d87e
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 5 deletions.
9 changes: 6 additions & 3 deletions packages/dolos/dolos-0.7.0.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
name: dolos
version: 0.7.0
description: Dolos is a Cardano data node
dependencies:
- cardano-config >= 20240515
installSteps:
- docker:
containerName: dolos
Expand All @@ -9,11 +11,12 @@ installSteps:
- dolos
- daemon
binds:
- '{{ .Paths.DataDir }}/:/etc/dolos/'
- '{{ .Paths.DataDir }}:/etc/dolos'
- '{{ .Paths.DataDir }}/data:/data'
- '{{ .Paths.ContextDir }}/config/{{ .Context.Network }}:/config'
ports:
- "30013"
- "50051"
- "30013:30013"
- "50051:50051"
pullOnly: false
- file:
binary: true
Expand Down
8 changes: 6 additions & 2 deletions packages/dolos/files/daemon.toml.gotmpl
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,14 @@
[upstream]
peer_address = "{{ .Context.Network }}-node.world.dev.cardano.org:30000"
network_magic = {{ .Context.NetworkMagic }}
{{- if eq .Context.Network "mainnet" }}
is_testnet = false
{{ else }}
is_testnet = true
{{- end }}

[storage]
path = "./tmp/data"
path = "/data"
wal_size = 1000

[genesis]
Expand All @@ -27,7 +31,7 @@ listen_address = "[::]:50051"
[serve.ouroboros]
listen_address = "[::]:30013"
# https://github.com/txpipe/dolos/blob/main/examples/sync-mainnet/dolos.toml#L26
magic = 0
magic = {{ .Context.NetworkMagic }}

[logging]
max_level = "debug"

0 comments on commit 1a2d87e

Please sign in to comment.