-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig_example.js
41 lines (35 loc) · 1.03 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
/**
* Ripple Admin Console Configuration
*
* Copy this file to config.js and edit to suit your preferences.
*/
var Options = {
// Rippled to connect
connection: {
server: 'wss://s1.ripple.com',
trace: false,
maxFeeXRP: '0.0002',
timeout: 30000,
},
// 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 number of rows for orderbook
orderbook_max_rows: 20,
gateway_max_limit: 1000000000,
// Should only be used for development purposes
persistent_auth: false
};
// Load client-side overrides
if (store.enabled) {
var settings = JSON.parse(store.get('ripple_settings') || '{}');
if (settings.connection) {
Object.keys(Options.connection).forEach(function(key) {
if (Options.connection[key] && !settings.connection[key]) {
settings.connection[key] = Options.connection[key];
}
});
Options.connection = settings.connection;
}
}