-
Notifications
You must be signed in to change notification settings - Fork 178
/
filenames.go
37 lines (31 loc) · 1.91 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
36
37
package bootstrap
import (
"path/filepath"
"github.com/onflow/flow-go/ledger/complete/wal"
)
// 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
PathRootBlock = filepath.Join(DirnamePublicBootstrap, "root-block.json")
PathRootQC = filepath.Join(DirnamePublicBootstrap, "root-qc.json")
PathRootResult = filepath.Join(DirnamePublicBootstrap, "root-execution-result.json")
PathRootSeal = filepath.Join(DirnamePublicBootstrap, "root-block-seal.json")
PathRootCheckpoint = filepath.Join(DirnameExecutionState, wal.RootCheckpointFilename) // 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
)