-
Notifications
You must be signed in to change notification settings - Fork 26
/
config.go
55 lines (47 loc) · 1.1 KB
/
config.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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
/*
Copyright (C) CESS. All rights reserved.
Copyright (C) Cumulus Encrypted Storage System. All rights reserved.
SPDX-License-Identifier: Apache-2.0
*/
package configs
import "time"
const (
//
TimeFormat = "2006-01-02 15:04:05"
// the time to wait for the event, in seconds
TimeToWaitEvent = time.Duration(time.Second * 30)
// Default config file
DefaultConfigFile = "conf.yaml"
//
DefaultWorkspace = "/"
//
DefaultServicePort = 4001
//
DefaultRpcAddr1 = "wss://testnet-rpc0.cess.cloud/ws/"
DefaultRpcAddr2 = "wss://testnet-rpc1.cess.cloud/ws/"
//
DefaultBootNodeAddr = "_dnsaddr.boot-kldr-testnet.cess.cloud"
//
DefaultDeossAddr = "http://deoss-pub-gateway.cess.cloud/"
)
const (
State_Offline = "offline"
)
const (
OrserState_CalcTag uint8 = 2
)
const (
Err_ctx_exceeded = "context deadline exceeded"
)
const (
DbDir = "db"
LogDir = "log"
SpaceDir = "space"
TagDir = "tag"
PoisDir = "pois"
AccDir = "acc"
RandomDir = "random"
PeersFile = "peers"
IdleProofFile = "idleproof"
ServiceProofFile = "serviceproof"
)