forked from ripple/ripple-client-desktop
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config-example.js
51 lines (40 loc) · 1.23 KB
/
config-example.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
/**
* Ripple Client Configuration
*
* Copy this file to config.js and edit to suit your preferences.
*/
var Options = {
// Rippled to connect
server: {
trace: false,
trusted: true,
local_signing: true,
servers: [
{ host: 's-west.ripple.com', port: 443, secure: true },
{ host: 's-east.ripple.com', port: 443, secure: true }
]
},
// Number of transactions each page has in balance tab notifications
transactions_per_page: 50,
// Number of ledgers ahead of the current ledger index where a tx is valid
tx_last_ledger: 3,
// Set max transaction fee for network in drops of XRP
max_tx_network_fee: 200000,
// Set max number of rows for orderbook
orderbook_max_rows: 20,
advanced_feature_switch: false,
gateway_max_limit: 1000000000
};
// Load client-side overrides
if (store.enabled) {
var settings = JSON.parse(store.get('ripple_settings') || '{}');
if (settings.server && settings.server.servers) {
Options.server.servers = settings.server.servers;
}
if (settings.advanced_feature_switch) {
Options.advanced_feature_switch = settings.advanced_feature_switch;
}
if (settings.max_tx_network_fee) {
Options.max_tx_network_fee = settings.max_tx_network_fee;
}
}