-
Notifications
You must be signed in to change notification settings - Fork 178
/
filenames.go
35 lines (28 loc) · 1.67 KB
/
filenames.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
package bootstrap
import (
"path/filepath"
)
// Canonical filenames/paths for bootstrapping files.
var (
// The Node ID file is used as a helper by the transit scripts
FilenameNodeID = "node-id"
PathNodeID = filepath.Join(DirnamePublicBootstrap, FilenameNodeID) // %v will be replaced by NodeID
// execution state
DirnameExecutionState = "execution-state"
// public genesis information
DirnamePublicBootstrap = "public-root-information"
PathInternalNodeInfosPub = filepath.Join(DirnamePublicBootstrap, "node-internal-infos.pub.json")
PathFinallist = filepath.Join(DirnamePublicBootstrap, "finallist.pub.json")
PathNodeInfosPub = filepath.Join(DirnamePublicBootstrap, "node-infos.pub.json")
PathPartnerNodeInfoPrefix = filepath.Join(DirnamePublicBootstrap, "node-info.pub.")
PathNodeInfoPub = filepath.Join(DirnamePublicBootstrap, "node-info.pub.%v.json") // %v will be replaced by NodeID
PathRootProtocolStateSnapshot = filepath.Join(DirnamePublicBootstrap, "root-protocol-state-snapshot.json")
FilenameWALRootCheckpoint = "root.checkpoint"
PathRootCheckpoint = filepath.Join(DirnameExecutionState, FilenameWALRootCheckpoint) // only available on an execution node
// private genesis information
DirPrivateRoot = "private-root-information"
FilenameRandomBeaconPriv = "random-beacon.priv.json"
PathPrivNodeInfoPrefix = "node-info.priv."
PathNodeInfoPriv = filepath.Join(DirPrivateRoot, "private-node-info_%v", "node-info.priv.json") // %v will be replaced by NodeID
PathRandomBeaconPriv = filepath.Join(DirPrivateRoot, "private-node-info_%v", FilenameRandomBeaconPriv) // %v will be replaced by NodeID
)