Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion compose/Dockerfile.dingo
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
ARG CARDANO_CLI_VERSION="${CARDANO_CLI_VERSION:-10.8.0.0}"
ARG CARDANO_NODE_VERSION="${CARDANO_NODE_VERSION:-10.4.1}"
ARG DINGO_VERSION="${DINGO_VERSION:-0.13.0}"
ARG DINGO_VERSION="${DINGO_VERSION:-latest}"
ARG UV_VERSION="${UV_VERSION:-0.6.11}"
# Blink Labs images are built from source on Debian Bookworm
FROM ghcr.io/blinklabs-io/cardano-cli:${CARDANO_CLI_VERSION} AS cardano-cli
Expand Down
3 changes: 3 additions & 0 deletions compose/configurator/configurator.sh
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,9 @@ set_start_time() {

# .startTime
jq ".startTime = ${SYSTEM_START_UNIX}" "${BYRON_GENESIS_JSON}" | write_file "${BYRON_GENESIS_JSON}"

# .ftsSeed (Dingo as of 0.17 needs this as a string, empty so removing it)
jq "del(.ftsSeed)" "${BYRON_GENESIS_JSON}" | write_file "${BYRON_GENESIS_JSON}"
}


Expand Down
4 changes: 2 additions & 2 deletions compose/testnets/cardano_node_10.4.1_dingo/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Description

A 5 pools testnet using cardano-node version 10.4.1 testing consistency between nodes runnning UTxO-HD with LMDB and in-memory: We run 3 nodes with in-memory DB and 2 node with LMDB and check they are still consistent. A single Dingo 0.13.0 node is added to the network as a client not producing blocks.
A 5 pools testnet using cardano-node version 10.4.1 testing consistency between nodes runnning UTxO-HD with LMDB and in-memory: We run 3 nodes with in-memory DB and 2 node with LMDB and check they are still consistent. A single Dingo node is added to the network as a client not producing blocks.

## Cardano-Node

Expand All @@ -10,7 +10,7 @@ A 5 pools testnet using cardano-node version 10.4.1 testing consistency between

## Dingo

- **Version**: 0.13.0
- **Version**: latest
- **Branch**: -
- **Source/Compiled**: Compiled

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ services:
context: "../../"
dockerfile: "Dockerfile.dingo"
args:
DINGO_VERSION: '0.13.0'
DINGO_VERSION: 'latest'
volumes:
- d1:/data/db
environment:
Expand Down
19 changes: 19 additions & 0 deletions compose/testnets/cardano_node_10.5.1_dingo/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# Description

A 5 pools testnet using cardano-node version 10.5.1 testing consistency between nodes runnning UTxO-HD with LMDB and in-memory: We run 3 nodes with in-memory DB and 2 node with LMDB and check they are still consistent. A single Dingo node is added to the network as a client not producing blocks.

## Cardano-Node

- **Version**: 10.5.1
- **Branch**: -
- **Source/Compiled**: Compiled

## Dingo

- **Version**: latest
- **Branch**: -
- **Source/Compiled**: Compiled

## Testnet

- **Pools**: 5
139 changes: 139 additions & 0 deletions compose/testnets/cardano_node_10.5.1_dingo/docker-compose.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,139 @@
---

x-base: &base
image: ${registry}${testnet}:latest
restart: on-failure
build:
context: "../../"
dockerfile: "Dockerfile.compiled"
args:
CARDANO_NODE_VERSION: "10.5.1"

x-tracer-base: &tracerbase
image: ${registry}${testnet}_tracer:latest
restart: on-failure
build:
context: "../../tracer/"
# ideally we would like to use a precompiled version of the tracer
# but unfortunately it's not yet packaged in archives
# https://github.com/IntersectMBO/cardano-node/issues/6228
dockerfile: "Dockerfile.compiled"
args:
CARDANO_NODE_REF: "10.5.1"

x-env: &env
POOL_ID: "0" # Placeholder required for override
UTXO_HD_WITH: "mem"

services:
tracer:
<<: *tracerbase
hostname: tracer.example
container_name: tracer
volumes:
- tracer:/opt/cardano-tracer
command:
- "--config"
- "tracer-config.yaml"

d1:
<<: *base
image: ${registry}${testnet}_dingo:latest
restart: on-failure
hostname: d1.example
container_name: d1
build:
context: "../../"
dockerfile: "Dockerfile.dingo"
args:
DINGO_VERSION: 'latest'
volumes:
- d1:/data/db
environment:
<<: *env

p1:
<<: *base
container_name: p1
hostname: p1.example
volumes:
- p1:/opt/cardano-node/data
- tracer:/opt/cardano-tracer
environment:
<<: *env
POOL_ID: "1"
UTXO_HD_WITH: "hd"

p2:
<<: *base
container_name: p2
hostname: p2.example
volumes:
- p2:/opt/cardano-node/data
- tracer:/opt/cardano-tracer
environment:
<<: *env
POOL_ID: "2"

p3:
<<: *base
container_name: p3
hostname: p3.example
volumes:
- p3:/opt/cardano-node/data
- tracer:/opt/cardano-tracer
environment:
<<: *env
POOL_ID: "3"

p4:
<<: *base
container_name: p4
hostname: p4.example
volumes:
- p4:/opt/cardano-node/data
- tracer:/opt/cardano-tracer
environment:
<<: *env
POOL_ID: "4"
UTXO_HD_WITH: "hd"


p5:
<<: *base
container_name: p5
hostname: p5.example
volumes:
- p5:/opt/cardano-node/data
- tracer:/opt/cardano-tracer
environment:
<<: *env
POOL_ID: "5"

sidecar:
image: ${registry}${testnet}_sidecar:latest
restart: on-failure
container_name: sidecar
hostname: sidecar.example
environment:
POOLS: "5"
EXTRA_NODES: "d1"

