Skip to content

Commit c9fab14

Browse files
authored
Merge pull request #1806 from input-output-hk/jpraynaud/1787-configuration-cardano-node
Refactor: Cardano node configuration in infra
2 parents 9625476 + 297f7c6 commit c9fab14

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

57 files changed

+34203
-47
lines changed

.prettierignore

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
1+
demo/protocol-demo/artifacts/
12
docs/website/.docusaurus/
3+
mithril-client-wasm/pkg/
24
mithril-explorer/font.css.hbs
35
mithril-explorer/out/
46
mithril-explorer/.next/
57
mithril-explorer/explorer/
6-
mithril-client-wasm/pkg/
8+
mithril-infra/assets/docker/cardano/
79
mithril-test-lab/mithril-devnet/artifacts/
8-
demo/protocol-demo/artifacts/
910
mithril-test-lab/mithril-end-to-end/monitor/config/grafana/provisioning/dashboards/*.json
1011
mithril-test-lab/mithril-aggregator-fake/default_data/
1112
mithril-test-lab/mithril-devnet/configuration/

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ As a minor extension, we have adopted a slightly different versioning convention
2121

2222
- Support for `Cardano node` `8.12.2` in the signer and the aggregator.
2323

24+
- Refactor the Cardano node configuration in the infrastructure.
25+
2426
- Add prettier configuration to standardize the code formatting in the repository.
2527

2628
- **UNSTABLE** Cardano transactions certification:
Lines changed: 188 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,188 @@
1+
{
2+
"collateralPercentage": 150,
3+
"costModels": {
4+
"PlutusV1": [
5+
197209,
6+
0,
7+
1,
8+
1,
9+
396231,
10+
621,
11+
0,
12+
1,
13+
150000,
14+
1000,
15+
0,
16+
1,
17+
150000,
18+
32,
19+
2477736,
20+
29175,
21+
4,
22+
29773,
23+
100,
24+
29773,
25+
100,
26+
29773,
27+
100,
28+
29773,
29+
100,
30+
29773,
31+
100,
32+
29773,
33+
100,
34+
100,
35+
100,
36+
29773,
37+
100,
38+
150000,
39+
32,
40+
150000,
41+
32,
42+
150000,
43+
32,
44+
150000,
45+
1000,
46+
0,
47+
1,
48+
150000,
49+
32,
50+
150000,
51+
1000,
52+
0,
53+
8,
54+
148000,
55+
425507,
56+
118,
57+
0,
58+
1,
59+
1,
60+
150000,
61+
1000,
62+
0,
63+
8,
64+
150000,
65+
112536,
66+
247,
67+
1,
68+
150000,
69+
10000,
70+
1,
71+
136542,
72+
1326,
73+
1,
74+
1000,
75+
150000,
76+
1000,
77+
1,
78+
150000,
79+
32,
80+
150000,
81+
32,
82+
150000,
83+
32,
84+
1,
85+
1,
86+
150000,
87+
1,
88+
150000,
89+
4,
90+
103599,
91+
248,
92+
1,
93+
103599,
94+
248,
95+
1,
96+
145276,
97+
1366,
98+
1,
99+
179690,
100+
497,
101+
1,
102+
150000,
103+
32,
104+
150000,
105+
32,
106+
150000,
107+
32,
108+
150000,
109+
32,
110+
150000,
111+
32,
112+
150000,
113+
32,
114+
148000,
115+
425507,
116+
118,
117+
0,
118+
1,
119+
1,
120+
61516,
121+
11218,
122+
0,
123+
1,
124+
150000,
125+
32,
126+
148000,
127+
425507,
128+
118,
129+
0,
130+
1,
131+
1,
132+
148000,
133+
425507,
134+
118,
135+
0,
136+
1,
137+
1,
138+
2477736,
139+
29175,
140+
4,
141+
0,
142+
82363,
143+
4,
144+
150000,
145+
5000,
146+
0,
147+
1,
148+
150000,
149+
32,
150+
197209,
151+
0,
152+
1,
153+
1,
154+
150000,
155+
32,
156+
150000,
157+
32,
158+
150000,
159+
32,
160+
150000,
161+
32,
162+
150000,
163+
32,
164+
150000,
165+
32,
166+
150000,
167+
32,
168+
3345831,
169+
1,
170+
1
171+
]
172+
},
173+
"executionPrices": {
174+
"prMem": 5.77e-2,
175+
"prSteps": 7.21e-5
176+
},
177+
"lovelacePerUTxOWord": 34482,
178+
"maxBlockExUnits": {
179+
"exUnitsMem": 50000000,
180+
"exUnitsSteps": 40000000000
181+
},
182+
"maxCollateralInputs": 3,
183+
"maxTxExUnits": {
184+
"exUnitsMem": 10000000,
185+
"exUnitsSteps": 10000000000
186+
},
187+
"maxValueSize": 5000
188+
}
Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
{
2+
"avvmDistr": {},
3+
"blockVersionData": {
4+
"heavyDelThd": "300000000000",
5+
"maxBlockSize": "2000000",
6+
"maxHeaderSize": "2000000",
7+
"maxProposalSize": "700",
8+
"maxTxSize": "4096",
9+
"mpcThd": "20000000000000",
10+
"scriptVersion": 0,
11+
"slotDuration": "20000",
12+
"softforkRule": {
13+
"initThd": "900000000000000",
14+
"minThd": "600000000000000",
15+
"thdDecrement": "50000000000000"
16+
},
17+
"txFeePolicy": {
18+
"multiplier": "43946000000",
19+
"summand": "155381000000000"
20+
},
21+
"unlockStakeEpoch": "18446744073709551615",
22+
"updateImplicit": "10000",
23+
"updateProposalThd": "100000000000000",
24+
"updateVoteThd": "1000000000000"
25+
},
26+
"bootStakeholders": {
27+
"318488dc356f6034104804b2cb6a2dcc055202491386fb0d5af7c3ba": 1,
28+
"3a3c2ffaf066c8f211a1bdfd844f767ac453b1d94915e725c5867467": 1,
29+
"3ae8eabb4e0626cea0ba38d8303d59514dae9c307d93bad3d259e4a9": 1
30+
},
31+
"heavyDelegation": {
32+
"318488dc356f6034104804b2cb6a2dcc055202491386fb0d5af7c3ba": {
33+
"cert": "b80e06679023284236df3464dc6aab3f56f23cb721d5943c59632ac77004f76ae415b6d291606c7194509e1fefa0c8341eed269bd0e0e1433302b00912a4230c",
34+
"delegatePk": "9ELoyHN4GVtXrFzAJZApAVjrhwftqEFVoDXl9ebtTwpe/lG4b5ZkgH3DqwHE1hNJFRsnYs4zYzMmdbnoR7lfUA==",
35+
"issuerPk": "MHFL9SqIV6KuXSAvp08jHBRtHwNsDJMsCxbmXLorSbfLAORg7waqVL8NEaKU3Lb0FBIX5sHVC21i1M/c0jrnlA==",
36+
"omega": 0
37+
},
38+
"3a3c2ffaf066c8f211a1bdfd844f767ac453b1d94915e725c5867467": {
39+
"cert": "ce91b8e35b67de2236fa79b353d1c4ebd97ad4b4cc89056a1acfc217ece8e91fbffc4bf44604a96a1064c9997f6cd39b81284aadfac752056eafc6b5996a6509",
40+
"delegatePk": "Grpf6iTqd9aWc3QWvfthNv2l8Pp0X2tKpoIoPn0+Dy1+ow60UTu9i1j4KPjp1uzrnM4JoUcmkCGF507fPagO8w==",
41+
"issuerPk": "1FPA7qSOPVDlNZoQAuoB2dnm+tKI5td6+BO5sJ2rswVxuS6S6sjBFVfVz/VXfKTcEt/AKyffgzWXAtPCnhC1jw==",
42+
"omega": 0
43+
},
44+
"3ae8eabb4e0626cea0ba38d8303d59514dae9c307d93bad3d259e4a9": {
45+
"cert": "908dd25262598050d60cb24928a7059fea3726a1dd7764645edab654d3b4e37ba69acd4841454f70f0f643305ede0ef66dc0ea9747a2387da05d2af77963f30a",
46+
"delegatePk": "1zYduiReianx6HJHgQqtira7XY6M/Ol4tFj/O7TzTLcNfgazJm8pq5y6HAANwl91iL1pDZuIgFjzI+2i1Z6y2Q==",
47+
"issuerPk": "Pgj3IyTJDyxr+t5fcMuM3aPtyNCxOo4T9sr78BNbgWBGwlTGo0P6UtzNLyqloLsH8V6Lv6kYMdWELAiEyfCpkw==",
48+
"omega": 0
49+
}
50+
},
51+
"nonAvvmBalances": {
52+
"FHnt4NL7yPXqn7xha3WB99wYLxAc1FhceD3D1pQWaCthk9RYB46aGb6Tbq2KxV5": "0",
53+
"FHnt4NL7yPXwj8m191s48v1RZtQqA2sVHpamzStuXTuAnzYUSR6hRPqhYmW3MY4": "0",
54+
"FHnt4NL7yPXzVZ5xexcb7rWqCYWuFU7y6Pp4tLTiv6txhDcpQ2m7AFGMirsi1F1": "30000000000000000",
55+
"FHnt4NL7yPY27r794z4UiYJ3RwezucDRLX94Pzy6mYPNUNWboB71S9xUm2WEDrv": "0"
56+
},
57+
"protocolConsts": {
58+
"k": 432,
59+
"protocolMagic": 4
60+
},
61+
"startTime": 1686789000
62+
}
Lines changed: 114 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,114 @@
1+
{
2+
"AlonzoGenesisFile": "alonzo-genesis.json",
3+
"AlonzoGenesisHash": "8bedcaea62107d8a79ed5293b0027b3f8706a4bc2422f33380cb1fd01c6fa6ec",
4+
"ByronGenesisFile": "byron-genesis.json",
5+
"ByronGenesisHash": "785eb88427e136378a15b0a152a8bfbeec7a611529ccda29c43a1e60ffb48eaa",
6+
"ConwayGenesisFile": "conway-genesis.json",
7+
"ConwayGenesisHash": "79766b0c18076e9abefc806526714f30d42b14dba9f187fb316bd4e70c815ef4",
8+
"EnableP2P": true,
9+
"ExperimentalHardForksEnabled": true,
10+
"ExperimentalProtocolsEnabled": true,
11+
"LastKnownBlockVersion-Alt": 0,
12+
"LastKnownBlockVersion-Major": 3,
13+
"LastKnownBlockVersion-Minor": 1,
14+
"MinNodeVersion": "8.11.0",
15+
"PeerSharing": false,
16+
"Protocol": "Cardano",
17+
"RequiresNetworkMagic": "RequiresMagic",
18+
"ShelleyGenesisFile": "shelley-genesis.json",
19+
"ShelleyGenesisHash": "f94457ec45a0c6773057a529533cf7ccf746cb44dabd56ae970e1dbfb55bfdb2",
20+
"TargetNumberOfActivePeers": 20,
21+
"TargetNumberOfEstablishedPeers": 50,
22+
"TargetNumberOfKnownPeers": 100,
23+
"TargetNumberOfRootPeers": 100,
24+
"TestAllegraHardForkAtEpoch": 0,
25+
"TestAlonzoHardForkAtEpoch": 0,
26+
"TestMaryHardForkAtEpoch": 0,
27+
"TestShelleyHardForkAtEpoch": 0,
28+
"TraceAcceptPolicy": true,
29+
"TraceBlockFetchClient": false,
30+
"TraceBlockFetchDecisions": false,
31+
"TraceBlockFetchProtocol": false,
32+
"TraceBlockFetchProtocolSerialised": false,
33+
"TraceBlockFetchServer": false,
34+
"TraceChainDb": true,
35+
"TraceChainSyncBlockServer": false,
36+
"TraceChainSyncClient": false,
37+
"TraceChainSyncHeaderServer": false,
38+
"TraceChainSyncProtocol": false,
39+
"TraceConnectionManager": true,
40+
"TraceDNSResolver": true,
41+
"TraceDNSSubscription": true,
42+
"TraceDiffusionInitialization": true,
43+
"TraceErrorPolicy": true,
44+
"TraceForge": true,
45+
"TraceHandshake": true,
46+
"TraceInboundGovernor": true,
47+
"TraceIpSubscription": true,
48+
"TraceLedgerPeers": true,
49+
"TraceLocalChainSyncProtocol": false,
50+
"TraceLocalConnectionManager": true,
51+
"TraceLocalErrorPolicy": true,
52+
"TraceLocalHandshake": true,
53+
"TraceLocalRootPeers": true,
54+
"TraceLocalTxSubmissionProtocol": false,
55+
"TraceLocalTxSubmissionServer": false,
56+
"TraceMempool": true,
57+
"TraceMux": false,
58+
"TracePeerSelection": true,
59+
"TracePeerSelectionActions": true,
60+
"TracePublicRootPeers": true,
61+
"TraceServer": true,
62+
"TraceTxInbound": false,
63+
"TraceTxOutbound": false,
64+
"TraceTxSubmissionProtocol": false,
65+
"TracingVerbosity": "NormalVerbosity",
66+
"TurnOnLogMetrics": true,
67+
"TurnOnLogging": true,
68+
"defaultBackends": [
69+
"KatipBK"
70+
],
71+
"defaultScribes": [
72+
[
73+
"StdoutSK",
74+
"stdout"
75+
]
76+
],
77+
"hasEKG": 12788,
78+
"hasPrometheus": [
79+
"127.0.0.1",
80+
12798
81+
],
82+
"minSeverity": "Info",
83+
"options": {
84+
"mapBackends": {
85+
"cardano.node.metrics": [
86+
"EKGViewBK"
87+
],
88+
"cardano.node.resources": [
89+
"EKGViewBK"
90+
]
91+
},
92+
"mapSubtrace": {
93+
"cardano.node.metrics": {
94+
"subtrace": "Neutral"
95+
}
96+
}
97+
},
98+
"rotation": {
99+
"rpKeepFilesNum": 10,
100+
"rpLogLimitBytes": 5000000,
101+
"rpMaxAgeHours": 24
102+
},
103+
"setupBackends": [
104+
"KatipBK"
105+
],
106+
"setupScribes": [
107+
{
108+
"scFormat": "ScText",
109+
"scKind": "StdoutSK",
110+
"scName": "stdout",
111+
"scRotation": null
112+
}
113+
]
114+
}

0 commit comments

Comments
 (0)