mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-19 18:45:52 +00:00
Update npm test rippled.cfg to use [server]:
The test now generates a configuration file with the new configuration sections define by the Universal Port feature.
This commit is contained in:
committed by
Vinnie Falco
parent
ac0eaa912b
commit
150a3810a8
@@ -19,25 +19,42 @@ exports.default_server_config = {
|
||||
//
|
||||
// For testing, you might choose to target a persistent server at alternate ports.
|
||||
//
|
||||
|
||||
var lines = function() {return Array.prototype.slice.call(arguments).join('\n')}
|
||||
|
||||
exports.servers = {
|
||||
// A local test server.
|
||||
"alpha" : {
|
||||
//'trace': true,
|
||||
|
||||
// ripple-lib.Remote
|
||||
'local_fee' : true,
|
||||
'local_sequence' : true,
|
||||
'local_signing' : false,
|
||||
'trace' : false,
|
||||
'trusted' : true,
|
||||
|
||||
'websocket_ip': "127.0.0.1",
|
||||
'websocket_port': 5006,
|
||||
'websocket_ssl': false,
|
||||
'trusted' : true,
|
||||
// "peer_ip" : "127.0.0.1",
|
||||
// "peer_port" : 51235,
|
||||
|
||||
// json rpc test
|
||||
'rpc_ip' : "127.0.0.1",
|
||||
'rpc_port' : 5005,
|
||||
'local_sequence' : true,
|
||||
'trace' : false,
|
||||
// 'trace' : true,
|
||||
'local_fee' : true,
|
||||
// 'validation_seed' : "shhDFVsmS2GSu5vUyZSPXYfj1r79h",
|
||||
// 'validators' : "n9L8LZZCwsdXzKUN9zoVxs4YznYXZ9hEhsQZY7aVpxtFaSceiyDZ beta",
|
||||
'local_signing' : false,
|
||||
|
||||
// rippled.cfg
|
||||
'server' : lines('port_admin_http',
|
||||
'port_admin_ws'),
|
||||
|
||||
'port_admin_http': lines('port = 5005',
|
||||
'ip = 127.0.0.1',
|
||||
'admin = allow',
|
||||
'protocol = http'),
|
||||
|
||||
'port_admin_ws': lines('port = 5006',
|
||||
'ip = 127.0.0.1',
|
||||
'admin = allow',
|
||||
'protocol = ws'),
|
||||
|
||||
'node_db': 'type=memory'
|
||||
}
|
||||
};
|
||||
@@ -50,4 +67,4 @@ exports.http_servers = {
|
||||
}
|
||||
};
|
||||
|
||||
// vim:sw=2:sts=2:ts=8:et
|
||||
// vim:sw=2:sts=2:ts=8:et
|
||||
Reference in New Issue
Block a user