Skip to content

Commit

Permalink
Merge pull request #31 from blinklabs-io/feat/sync-configs
Browse files Browse the repository at this point in the history
feat: sync configs with cardano-node
  • Loading branch information
wolf31o2 authored Sep 16, 2023
2 parents d48f881 + 4410a4f commit 2e98712
Show file tree
Hide file tree
Showing 29 changed files with 211 additions and 350 deletions.
2 changes: 1 addition & 1 deletion bin/entry-point
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ else
export CARDANO_NODE_SOCKET_PATH=${CARDANO_NODE_SOCKET_PATH:-/node-ipc/node.socket}
mkdir -p log-dir # do we need this?
exec cardano-db-sync \
--config /opt/cardano/config/${NETWORK}-db-sync-config.json \
--config /opt/cardano/config/${NETWORK}/db-sync-config.json \
--schema-dir /opt/cardano/schema \
--socket-path ${CARDANO_NODE_SOCKET_PATH} \
--state-dir /var/lib/cexplorer
Expand Down
53 changes: 0 additions & 53 deletions config/mainnet-topology.json

This file was deleted.

File renamed without changes.
File renamed without changes.
108 changes: 108 additions & 0 deletions config/mainnet/config-p2p.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,108 @@
{
"AlonzoGenesisFile": "alonzo-genesis.json",
"AlonzoGenesisHash": "7e94a15f55d1e82d10f09203fa1d40f8eede58fd8066542cf6566008068ed874",
"ApplicationName": "cardano-sl",
"ApplicationVersion": 1,
"ByronGenesisFile": "byron-genesis.json",
"ByronGenesisHash": "5f20df933584822601f9e3f8c024eb5eb252fe8cefb24d1317dc3d432e940ebb",
"ConwayGenesisFile": "conway-genesis.json",
"ConwayGenesisHash": "f28f1c1280ea0d32f8cd3143e268650d6c1a8e221522ce4a7d20d62fc09783e1",
"EnableP2P": true,
"LastKnownBlockVersion-Alt": 0,
"LastKnownBlockVersion-Major": 3,
"LastKnownBlockVersion-Minor": 0,
"MaxKnownMajorProtocolVersion": 2,
"Protocol": "Cardano",
"RequiresNetworkMagic": "RequiresNoMagic",
"ShelleyGenesisFile": "shelley-genesis.json",
"ShelleyGenesisHash": "1a3be38bcbb7911969283716ad7aa550250226b76a61fc51cc9a9a35d9276d81",
"TargetNumberOfActivePeers": 20,
"TargetNumberOfEstablishedPeers": 50,
"TargetNumberOfKnownPeers": 100,
"TargetNumberOfRootPeers": 100,
"TraceAcceptPolicy": true,
"TraceBlockFetchClient": false,
"TraceBlockFetchDecisions": false,
"TraceBlockFetchProtocol": false,
"TraceBlockFetchProtocolSerialised": false,
"TraceBlockFetchServer": false,
"TraceChainDb": true,
"TraceChainSyncBlockServer": false,
"TraceChainSyncClient": false,
"TraceChainSyncHeaderServer": false,
"TraceChainSyncProtocol": false,
"TraceConnectionManager": true,
"TraceDNSResolver": true,
"TraceDNSSubscription": true,
"TraceDiffusionInitialization": true,
"TraceErrorPolicy": true,
"TraceForge": true,
"TraceHandshake": false,
"TraceInboundGovernor": true,
"TraceIpSubscription": true,
"TraceLedgerPeers": true,
"TraceLocalChainSyncProtocol": false,
"TraceLocalErrorPolicy": true,
"TraceLocalHandshake": false,
"TraceLocalRootPeers": true,
"TraceLocalTxSubmissionProtocol": false,
"TraceLocalTxSubmissionServer": false,
"TraceMempool": true,
"TraceMux": false,
"TracePeerSelection": true,
"TracePeerSelectionActions": true,
"TracePublicRootPeers": true,
"TraceServer": true,
"TraceTxInbound": false,
"TraceTxOutbound": false,
"TraceTxSubmissionProtocol": false,
"TracingVerbosity": "NormalVerbosity",
"TurnOnLogMetrics": true,
"TurnOnLogging": true,
"defaultBackends": [
"KatipBK"
],
"defaultScribes": [
[
"StdoutSK",
"stdout"
]
],
"hasEKG": 12788,
"hasPrometheus": [
"0.0.0.0",
12798
],
"minSeverity": "Info",
"options": {
"mapBackends": {
"cardano.node.metrics": [
"EKGViewBK"
],
"cardano.node.resources": [
"EKGViewBK"
]
},
"mapSubtrace": {
"cardano.node.metrics": {
"subtrace": "Neutral"
}
}
},
"rotation": {
"rpKeepFilesNum": 10,
"rpLogLimitBytes": 5000000,
"rpMaxAgeHours": 24
},
"setupBackends": [
"KatipBK"
],
"setupScribes": [
{
"scFormat": "ScText",
"scKind": "StdoutSK",
"scName": "stdout",
"scRotation": null
}
]
}
8 changes: 5 additions & 3 deletions config/mainnet-config.json → config/mainnet/config.json
Original file line number Diff line number Diff line change
@@ -1,17 +1,19 @@
{
"AlonzoGenesisFile": "/opt/cardano/config/mainnet-alonzo-genesis.json",
"AlonzoGenesisFile": "alonzo-genesis.json",
"AlonzoGenesisHash": "7e94a15f55d1e82d10f09203fa1d40f8eede58fd8066542cf6566008068ed874",
"ApplicationName": "cardano-sl",
"ApplicationVersion": 1,
"ByronGenesisFile": "/opt/cardano/config/mainnet-byron-genesis.json",
"ByronGenesisFile": "byron-genesis.json",
"ByronGenesisHash": "5f20df933584822601f9e3f8c024eb5eb252fe8cefb24d1317dc3d432e940ebb",
"ConwayGenesisFile": "conway-genesis.json",
"ConwayGenesisHash": "f28f1c1280ea0d32f8cd3143e268650d6c1a8e221522ce4a7d20d62fc09783e1",
"LastKnownBlockVersion-Alt": 0,
"LastKnownBlockVersion-Major": 3,
"LastKnownBlockVersion-Minor": 0,
"MaxKnownMajorProtocolVersion": 2,
"Protocol": "Cardano",
"RequiresNetworkMagic": "RequiresNoMagic",
"ShelleyGenesisFile": "/opt/cardano/config/mainnet-shelley-genesis.json",
"ShelleyGenesisFile": "shelley-genesis.json",
"ShelleyGenesisHash": "1a3be38bcbb7911969283716ad7aa550250226b76a61fc51cc9a9a35d9276d81",
"TraceAcceptPolicy": true,
"TraceBlockFetchClient": false,
Expand Down
3 changes: 3 additions & 0 deletions config/mainnet/conway-genesis.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"genDelegs": {}
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"EnableLogMetrics": false,
"EnableLogging": true,
"NetworkName": "mainnet",
"NodeConfigFile": "/opt/cardano/config/mainnet-config.json",
"NodeConfigFile": "config.json",
"PrometheusPort": 8080,
"RequiresNetworkMagic": "RequiresNoMagic",
"defaultBackends": [
Expand Down
File renamed without changes.
21 changes: 21 additions & 0 deletions config/mainnet/topology-p2p.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"localRoots": [
{
"accessPoints": [],
"advertise": false,
"valency": 1
}
],
"publicRoots": [
{
"accessPoints": [
{
"address": "relays-new.cardano-mainnet.iohk.io",
"port": 3001
}
],
"advertise": false
}
],
"useLedgerAfterSlot": 84916732
}
9 changes: 9 additions & 0 deletions config/mainnet/topology.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"Producers": [
{
"addr": "relays-new.cardano-mainnet.iohk.io",
"port": 3001,
"valency": 2
}
]
}
113 changes: 0 additions & 113 deletions config/preprod-submit-api-config.json

This file was deleted.

27 changes: 0 additions & 27 deletions config/preprod-topology.json

This file was deleted.

File renamed without changes.
File renamed without changes.
Loading

0 comments on commit 2e98712

Please sign in to comment.