Skip to content

Commit 00b459b

Browse files
author
Simon Goldberg
committed
incorporated changes for PR. opened up port 6005 for RPC requests from within the vpc
1 parent ba4a5cf commit 00b459b

File tree

5 files changed

+26
-16
lines changed

5 files changed

+26
-16
lines changed

lib/xrp/doc/README.md lib/xrp/README.md

+9-8
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ aws ec2 create-default-vpc
5959
Create your own copy of `.env` file and edit it to update with your AWS Account ID and Region:
6060
```bash
6161
cd lib/xrp
62-
cp ./sample-configs/.env-xrp-testnet .env
62+
cp ./sample-configs/.env-sample-testnet .env
6363
nano .env
6464
```
6565
> **NOTE:** *You can find more examples inside `sample-configs` *
@@ -99,7 +99,7 @@ npx cdk deploy XRP-ha-nodes --json --outputs-file ha-nodes-deploy.json
9999

100100
> **NOTE:** *By default and for security reasons the load balancer is available only from within the default VPC in the region where it is deployed. It is not available from the Internet and is not open for external connections. Before opening it up please make sure you protect your RPC APIs.*
101101
102-
### Clearing up and undeploy everything
102+
### Cleaning up and undeploying everything
103103

104104
Destroy HA Nodes, Single Nodes and Common stacks
105105

@@ -129,7 +129,7 @@ cdk destroy XRP-common
129129
pwd
130130
# Make sure you are in aws-blockchain-node-runners/lib/xrp
131131

132-
export INSTANCE_ID=$(cat single-node-deploy.json | jq -r '..|.node-instance-id? | select(. != null)')
132+
export INSTANCE_ID=$(cat single-node-deploy.json | jq -r '.["XRP-single-node"].nodeinstanceid')
133133
echo "INSTANCE_ID=" $INSTANCE_ID
134134
aws ssm start-session --target $INSTANCE_ID --region $AWS_REGION
135135
sudo cat /var/log/cloud-init-output.log
@@ -138,9 +138,10 @@ sudo cat /var/log/user-data.log
138138
2. How can I change rippled (XRP) configuration?
139139
There are two places of configuration for the xrp nodes:
140140

141-
a. .env file. Here is where you specify the xrp network you want. This is the key into the config hash in part b
142-
```bash
143-
HUB_NETWORK_ID="testnet"
144-
```
141+
a. `.env` file. Here is where you specify the xrp network you want. This is the key for the config in part b
142+
143+
```bash
144+
HUB_NETWORK_ID="testnet"
145+
```
145146

146-
b. lib/xrp/lib/assets/rippled/rippledconfig.py file. Here you can setup listners an network configuration for the network specified in part "a"
147+
b. `lib/xrp/lib/assets/rippled/rippledconfig.py` file. Here you can setup listeners and network configuration for the network specified in part "a"

lib/xrp/lib/assets/rippled/rippled.cfg.template

+2
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
port_peer
33
port_rpc_admin_local
44
port_ws_admin_local
5+
port_ws_public
6+
[port_ws_public]
57
[port_rpc_admin_local]
68
[port_peer]
79
[port_ws_admin_local]

lib/xrp/lib/assets/rippled/rippledconfig.py

+6-1
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,11 @@
2020
"admin": "127.0.0.1",
2121
"protocol": "ws,wss",
2222
},
23+
"port_ws_public": {
24+
"port": "6005",
25+
"ip": "0.0.0.0",
26+
"protocol": "ws,wss,http",
27+
},
2328
},
2429
"db_defaults": {
2530
"node_db": {
@@ -31,7 +36,7 @@
3136
},
3237
"network_defaults": {
3338
"mainnet": {
34-
"network_id": "mainnet",
39+
"network_id": "main",
3540
"ssl_verify": "1",
3641
"validator_list_sites": ["https://vl.ripple.com"],
3742
"validator_list_keys": [

lib/xrp/package.json

+1-7
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,5 @@
77
"test": "npx jest --detectOpenHandles",
88
"cdk": "npx cdk",
99
"scan-cdk": "npx cdk synth"
10-
},
11-
"dependencies": {
12-
"ini": "^4.1.1"
13-
},
14-
"devDependencies": {
15-
"@types/ini": "^4.1.1"
1610
}
17-
}
11+
}

website/docs/Blueprints/XRP.md

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
---
2+
sidebar_label: XRP
3+
---
4+
#
5+
6+
import Readme from '../../../lib/xrp/README.md';
7+
8+
<Readme />

0 commit comments

Comments
 (0)