Fix missing changes after portal-rpc-url config change (#2516)

This commit is contained in:
Kim De Mey 2024-07-23 12:46:53 +02:00 committed by GitHub
parent 84ce0c912e
commit 1e1bc6623d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
5 changed files with 11 additions and 8 deletions

View File

@ -14,7 +14,8 @@ make portal_bridge
TRUSTED_BLOCK_ROOT=0x1234567890123456789012345678901234567890123456789012345678901234 # Replace with trusted block root. TRUSTED_BLOCK_ROOT=0x1234567890123456789012345678901234567890123456789012345678901234 # Replace with trusted block root.
# --rest-url = access to beacon node API, default http://127.0.0.1:5052 # --rest-url = access to beacon node API, default http://127.0.0.1:5052
./build/portal_bridge beacon --trusted-block-root:${TRUSTED_BLOCK_ROOT} --rest-url:http://127.0.0.1:5052 # --portal-rpc=url = access to the Portal node API, default http://127.0.0.1:8545
./build/portal_bridge beacon --trusted-block-root:${TRUSTED_BLOCK_ROOT} --rest-url:http://127.0.0.1:5052 --portal-rpc-url:http://127.0.0.1:8545
``` ```
The `portal_bridge` will connect to Fluffy node over the JSON-RPC The `portal_bridge` will connect to Fluffy node over the JSON-RPC

View File

@ -27,7 +27,7 @@ Build & run the `portal_bridge`:
```bash ```bash
make portal_bridge make portal_bridge
WEB3_URL="http://127.0.0.1:8546" # Replace with your provider. WEB3_URL="http://127.0.0.1:8548" # Replace with your provider.
./build/portal_bridge history --web3-url:${WEB3_URL} ./build/portal_bridge history --web3-url:${WEB3_URL}
``` ```
@ -41,7 +41,7 @@ network.
E.g. run latest + backfill with audit mode: E.g. run latest + backfill with audit mode:
```bash ```bash
WEB3_URL="http://127.0.0.1:8546" # Replace with your provider. WEB3_URL="http://127.0.0.1:8548" # Replace with your provider.
./build/portal_bridge history --latest:true --backfill:true --audit:true --era1-dir:/somedir/era1/ --web3-url:${WEB3_URL} ./build/portal_bridge history --latest:true --backfill:true --audit:true --era1-dir:/somedir/era1/ --web3-url:${WEB3_URL}
``` ```

View File

@ -44,5 +44,5 @@ make portal_bridge
# --rpc-port 10000 = default node0 # --rpc-port 10000 = default node0
# --rest-url = access to beacon node API, default http://127.0.0.1:5052 # --rest-url = access to beacon node API, default http://127.0.0.1:5052
./build/portal_bridge beacon --trusted-block-root:${TRUSTED_BLOCK_ROOT} --rest-url:http://127.0.0.1:5052 --backfill-amount:128 --rpc-port:10000 ./build/portal_bridge beacon --trusted-block-root:${TRUSTED_BLOCK_ROOT} --rest-url:http://127.0.0.1:5052 --backfill-amount:128 --portal-rpc-url:http://127.0.0.1:10000
``` ```

View File

@ -334,8 +334,7 @@ if [[ "$PORTAL_BRIDGE" == "1" ]]; then
echo "Starting portal bridge for beacon network." echo "Starting portal bridge for beacon network."
./build/portal_bridge beacon \ ./build/portal_bridge beacon \
--rest-url="${REST_URL}" \ --rest-url="${REST_URL}" \
--rpc-address="127.0.0.1" \ --portal-rpc-url="http://127.0.0.1:${BASE_RPC_PORT}"
--rpc-port="${BASE_RPC_PORT}" \
--backfill-amount=128 \ --backfill-amount=128 \
${TRUSTED_BLOCK_ROOT_ARG} \ ${TRUSTED_BLOCK_ROOT_ARG} \
> "${DATA_DIR}/log_portal_bridge.txt" 2>&1 & > "${DATA_DIR}/log_portal_bridge.txt" 2>&1 &

View File

@ -65,8 +65,11 @@ type
name: "log-format" name: "log-format"
.}: StdoutLogKind .}: StdoutLogKind
portalRpcUrl* {.desc: "Portal node JSON-RPC API URL", name: "portal-rpc-url".}: portalRpcUrl* {.
JsonRpcUrl desc: "Portal node JSON-RPC API URL",
defaultValue: JsonRpcUrl(kind: HttpUrl, value: "http://127.0.0.1:8545"),
name: "portal-rpc-url"
.}: JsonRpcUrl
case cmd* {.command, desc: "".}: PortalBridgeCmd case cmd* {.command, desc: "".}: PortalBridgeCmd
of PortalBridgeCmd.beacon: of PortalBridgeCmd.beacon: