forked from phpcoinn/node
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.00.php
More file actions
105 lines (82 loc) · 2.7 KB
/
config.00.php
File metadata and controls
105 lines (82 loc) · 2.7 KB
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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
<?php
/**
* Default config file
*/
// Default database connection
$_config['db_connect'] = 'mysql:host=localhost;dbname=phpcoin_00;charset=utf8';
$_config['db_user'] = 'phpcoin';
$_config['db_pass'] = 'phpcoin';
// Allow others to connect to the node api (if set to false, only the below 'allowed_hosts' are allowed)
$_config['public_api'] = true;
// Hosts that are allowed to mine on this node
$_config['allowed_hosts'] = ['*'];
// The initial peers to sync from
$_config['initial_peer_list'] = [
'https://main1.phpcoin.net',
'https://main2.phpcoin.net',
'https://main3.phpcoin.net'
];
// does not peer with any of the peers. Uses the seed peers and syncs only from those peers. Requires a cronjob on sync.php
$_config['passive_peering'] = false;
// limit number of peers for propagate
$_config['peers_limit']=30;
// set custom interface to which server listens
//$_config['interface']="";
// set custom proxy for outgoing requests
//$_config['proxy']="";
// set node to offline, do not send or receive peer requests
$_config['offline']=false;
// set outgoing proxy for peer requests
$_config['proxy']=null;
// The maximum transactions to accept from a single peer
$_config['peer_max_mempool'] = 100;
// Block accepting transfers from addresses blacklisted by the PHPCoin devs
$_config['use_official_blacklist'] = true;
// Recheck the last blocks
$_config['sync_recheck_blocks'] = 10;
// Enable setting a new hostname (should be used only if you want to change the hostname)
$_config['allow_hostname_change'] = false;
// Enable log output to the specified file
$_config['enable_logging'] = true;
// The specified file to write to (this should not be publicly visible)
$_config['log_file'] = 'tmp/phpcoin.log';
// Log verbosity (default 0, maximum 5)
$_config['log_verbosity'] = 0;
// Log to server log, e.g. error_log to apache
$_config['server_log'] = false;
/**
* Miner config
*/
$_config['miner']=false;
$_config['miner_public_key']="";
$_config['miner_private_key']="";
$_config['miner_cpu']=0;
/**
* Generator config
*/
$_config['generator']=false;
$_config['generator_public_key']="";
$_config['generator_private_key']="";
/**
* Allow web admin of node
*/
$_config['admin']=false;
$_config['admin_password']='';
//login to admin panel with private key
$_config['admin_public_key']='';
/**
* Masternode configuration
*/
$_config['masternode']=false;
$_config['masternode_public_key']="";
$_config['masternode_private_key']="";
/**
* Configuration for decentralized apps
*/
$_config['dapps']=false;
$_config['dapps_public_key']="";
$_config['dapps_private_key']="";
$_config['dapps_anonymous']=false;
$_config['dapps_disable_auto_propagate']=true;
// set server to maintenance mode
//$_config['maintenance']=1;