tracer-sidecar:
image: ${registry}${testnet}_tracer-sidecar:latest
restart: on-failure
container_name: tracer-sidecar
hostname: tracer-sidecar.example
environment:
POOLS: "5"
volumes:
- tracer:/opt/cardano-tracer

volumes:
tracer:
d1:
p1:
p2:
p3:
p4:
p5:
134 changes: 134 additions & 0 deletions compose/testnets/cardano_node_10.5.1_dingo/testnet.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,134 @@
--- # Required Testnet Parameters
poolCount: 5
poolCost: 340000000
poolMargin: 0.0
poolPledge: 0
delegatedSupply: 600000000000000
systemStart: 'now'
systemStartDelay: 5
networkMagic: 42
testnetDomain: example

--- # Optional Byron Genesis Overide
protocolConsts:
k: 432

--- # Optional Shelley Genesis Overide
epochLength: 86400
securityParam: 432
maxLovelaceSupply: 45000000000000000
protocolParams:
decentralisationParam: 0
protocolVersion:
major: 10
minor: 0

--- # Optional Alonzo Genesis Overide

--- # Optional Conway Genesis Overide

--- # Optional Node Config Overide
ExperimentalHardForksEnabled: true
ExperimentalProtocolsEnabled: true
LastKnownBlockVersion-Alt: 0
LastKnownBlockVersion-Major: 6
LastKnownBlockVersion-Minor: 0
MaxConcurrencyBulkSync: 2
MaxConcurrencyDeadline: 4
MaxKnownMajorProtocolVersion: 2
PeerSharing: true
TargetNumberOfActiveBigLedgerPeers: 2
TargetNumberOfActivePeers: 3
TargetNumberOfEstablishedBigLedgerPeers: 3
TargetNumberOfEstablishedPeers: 3
TargetNumberOfKnownBigLedgerPeers: 10
TargetNumberOfKnownPeers: 30
TargetNumberOfRootPeers: 10
TestAllegraHardForkAtEpoch: 0
TestAlonzoHardForkAtEpoch: 0
TestBabbageHardForkAtEpoch: 0
TestConwayHardForkAtEpoch: 0
TestMaryHardForkAtEpoch: 0
TestShelleyHardForkAtEpoch: 0
TraceConnectionManager: true
TraceConnectionManagerTransitions: true
TraceDNSResolver: true
TraceDNSSubscription: true
TraceDebugPeerSelection: true
TraceForge: true
TraceForgeStateInfo: true
TraceHandshake: true
TraceInboundGovernor: true
TraceIpSubscription: true
TraceLedgerPeers: true
TraceLocalConnectionManager: true
TraceLocalHandshake: true
TraceLocalRootPeers: true
TracePeerSelection: true
TracePeerSelectionActions: true
TracePublicRootPeers: true
TraceServer: true
TurnOnLoggingMetrics: true
TurnOnLogging: true
UseTraceDispatcher: true
TraceOptionForwarder:
connQueueSize: 64
disconnQueueSize: 128
maxReconnectDeplay: 30
TraceOptions:
'':
backends:
- EKGBackend
- Forwarder
detail: DNormal
severity: Notice
BlockFetch.Client.CompletedBlockFetch:
maxFrequency: 2
BlockFetch.Decision:
severity: Silence
ChainDB:
severity: Info
ChainDB.AddBlockEvent.AddBlockValidation:
severity: Silence
ChainDB.AddBlockEvent.AddBlockValidation.ValidCandidate:
maxFrequency: 2
ChainDB.AddBlockEvent.AddedBlockToQueue:
maxFrequency: 2
ChainDB.AddBlockEvent.AddedBlockToVolatileDB:
maxFrequency: 2
ChainDB.CopyToImmutableDBEvent.CopiedBlockToImmutableDB:
maxFrequency: 2
ChainSync.Client:
severity: Warning
Forge.Loop:
severity: Info
Forge.StateInfo:
severity: Info
Mempool:
severity: Silence
Net.ConnectionManager.Remote:
severity: Info
Net.ConnectionManager.Remote.ConnectionManagerCounters:
severity: Silence
Net.ErrorPolicy:
severity: Info
Net.ErrorPolicy.Local:
severity: Info
Net.InboundGovernor:
severity: Warning
Net.InboundGovernor.Remote:
severity: Info
Net.Mux.Remote:
severity: Info
Net.PeerSelection:
severity: Silence
Net.PeerSelection.Actions:
severity: Info
Net.Subscription.DNS:
severity: Info
Net.Subscription.IP:
severity: Info
Resources:
severity: Silence
Startup.DiffusionInit:
severity: Info
19 changes: 19 additions & 0 deletions compose/testnets/cardano_node_with_adversary_and_dingo/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# Description

A 5 pools testnet using cardano-node version 10.5.1 testing consistency between nodes runnning UTxO-HD with LMDB and in-memory: We run 3 nodes with in-memory DB and 2 node with LMDB and check they are still consistent. A single Dingo node is added to the network as a client not producing blocks.

## Cardano-Node

- **Version**: 10.5.1
- **Branch**: -
- **Source/Compiled**: Compiled

## Dingo

- **Version**: latest
- **Branch**: -
- **Source/Compiled**: Compiled

## Testnet

- **Pools**: 5
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"localRoots": [
{
"accessPoints": [
{"address": "p1.example", "port": 3001},
{"address": "p2.example", "port": 3001},
{"address": "p3.example", "port": 3001},
{"address": "p4.example", "port": 3001},
{"address": "p5.example", "port": 3001}
],
"advertise": true,
"trustable": true,
"valency": 2
}
],
"publicRoots": [],
"useLedgerAfterSlot": 0
}
Loading