Skip to content

Commit 2e98712

Browse files
authored
Merge pull request #31 from blinklabs-io/feat/sync-configs
feat: sync configs with cardano-node
2 parents d48f881 + 4410a4f commit 2e98712

29 files changed

+211
-350
lines changed

bin/entry-point

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ else
3838
export CARDANO_NODE_SOCKET_PATH=${CARDANO_NODE_SOCKET_PATH:-/node-ipc/node.socket}
3939
mkdir -p log-dir # do we need this?
4040
exec cardano-db-sync \
41-
--config /opt/cardano/config/${NETWORK}-db-sync-config.json \
41+
--config /opt/cardano/config/${NETWORK}/db-sync-config.json \
4242
--schema-dir /opt/cardano/schema \
4343
--socket-path ${CARDANO_NODE_SOCKET_PATH} \
4444
--state-dir /var/lib/cexplorer

config/mainnet-topology.json

Lines changed: 0 additions & 53 deletions
This file was deleted.
File renamed without changes.
File renamed without changes.

config/mainnet/config-p2p.json

Lines changed: 108 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,108 @@
1+
{
2+
"AlonzoGenesisFile": "alonzo-genesis.json",
3+
"AlonzoGenesisHash": "7e94a15f55d1e82d10f09203fa1d40f8eede58fd8066542cf6566008068ed874",
4+
"ApplicationName": "cardano-sl",
5+
"ApplicationVersion": 1,
6+
"ByronGenesisFile": "byron-genesis.json",
7+
"ByronGenesisHash": "5f20df933584822601f9e3f8c024eb5eb252fe8cefb24d1317dc3d432e940ebb",
8+
"ConwayGenesisFile": "conway-genesis.json",
9+
"ConwayGenesisHash": "f28f1c1280ea0d32f8cd3143e268650d6c1a8e221522ce4a7d20d62fc09783e1",
10+
"EnableP2P": true,
11+
"LastKnownBlockVersion-Alt": 0,
12+
"LastKnownBlockVersion-Major": 3,
13+
"LastKnownBlockVersion-Minor": 0,
14+
"MaxKnownMajorProtocolVersion": 2,
15+
"Protocol": "Cardano",
16+
"RequiresNetworkMagic": "RequiresNoMagic",
17+
"ShelleyGenesisFile": "shelley-genesis.json",
18+
"ShelleyGenesisHash": "1a3be38bcbb7911969283716ad7aa550250226b76a61fc51cc9a9a35d9276d81",
19+
"TargetNumberOfActivePeers": 20,
20+
"TargetNumberOfEstablishedPeers": 50,
21+
"TargetNumberOfKnownPeers": 100,
22+
"TargetNumberOfRootPeers": 100,
23+
"TraceAcceptPolicy": true,
24+
"TraceBlockFetchClient": false,
25+
"TraceBlockFetchDecisions": false,
26+
"TraceBlockFetchProtocol": false,
27+
"TraceBlockFetchProtocolSerialised": false,
28+
"TraceBlockFetchServer": false,
29+
"TraceChainDb": true,
30+
"TraceChainSyncBlockServer": false,
31+
"TraceChainSyncClient": false,
32+
"TraceChainSyncHeaderServer": false,
33+
"TraceChainSyncProtocol": false,
34+
"TraceConnectionManager": true,
35+
"TraceDNSResolver": true,
36+
"TraceDNSSubscription": true,
37+
"TraceDiffusionInitialization": true,
38+
"TraceErrorPolicy": true,
39+
"TraceForge": true,
40+
"TraceHandshake": false,
41+
"TraceInboundGovernor": true,
42+
"TraceIpSubscription": true,
43+
"TraceLedgerPeers": true,
44+
"TraceLocalChainSyncProtocol": false,
45+
"TraceLocalErrorPolicy": true,
46+
"TraceLocalHandshake": false,
47+
"TraceLocalRootPeers": true,
48+
"TraceLocalTxSubmissionProtocol": false,
49+
"TraceLocalTxSubmissionServer": false,
50+
"TraceMempool": true,
51+
"TraceMux": false,
52+
"TracePeerSelection": true,
53+
"TracePeerSelectionActions": true,
54+
"TracePublicRootPeers": true,
55+
"TraceServer": true,
56+
"TraceTxInbound": false,
57+
"TraceTxOutbound": false,
58+
"TraceTxSubmissionProtocol": false,
59+
"TracingVerbosity": "NormalVerbosity",
60+
"TurnOnLogMetrics": true,
61+
"TurnOnLogging": true,
62+
"defaultBackends": [
63+
"KatipBK"
64+
],
65+
"defaultScribes": [
66+
[
67+
"StdoutSK",
68+
"stdout"
69+
]
70+
],
71+
"hasEKG": 12788,
72+
"hasPrometheus": [
73+
"0.0.0.0",
74+
12798
75+
],
76+
"minSeverity": "Info",
77+
"options": {
78+
"mapBackends": {
79+
"cardano.node.metrics": [
80+
"EKGViewBK"
81+
],
82+
"cardano.node.resources": [
83+
"EKGViewBK"
84+
]
85+
},
86+
"mapSubtrace": {
87+
"cardano.node.metrics": {
88+
"subtrace": "Neutral"
89+
}
90+
}
91+
},
92+
"rotation": {
93+
"rpKeepFilesNum": 10,
94+
"rpLogLimitBytes": 5000000,
95+
"rpMaxAgeHours": 24
96+
},
97+
"setupBackends": [
98+
"KatipBK"
99+
],
100+
"setupScribes": [
101+
{
102+
"scFormat": "ScText",
103+
"scKind": "StdoutSK",
104+
"scName": "stdout",
105+
"scRotation": null
106+
}
107+
]
108+
}

