File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change 32
32
AlonzoGenesisFile = "alonzo-genesis.json" ;
33
33
} // lib . optionalAttrs ( env . nodeConfig ? ConwayGenesisFile ) {
34
34
ConwayGenesisFile = "conway-genesis.json" ;
35
+ } // lib . optionalAttrs ( env . nodeConfig ? CheckpointsFile ) {
36
+ CheckpointsFile = "checkpoints.json" ;
35
37
} ;
36
38
nodeConfig = pkgs . writeText
37
39
"config.json"
43
45
( builtins . toJSON
44
46
( env . nodeConfigBp // genesisAttrs ) ) ;
45
47
48
+ peerSnapshot = pkgs . writeText
49
+ "peer-snapshot.json"
50
+ ( builtins . toJSON env . peerSnapshot ) ;
51
+
46
52
topologyConfig = pkgs . cardanoLib . mkTopology env ;
47
53
48
54
# Genesis files are the same for env.nodeConfig and env.nodeConfigBp
54
60
mkdir -p "share/${ name } "
55
61
jq . < "${ nodeConfig } " > share/${ name } /config.json
56
62
jq . < "${ nodeConfigBp } " > share/${ name } /config-bp.json
63
+ jq . < "${ peerSnapshot } " > share/${ name } /peer-snapshot.json
57
64
jq . < "${ topologyConfig } " > share/${ name } /topology.json
58
65
cp -n --remove-destination -v \
59
66
"${ ByronGenesisFile } " \
69
76
"${ env . nodeConfig . ConwayGenesisFile } " \
70
77
share/${ name } /conway-genesis.json
71
78
'' }
79
+ ${ lib . optionalString ( env . nodeConfig ? CheckpointsFile ) ''
80
+ cp -n --remove-destination -v \
81
+ "${ env . nodeConfig . CheckpointsFile } " \
82
+ share/${ name } /checkpoints.json
83
+ '' }
72
84
'' ;
73
85
74
86
in pkgs . runCommand name {
You can’t perform that action at this time.
0 commit comments