|
85 | 85 | defaultLogConfig = import ./generic-log-config.nix; |
86 | 86 | defaultLogConfigLegacy = import ./generic-log-config-legacy.nix; |
87 | 87 | defaultExplorerLogConfig = import ./explorer-log-config.nix; |
| 88 | + defaultTracerConfig = import ./generic-tracer-config.nix; |
88 | 89 |
|
89 | 90 | mkExplorerConfig = name: nodeConfig: filterAttrs (k: v: v != null) { |
90 | 91 | NetworkName = name; |
|
139 | 140 | nodeConfigLegacy = defaultLogConfigLegacy // env.networkConfig // (env.extraTracerConfigLegacy or {}); |
140 | 141 | nodeConfigBp = mergeTraceOpts (defaultLogConfig // env.networkConfigBp) (env.extraTracerConfig or {}); |
141 | 142 | nodeConfigBpLegacy = defaultLogConfigLegacy // env.networkConfigBp // (env.extraTracerConfigLegacy or {}); |
| 143 | + tracerConfig = defaultTracerConfig // {inherit (fromJSON (readFile ./${name}/shelley-genesis.json)) networkMagic;}; |
142 | 144 | consensusProtocol = env.networkConfig.Protocol; |
143 | 145 | submitApiConfig = mkSubmitApiConfig name environments.${name}.nodeConfig; |
144 | 146 | dbSyncConfig = |
|
336 | 338 | <a class="button is-primary" href="${env}-submit-api-config.json">submit-api config</a> |
337 | 339 | <a class="button is-primary" href="${env}-mithril-signer-config.json">mithril-signer config</a> |
338 | 340 | <a class="button is-primary" href="rest-config.json">rest config</a> |
| 341 | + <a class="button is-primary" href="${env}-tracer-config.json">tracer config</a> |
339 | 342 | </div> |
340 | 343 | </td> |
341 | 344 | </tr> |
|
398 | 401 | ${jq}/bin/jq . < ${toFile "${env}-db-sync-config.json" (toJSON (value.dbSyncConfig // { NodeConfigFile = "${env}-config.json"; }))} > $out/${env}-db-sync-config.json |
399 | 402 | ${jq}/bin/jq . < ${toFile "${env}-submit-api-config.json" (toJSON value.submitApiConfig)} > $out/${env}-submit-api-config.json |
400 | 403 | ${jq}/bin/jq . < ${toFile "${env}-mithril-signer-config.json" (toJSON value.mithrilSignerConfig)} > $out/${env}-mithril-signer-config.json |
| 404 | + ${jq}/bin/jq . < ${toFile "${env}-tracer-config.json" (toJSON value.tracerConfig)} > $out/${env}-tracer-config.json |
401 | 405 | ${jq}/bin/jq . < ${mkTopology value} > $out/${env}-topology.json |
402 | 406 | ${jq}/bin/jq . < ${./${env}/peer-snapshot.json} > $out/${env}-peer-snapshot.json |
403 | 407 | ${optionalString (value.nodeConfig ? CheckpointsFile) '' |
|
416 | 420 | defaultExplorerLogConfig |
417 | 421 | defaultLogConfig |
418 | 422 | defaultLogConfigLegacy |
| 423 | + defaultTracerConfig |
419 | 424 | eachEnv |
420 | 425 | forEnvironments |
421 | 426 | forEnvironmentsCustom |
|
0 commit comments