Skip to content

Commit

Permalink
chore(packages): upgrade dolos to 0.9.0 (#241)
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 28, 2024
1 parent ee0cb0b commit 691e7a9
Show file tree
Hide file tree
Showing 2 changed files with 96 additions and 0 deletions.
40 changes: 40 additions & 0 deletions packages/dolos/dolos-0.9.0.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: dolos
version: 0.9.0
description: Dolos is a Cardano data node
dependencies:
- cardano-config >= 20240515
installSteps:
- file:
filename: daemon.toml
source: files/daemon-0.9.0.toml.gotmpl
- docker:
containerName: dolos
image: ghcr.io/txpipe/dolos:v0.9.0
command:
- dolos
- daemon
binds:
- '{{ .Paths.DataDir }}:/etc/dolos'
- '{{ .Paths.DataDir }}/data:/data'
- '{{ .Paths.ContextDir }}/config/{{ .Context.Network }}:/config'
- '{{ .Paths.ContextDir }}/dolos-ipc:/ipc'
ports:
- "30013"
- "50051"
pullOnly: false
outputs:
- name: grpc
description: Dolos gRPC service
value: 'http://localhost:{{ index (index .Ports "dolos") "50051" }}'
- name: relay
description: Dolos Ouroboros Node-to-Node service
value: 'localhost:{{ index (index .Ports "dolos") "30013" }}'
- name: socket-path
description: Path to the Dolos Ouroboros Node-to-Client UNIX socket
value: '{{ .Paths.ContextDir }}/dolos-ipc/node.socket'
tags:
- docker
- linux
- darwin
- amd64
- arm64
56 changes: 56 additions & 0 deletions packages/dolos/files/daemon-0.9.0.toml.gotmpl
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
# https://dolos.txpipe.io/configuration
[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 = "/data/db"
wal_size = 1000

[relay]
listen_address = "[::]:30013"
magic = {{ .Context.NetworkMagic }}

[sync]
pull_batch_size = 200

[submit]
prune_height = 10000
# validate_phase_1 = false
# validate_phase_2 = false

[genesis]
byron_path = "/config/byron-genesis.json"
shelley_path = "/config/shelley-genesis.json"
alonzo_path = "/config/alonzo-genesis.json"

[mithril]
{{- if eq .Context.Network "mainnet" }}
aggregator = "https://aggregator.release-mainnet.api.mithril.network/aggregator"
{{- else if eq .Context.Network "preprod" }}
aggregator = "https://aggregator.release-preprod.api.mithril.network/aggregator"
{{- else if eq .Context.Network "preview" }}
aggregator = "https://aggregator.prerelease-preview.api.mithril.network/aggregator"
{{ else }}
aggregator = "https://aggregator.prerelease-sanchonet.api.mithril.network/aggregator"
{{- end }}
{{- if eq .Context.Network "mainnet" }}
genesis_key = "5b3139312c36362c3134302c3138352c3133382c31312c3233372c3230372c3235302c3134342c32372c322c3138382c33302c31322c38312c3135352c3230342c31302c3137392c37352c32332c3133382c3139362c3231372c352c31342c32302c35372c37392c33392c3137365d"
{{ else }}
genesis_key = "5b3132372c37332c3132342c3136312c362c3133372c3133312c3231332c3230372c3131372c3139382c38352c3137362c3139392c3136322c3234312c36382c3132332c3131392c3134352c31332c3233322c3234332c34392c3232392c322c3234392c3230352c3230352c33392c3233352c34345d"
{{- end }}

[serve.grpc]
listen_address = "[::]:50051"

[serve.ouroboros]
listen_path = "/ipc/dolos.socket"
magic = {{ .Context.NetworkMagic }}

[logging]
max_level = "debug"

0 comments on commit 691e7a9

Please sign in to comment.