Skip to content

Commit

Permalink
change ports
Browse files Browse the repository at this point in the history
  • Loading branch information
otherview committed Dec 30, 2024
1 parent fcc2486 commit 99461db
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 19 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
- name: Pull Docker Image
run: docker pull vechain/thor:latest

- name: Make Test
id: unit-test
run: go test ./... -count=1
24 changes: 12 additions & 12 deletions preset/LocalSixNodes.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ func LocalSixNodesNetwork() *network.Network {
Nodes: []node.Node{
&node.BaseNode{
ID: "node1",
P2PListenPort: 8081,
APIAddr: "127.0.0.1:8181",
P2PListenPort: 8061,
APIAddr: "127.0.0.1:8161",
APICORS: "*",
Type: node.MasterNode,
Verbosity: 4,
Expand All @@ -41,8 +41,8 @@ func LocalSixNodesNetwork() *network.Network {
},
&node.BaseNode{
ID: "node2",
P2PListenPort: 8082,
APIAddr: "127.0.0.1:8182",
P2PListenPort: 8062,
APIAddr: "127.0.0.1:8162",
APICORS: "*",
Type: node.MasterNode,
Verbosity: 4,
Expand All @@ -51,17 +51,17 @@ func LocalSixNodesNetwork() *network.Network {
},
&node.BaseNode{
ID: "node3",
P2PListenPort: 8083,
APIAddr: "127.0.0.1:8183",
P2PListenPort: 8063,
APIAddr: "127.0.0.1:8163",
APICORS: "*",
Type: node.RegularNode,
Key: "1b310ea04afd6d14a8f142158873fc70bfd4ba12a19138cc5b309fce7c77105e", // 0x1b1c0055065b3ADee4B9a9e8297142Ba2cD34EfE
Genesis: genesis,
},
&node.BaseNode{
ID: "node4",
P2PListenPort: 8084,
APIAddr: "127.0.0.1:8184",
P2PListenPort: 8064,
APIAddr: "127.0.0.1:8164",
APICORS: "*",
Type: node.MasterNode,
Verbosity: 4,
Expand All @@ -70,8 +70,8 @@ func LocalSixNodesNetwork() *network.Network {
},
&node.BaseNode{
ID: "node5",
P2PListenPort: 8085,
APIAddr: "127.0.0.1:8185",
P2PListenPort: 8065,
APIAddr: "127.0.0.1:8165",
APICORS: "*",
Type: node.MasterNode,
Verbosity: 4,
Expand All @@ -80,8 +80,8 @@ func LocalSixNodesNetwork() *network.Network {
},
&node.BaseNode{
ID: "node6",
P2PListenPort: 8086,
APIAddr: "127.0.0.1:8186",
P2PListenPort: 8066,
APIAddr: "127.0.0.1:8166",
APICORS: "*",
Type: node.RegularNode,
Key: "92ad65923d6782a43e6a1be01a8e52bce701967d78937e73da746a58f293ba30", // 0x9C2871C411CCe579B987E9b932C484dA8b901075
Expand Down
12 changes: 6 additions & 6 deletions preset/LocalThreeMasterNodes.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,26 +20,26 @@ func LocalThreeMasterNodesNetwork() *network.Network {
Nodes: []node.Node{
&node.BaseNode{
ID: "node1",
P2PListenPort: 8081,
APIAddr: "127.0.0.1:8181",
P2PListenPort: 8031,
APIAddr: "127.0.0.1:8131",
APICORS: "*",
Type: node.MasterNode,
Key: "01a4107bfb7d5141ec519e75788c34295741a1eefbfe460320efd2ada944071e", // 0x61fF580B63D3845934610222245C116E013717ec
Genesis: genesis,
},
&node.BaseNode{
ID: "node2",
P2PListenPort: 8082,
APIAddr: "127.0.0.1:8182",
P2PListenPort: 8032,
APIAddr: "127.0.0.1:8132",
APICORS: "*",
Type: node.MasterNode,
Key: "7072249b800ddac1d29a3cd06468cc1a917cbcd110dde358a905d03dad51748d", // 0x327931085B4cCbCE0baABb5a5E1C678707C51d90
Genesis: genesis,
},
&node.BaseNode{
ID: "node3",
P2PListenPort: 8083,
APIAddr: "127.0.0.1:8183",
P2PListenPort: 8033,
APIAddr: "127.0.0.1:8133",
APICORS: "*",
Type: node.MasterNode,
Key: "c55455943bf026dc44fcf189e8765eb0587c94e66029d580bae795386c0b737a", // 0x084E48c8AE79656D7e27368AE5317b5c2D6a7497
Expand Down

0 comments on commit 99461db

Please sign in to comment.