Fix missing changes after portal-rpc-url config change (#2516)
This commit is contained in:
parent
84ce0c912e
commit
1e1bc6623d
|
@ -14,7 +14,8 @@ make portal_bridge
|
|||
|
||||
TRUSTED_BLOCK_ROOT=0x1234567890123456789012345678901234567890123456789012345678901234 # Replace with trusted block root.
|
||||
# --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
|
||||
|
|
|
@ -27,7 +27,7 @@ Build & run the `portal_bridge`:
|
|||
```bash
|
||||
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}
|
||||
```
|
||||
|
||||
|
@ -41,7 +41,7 @@ network.
|
|||
|
||||
E.g. run latest + backfill with audit mode:
|
||||
```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}
|
||||
```
|
||||
|
||||
|
|
|
@ -44,5 +44,5 @@ make portal_bridge
|
|||
|
||||
# --rpc-port 10000 = default node0
|
||||
# --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
|
||||
```
|
||||
|
|
|
@ -334,8 +334,7 @@ if [[ "$PORTAL_BRIDGE" == "1" ]]; then
|
|||
echo "Starting portal bridge for beacon network."
|
||||
./build/portal_bridge beacon \
|
||||
--rest-url="${REST_URL}" \
|
||||
--rpc-address="127.0.0.1" \
|
||||
--rpc-port="${BASE_RPC_PORT}" \
|
||||
--portal-rpc-url="http://127.0.0.1:${BASE_RPC_PORT}"
|
||||
--backfill-amount=128 \
|
||||
${TRUSTED_BLOCK_ROOT_ARG} \
|
||||
> "${DATA_DIR}/log_portal_bridge.txt" 2>&1 &
|
||||
|
|
|
@ -65,8 +65,11 @@ type
|
|||
name: "log-format"
|
||||
.}: StdoutLogKind
|
||||
|
||||
portalRpcUrl* {.desc: "Portal node JSON-RPC API URL", name: "portal-rpc-url".}:
|
||||
JsonRpcUrl
|
||||
portalRpcUrl* {.
|
||||
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
|
||||
of PortalBridgeCmd.beacon:
|
||||
|
|
Loading…
Reference in New Issue