config/mainnet-config.json renamed to config/mainnet/config.json

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,19 @@
11
{
2-
"AlonzoGenesisFile": "/opt/cardano/config/mainnet-alonzo-genesis.json",
2+
"AlonzoGenesisFile": "alonzo-genesis.json",
33
"AlonzoGenesisHash": "7e94a15f55d1e82d10f09203fa1d40f8eede58fd8066542cf6566008068ed874",
44
"ApplicationName": "cardano-sl",
55
"ApplicationVersion": 1,
6-
"ByronGenesisFile": "/opt/cardano/config/mainnet-byron-genesis.json",
6+
"ByronGenesisFile": "byron-genesis.json",
77
"ByronGenesisHash": "5f20df933584822601f9e3f8c024eb5eb252fe8cefb24d1317dc3d432e940ebb",
8+
"ConwayGenesisFile": "conway-genesis.json",
9+
"ConwayGenesisHash": "f28f1c1280ea0d32f8cd3143e268650d6c1a8e221522ce4a7d20d62fc09783e1",
810
"LastKnownBlockVersion-Alt": 0,
911
"LastKnownBlockVersion-Major": 3,
1012
"LastKnownBlockVersion-Minor": 0,
1113
"MaxKnownMajorProtocolVersion": 2,
1214
"Protocol": "Cardano",
1315
"RequiresNetworkMagic": "RequiresNoMagic",
14-
"ShelleyGenesisFile": "/opt/cardano/config/mainnet-shelley-genesis.json",
16+
"ShelleyGenesisFile": "shelley-genesis.json",
1517
"ShelleyGenesisHash": "1a3be38bcbb7911969283716ad7aa550250226b76a61fc51cc9a9a35d9276d81",
1618
"TraceAcceptPolicy": true,
1719
"TraceBlockFetchClient": false,

config/mainnet/conway-genesis.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"genDelegs": {}
3+
}

config/mainnet-db-sync-config.json renamed to config/mainnet/db-sync-config.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"EnableLogMetrics": false,
33
"EnableLogging": true,
44
"NetworkName": "mainnet",
5-
"NodeConfigFile": "/opt/cardano/config/mainnet-config.json",
5+
"NodeConfigFile": "config.json",
66
"PrometheusPort": 8080,
77
"RequiresNetworkMagic": "RequiresNoMagic",
88
"defaultBackends": [
File renamed without changes.

config/mainnet/topology-p2p.json

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
{
2+
"localRoots": [
3+
{
4+
"accessPoints": [],
5+
"advertise": false,
6+
"valency": 1
7+
}
8+
],
9+
"publicRoots": [
10+
{
11+
"accessPoints": [
12+
{
13+
"address": "relays-new.cardano-mainnet.iohk.io",
14+
"port": 3001
15+
}
16+
],
17+
"advertise": false
18+
}
19+
],
20+
"useLedgerAfterSlot": 84916732
21+
}

0 commit comments

Comments
 (0)