-
Notifications
You must be signed in to change notification settings - Fork 3
/
config.js
49 lines (49 loc) · 2.34 KB
/
config.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
const ip = require('ip')
module.exports = {
'rpc': {
'protocol': 'http',
'user': process.env.rpc_user ? process.env.rpc_user : 'root',
'pass': process.env.rpc_pass ? process.env.rpc_pass : 'bitcoin',
'host': process.env.host ? process.env.host : ip.address(),
'port': '8332',
'limit': 15
},
'db': {
'name': 'bitdb',
'url': 'mongodb://localhost:27017',
'index': {
'confirmed': {
'keys': [
'tx.h', 'blk.i', 'blk.t', 'blk.h',
'in.e.a', 'in.e.h', 'in.e.i', 'in.i',
'out.e.a', 'out.e.i', 'out.e.v', 'out.i',
'in.b0', 'in.b1', 'in.b2', 'in.b3', 'in.b4', 'in.b5', 'in.b6', 'in.b7', 'in.b8', 'in.b9', 'in.b10', 'in.b11', 'in.b12', 'in.b13', 'in.b14', 'in.b15',
'out.b0', 'out.b1', 'out.b2', 'out.b3', 'out.b4', 'out.b5', 'out.b6', 'out.b7', 'out.b8', 'out.b9', 'out.b10', 'out.b11', 'out.b12', 'out.b13', 'out.b14', 'out.b15',
'out.s0', 'out.s1', 'out.s2', 'out.s3', 'out.s4', 'out.s5', 'out.s6', 'out.s7', 'out.s8', 'out.s9', 'out.s10', 'out.s11', 'out.s12', 'out.s13', 'out.s14', 'out.s15'
],
'fulltext': ['out.s0', 'out.s1', 'out.s2', 'out.s3', 'out.s4', 'out.s5', 'out.s6', 'out.s7', 'out.s8', 'out.s9', 'out.s10', 'out.s11', 'out.s12', 'out.s13', 'out.s14', 'out.s15']
},
'unconfirmed': {
'keys': [
'tx.h',
'in.e.a', 'in.e.h', 'in.e.i', 'in.i',
'out.e.a', 'out.e.i', 'out.e.v', 'out.i',
'in.b0', 'in.b1', 'in.b2', 'in.b3', 'in.b4', 'in.b5', 'in.b6', 'in.b7', 'in.b8', 'in.b9', 'in.b10', 'in.b11', 'in.b12', 'in.b13', 'in.b14', 'in.b15',
'out.b0', 'out.b1', 'out.b2', 'out.b3', 'out.b4', 'out.b5', 'out.b6', 'out.b7', 'out.b8', 'out.b9', 'out.b10', 'out.b11', 'out.b12', 'out.b13', 'out.b14', 'out.b15',
'out.s0', 'out.s1', 'out.s2', 'out.s3', 'out.s4', 'out.s5', 'out.s6', 'out.s7', 'out.s8', 'out.s9', 'out.s10', 'out.s11', 'out.s12', 'out.s13', 'out.s14', 'out.s15'
],
'fulltext': ['out.s0', 'out.s1', 'out.s2', 'out.s3', 'out.s4', 'out.s5', 'out.s6', 'out.s7', 'out.s8', 'out.s9', 'out.s10', 'out.s11', 'out.s12', 'out.s13', 'out.s14', 'out.s15']
}
}
},
'zmq': {
'incoming': {
'host': process.env.host ? process.env.host : ip.address(),
'port': '28332'
},
'outgoing': {
'host': '0.0.0.0',
'port': '28339'
}
}
}