Skip to content
This repository has been archived by the owner on Jun 11, 2024. It is now read-only.

🚸 Update default ports #7283

Closed
wants to merge 5 commits into from
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions examples/dpos-mainchain/config/default/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -2152,10 +2152,10 @@
"seedPeers": [
{
"ip": "127.0.0.1",
"port": 5000
"port": 7667
}
],
"port": 5000
"port": 7667
},
"transactionPool": {
"maxTransactions": 4096,
Expand Down
12 changes: 7 additions & 5 deletions framework/src/schema/application_config_schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@
*
*/

import { DEFAULT_HOST, DEFAULT_PORT_P2P, DEFAULT_PORT_RPC } from '../constants';

const moduleConfigSchema = {
type: 'object',
propertyNames: {
Expand Down Expand Up @@ -392,18 +394,18 @@ export const applicationConfigSchema = {
rpc: {
modes: ['ipc'],
ws: {
port: 8080,
host: '127.0.0.1',
port: DEFAULT_PORT_RPC,
host: DEFAULT_HOST,
path: '/ws',
},
http: {
port: 8000,
host: '127.0.0.1',
port: DEFAULT_PORT_RPC,
host: DEFAULT_HOST,
},
},
network: {
seedPeers: [],
port: 5000,
port: DEFAULT_PORT_P2P,
},
transactionPool: {
maxTransactions: 4096,
Expand Down
4 changes: 2 additions & 2 deletions framework/test/unit/__snapshots__/application.spec.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -2213,15 +2213,15 @@ Object {
"rpc": Object {
"http": Object {
"host": "127.0.0.1",
"port": 8000,
"port": 7887,
},
"modes": Array [
"ipc",
],
"ws": Object {
"host": "127.0.0.1",
"path": "/ws",
"port": 8080,
"port": 7887,
},
},
"system": Object {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,14 @@ Object {
"hostIP": "127.0.0.1",
"maxInboundConnections": 100,
"maxOutboundConnections": 20,
"port": 5000,
"port": 7667,
"seedPeers": Array [],
"whitelistedPeers": Array [],
},
"rpc": Object {
"http": Object {
"host": "127.0.0.1",
"port": 8000,
"port": 7887,
},
"ipc": Object {
"path": "/User/lisk/.lisk/beta-sdk-app/socket/ipc",
Expand All @@ -43,7 +43,7 @@ Object {
],
"ws": Object {
"host": "127.0.0.1",
"port": 8000,
"port": 7887,
},
},
"system": Object {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ Object {
"logFileName": "lisk.log",
},
"network": Object {
"port": 5000,
"port": 7667,
"seedPeers": Array [],
},
"networkVersion": "1.1",
Expand All @@ -35,15 +35,15 @@ Object {
"rpc": Object {
"http": Object {
"host": "127.0.0.1",
"port": 8000,
"port": 7887,
},
"modes": Array [
"ipc",
],
"ws": Object {
"host": "127.0.0.1",
"path": "/ws",
"port": 8080,
"port": 7887,
},
},
"system": Object {
Expand Down
4 changes: 2 additions & 2 deletions sdk/src/samples/config_devnet.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,11 @@
"consoleLogLevel": "info"
},
"network": {
"port": 5000,
"port": 7667,
"seedPeers": [
{
"ip": "127.0.0.1",
"port": 5000
"port": 7667
}
]
},
Expand Down