forked from cardano-foundation/cardano-rosetta
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add 'config/' from commit '58fadb189ef45ff4d016235d7d41e55ba0a522d4'
- Loading branch information
Showing
21 changed files
with
16,201 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
#!/bin/bash | ||
|
||
# Download configuration files from Hydra, for a given network. | ||
|
||
CARDANO_CONFIG_URL=$1 | ||
CARDANO_NETWORK=$2 | ||
|
||
mkdir -p \ | ||
network/$CARDANO_NETWORK/cardano-node \ | ||
network/$CARDANO_NETWORK/genesis \ | ||
network/$CARDANO_NETWORK/cardano-db-sync | ||
|
||
wget -q $CARDANO_CONFIG_URL/$CARDANO_NETWORK-topology.json -O network/$CARDANO_NETWORK/cardano-node/topology.json | ||
wget -q $CARDANO_CONFIG_URL/$CARDANO_NETWORK-config.json -O network/$CARDANO_NETWORK/cardano-node/config.json | ||
sed -i 's@\("ByronGenesisFile"\):.*$@\1: "../genesis/byron.json",@' network/$CARDANO_NETWORK/cardano-node/config.json | ||
sed -i 's@\("ShelleyGenesisFile"\):.*$@\1: "../genesis/shelley.json",@' network/$CARDANO_NETWORK/cardano-node/config.json | ||
sed -i 's@\("AlonzoGenesisFile"\):.*$@\1: "../genesis/alonzo.json",@' network/$CARDANO_NETWORK/cardano-node/config.json | ||
|
||
wget -q $CARDANO_CONFIG_URL/$CARDANO_NETWORK-byron-genesis.json -O network/$CARDANO_NETWORK/genesis/byron.json | ||
wget -q $CARDANO_CONFIG_URL/$CARDANO_NETWORK-shelley-genesis.json -O network/$CARDANO_NETWORK/genesis/shelley.json | ||
wget -q $CARDANO_CONFIG_URL/$CARDANO_NETWORK-alonzo-genesis.json -O network/$CARDANO_NETWORK/genesis/alonzo.json | ||
|
||
wget -q $CARDANO_CONFIG_URL/$CARDANO_NETWORK-db-sync-config.json -O network/$CARDANO_NETWORK/cardano-db-sync/config.json | ||
sed -i 's@\("NodeConfigFile"\):.*$@\1: "../cardano-node/config.json",@' network/$CARDANO_NETWORK/cardano-db-sync/config.json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
#!/bin/bash | ||
|
||
# Update an upstream repository if there's any new file updates. | ||
|
||
STATUS=$(git status -s) | ||
if [ -z "$STATUS" ]; then | ||
echo "Nothing to update." | ||
else | ||
git config --global user.email "noreply@github.com" | ||
git config --global user.name "Automated Bot" | ||
git add . | ||
git commit -m "Upload configuration from: $1" | ||
git push --set-upstream origin "master" | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
name: Refresh Configurations | ||
|
||
on: | ||
schedule: | ||
- cron: '00 01 * * *' | ||
workflow_dispatch: | ||
|
||
jobs: | ||
nightly: | ||
runs-on: ubuntu-latest | ||
steps: | ||
|
||
- name: Checkout repository | ||
uses: actions/checkout@v2.3.3 | ||
|
||
- name: Get latest Hydra Build | ||
id: latest | ||
shell: bash | ||
run: | | ||
latest=$(curl -I https://hydra.iohk.io/job/Cardano/iohk-nix/cardano-deployment/latest-finished/download/1/index.html | grep location | sed "s@location: \(.*\)/index.html@\1@") | ||
echo "::set-output name=url::$latest" | ||
- name: Download from Hydra (mainnet) | ||
shell: bash | ||
run: | | ||
.github/scripts/download-all.sh $CARDANO_CONFIG_URL $CARDANO_NETWORK | ||
env: | ||
CARDANO_CONFIG_URL: ${{ steps.latest.outputs.url }} | ||
CARDANO_NETWORK: mainnet | ||
|
||
- name: Download from Hydra (testnet) | ||
shell: bash | ||
run: | | ||
.github/scripts/download-all.sh $CARDANO_CONFIG_URL $CARDANO_NETWORK | ||
env: | ||
CARDANO_CONFIG_URL: ${{ steps.latest.outputs.url }} | ||
CARDANO_NETWORK: testnet | ||
|
||
- name: Download from Hydra (alonzo-white) | ||
shell: bash | ||
run: | | ||
.github/scripts/download-all.sh $CARDANO_CONFIG_URL $CARDANO_NETWORK | ||
env: | ||
CARDANO_CONFIG_URL: ${{ steps.latest.outputs.url }} | ||
CARDANO_NETWORK: alonzo-white | ||
|
||
- name: Push new configurations | ||
shell: bash | ||
run: | | ||
.github/scripts/update-when-new.sh $CARDANO_CONFIG_URL | ||
env: | ||
CARDANO_CONFIG_URL: ${{ steps.latest.outputs.url }} |
117 changes: 117 additions & 0 deletions
117
config/network/alonzo-white/cardano-db-sync/config.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,117 @@ | ||
{ | ||
"EnableLogMetrics": false, | ||
"EnableLogging": true, | ||
"NetworkName": "alonzo-white", | ||
"NodeConfigFile": "../cardano-node/config.json", | ||
"RequiresNetworkMagic": "RequiresMagic", | ||
"defaultBackends": [ | ||
"KatipBK" | ||
], | ||
"defaultScribes": [ | ||
[ | ||
"StdoutSK", | ||
"stdout" | ||
] | ||
], | ||
"hasPrometheus": [ | ||
"127.0.0.1", | ||
12698 | ||
], | ||
"minSeverity": "Info", | ||
"options": { | ||
"cfokey": { | ||
"value": "Release-1.0.0" | ||
}, | ||
"mapBackends": {}, | ||
"mapSeverity": { | ||
"db-sync-node": "Info", | ||
"db-sync-node.Mux": "Error", | ||
"db-sync-node.Subscription": "Error" | ||
}, | ||
"mapSubtrace": { | ||
"#ekgview": { | ||
"contents": [ | ||
[ | ||
{ | ||
"contents": "cardano.epoch-validation.benchmark", | ||
"tag": "Contains" | ||
}, | ||
[ | ||
{ | ||
"contents": ".monoclock.basic.", | ||
"tag": "Contains" | ||
} | ||
] | ||
], | ||
[ | ||
{ | ||
"contents": "cardano.epoch-validation.benchmark", | ||
"tag": "Contains" | ||
}, | ||
[ | ||
{ | ||
"contents": "diff.RTS.cpuNs.timed.", | ||
"tag": "Contains" | ||
} | ||
] | ||
], | ||
[ | ||
{ | ||
"contents": "#ekgview.#aggregation.cardano.epoch-validation.benchmark", | ||
"tag": "StartsWith" | ||
}, | ||
[ | ||
{ | ||
"contents": "diff.RTS.gcNum.timed.", | ||
"tag": "Contains" | ||
} | ||
] | ||
] | ||
], | ||
"subtrace": "FilterTrace" | ||
}, | ||
"#messagecounters.aggregation": { | ||
"subtrace": "NoTrace" | ||
}, | ||
"#messagecounters.ekgview": { | ||
"subtrace": "NoTrace" | ||
}, | ||
"#messagecounters.katip": { | ||
"subtrace": "NoTrace" | ||
}, | ||
"#messagecounters.monitoring": { | ||
"subtrace": "NoTrace" | ||
}, | ||
"#messagecounters.switchboard": { | ||
"subtrace": "NoTrace" | ||
}, | ||
"benchmark": { | ||
"contents": [ | ||
"GhcRtsStats", | ||
"MonotonicClock" | ||
], | ||
"subtrace": "ObservableTrace" | ||
}, | ||
"cardano.epoch-validation.utxo-stats": { | ||
"subtrace": "NoTrace" | ||
} | ||
} | ||
}, | ||
"rotation": { | ||
"rpKeepFilesNum": 10, | ||
"rpLogLimitBytes": 5000000, | ||
"rpMaxAgeHours": 24 | ||
}, | ||
"setupBackends": [ | ||
"AggregationBK", | ||
"KatipBK" | ||
], | ||
"setupScribes": [ | ||
{ | ||
"scFormat": "ScText", | ||
"scKind": "StdoutSK", | ||
"scName": "stdout", | ||
"scRotation": null | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,106 @@ | ||
{ | ||
"AlonzoGenesisFile": "../genesis/alonzo.json", | ||
"AlonzoGenesisHash": "c7cdcccbc6adec169f74784de720db8414665591d87498b513266d41680c587f", | ||
"ApplicationName": "cardano-sl", | ||
"ApplicationVersion": 0, | ||
"ByronGenesisFile": "../genesis/byron.json", | ||
"ByronGenesisHash": "4ba13e5d77bb5e243f84f50fd851b4957b43ea93a6f7df5616d6bd25b8f11de0", | ||
"LastKnownBlockVersion-Alt": 0, | ||
"LastKnownBlockVersion-Major": 5, | ||
"LastKnownBlockVersion-Minor": 1, | ||
"MaxKnownMajorProtocolVersion": 4, | ||
"PBftSignatureThreshold": 1.1, | ||
"Protocol": "Cardano", | ||
"RequiresNetworkMagic": "RequiresMagic", | ||
"ShelleyGenesisFile": "../genesis/shelley.json", | ||
"ShelleyGenesisHash": "b72001cddc21713dd63d899c1993a5b0728cd909eb261fff0e50d10f46340f1f", | ||
"TestAllegraHardForkAtEpoch": 2, | ||
"TestEnableDevelopmentHardForkEras": true, | ||
"TestEnableDevelopmentNetworkProtocols": true, | ||
"TestMaryHardForkAtEpoch": 3, | ||
"TestShelleyHardForkAtEpoch": 1, | ||
"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": [ | ||
"127.0.0.1", | ||
12798 | ||
], | ||
"minSeverity": "Debug", | ||
"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 | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{ | ||
"Producers": [ | ||
{ | ||
"addr": "relays.alonzo-white.dev.cardano.org", | ||
"port": 3001, | ||
"valency": 2 | ||
} | ||
] | ||
} |
Oops, something went wrong.