-
Notifications
You must be signed in to change notification settings - Fork 4
/
config.prod.js
84 lines (83 loc) · 2.21 KB
/
config.prod.js
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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
/**
* @file config for prod
* @author atom-yang
* @date 2019-07-23
*/
module.exports = {
sql: {
host: '127.0.0.1',
port: '3306',
user: 'root',
password: 'password',
database: 'aelf_main_chain',
connectionLimit: 100
},
redis: {
connection: {
host: '127.0.0.1',
port: 6379
},
keys: {
blocksCount: 'blocks_count',
blocksUnconfirmedCount: 'blocks_unconfirmed_count',
txsCount: 'txs_count',
txsUnconfirmedCount: 'txs_unconfirmed_count',
resourceCount: 'resource_count',
resourceUnconfirmedCount: 'resource_unconfirmed_count',
tokenCount: 'token_count',
LIBHeight: 'lib_height',
bestHeight: 'best_height'
}
},
scan: {
interval: 8000,
concurrentQueryLimit: 30,
host: 'http://13.231.179.27:8000',
maxInsert: 210
},
wallet: {
privateKey: 'f6e512a3c259e5f9af981d7f99d245aa5bc52fe448495e0b0dd56e8406be6f71'
},
contracts: {
// Token合约可以通过getContractAddressByName来获取
token: 'AElf.ContractNames.Token',
resource: 'AElf.ContractNames.TokenConverter',
tokenConverter: 'AElf.ContractNames.TokenConverter',
portkeyVersions: {
portkey: 'iupiTuL2cshxB9UNauXNXe9iyCcqka7jCotodcEHGpNXeLzqG', // testnet
portkeyV2: '238X6iw1j8YKcHvkDYVtYVbuYk2gJnK8UoNpVCtssynSpVC8hb' // testnet
},
},
contractsPortkeyVersions: {
portkey: 'iupiTuL2cshxB9UNauXNXe9iyCcqka7jCotodcEHGpNXeLzqG', // testnet
portkeyV2: '238X6iw1j8YKcHvkDYVtYVbuYk2gJnK8UoNpVCtssynSpVC8hb' // testnet
},
tps: {
minutes: 1, // minute
interval: 60, // s, 秒
scanInterval: 60 * 5, // s
delayTime: 30, // s
batchLimitTime: 60 * 10, // s
batchDayInterval: 24 * 3600, // s
maxQuery: 20,
maxInsert: 200
},
blockApi: 'http://127.0.0.1:7101',
mails: {
type: 'smtp', // smtp | sendmail
sendmailPath: '/usr/sbin/sendmail',
user: '[email protected]', // generated ethereal user
from: 'AElf scan <[email protected]>',
to: ['[email protected]'],
subject: 'error happened when scanning',
smtpConfig: {
host: 'smtp.domain.com',
port: 465,
secure: true,
auth: {
user: '[email protected]',
pass: 'password',
}
}
}
};