Skip to content

Commit

Permalink
Merge pull request #606 from opfocus/main
Browse files Browse the repository at this point in the history
Fixed Broken Link and Added Internal Reference Links for p2p.static
  • Loading branch information
sbvegan authored Mar 22, 2024
2 parents f894597 + c63425e commit ff45a92
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -669,7 +669,7 @@ You can add the following options to the `op-node` command to enable peer-to-pee
--p2p.listen.udp=9003 \
```

You can alternatively also remove the `--p2p.static` option but you may see failed requests from other chains using the same chain ID.
You can alternatively also remove the [--p2p.static](/builders/node-operators/management/configuration#p2pstatic) option, but you may see failed requests from other chains using the same chain ID.
</Callout>

</Steps>
Expand Down
2 changes: 1 addition & 1 deletion pages/builders/node-operators/json-rpc.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ There are several OP Mainnet components with an RPC API, which are reviewed in t

<Callout type="warning">
Use [`eth_gasPrice`](https://ethereum.org/en/developers/docs/apis/json-rpc/#eth_gasprice) instead of `rollup_gasPrices` for the L2 gas price.
For the L1 gas price, you can call the [`GasPriceOracle`'s `l1BaseFee` function](https://optimistic.etherscan.io/address/0x420000000000000000000000000000000000000F#readContract#F5).
For the L1 gas price, you can call the [`GasPriceOracle`'s `l1BaseFee` function](https://optimistic.etherscan.io/address/0x420000000000000000000000000000000000000F#readProxyContract#F11).
If you want to estimate the cost of a transaction, you can [use the SDK](/builders/app-developers/tutorials/sdk-estimate-costs).
</Callout>

Expand Down
6 changes: 3 additions & 3 deletions pages/builders/node-operators/management/configuration.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -756,15 +756,15 @@ Hex-encoded private key for signing off on p2p application messages as sequencer

###### p2p.static

Comma-separated multiaddr-format peer list. Static connections to make and
Comma-separated multiaddr-format(an unsigned address, containing: IP, TCP port, [PeerID](/builders/node-operators/json-rpc#opp2p_self)) peer list. Static connections to make and
maintain, these peers will be regarded as trusted. Addresses of the local peer
are ignored. Duplicate/Alternative addresses for the same peer all apply, but
only a single connection per peer is maintained.

<Tabs items={['Syntax', 'Example', 'Environment Variable']}>
<Tabs.Tab>`--p2p.static=<value>`</Tabs.Tab>
<Tabs.Tab>`--p2p.static=[PeerListHere]`</Tabs.Tab>
<Tabs.Tab>`OP_NODE_P2P_STATIC=[PeerListHere]`</Tabs.Tab>
<Tabs.Tab>`--p2p.static=/ip4/127.0.0.1/tcp/9222/p2p/16Uiu2HAm2y6DXp6THWHCyquczNUh8gVAm4spo6hjP3Ns1dGRiAdE`</Tabs.Tab>
<Tabs.Tab>`OP_NODE_P2P_STATIC=/ip4/127.0.0.1/tcp/9222/p2p/16Uiu2HAm2y6DXp6THWHCyquczNUh8gVAm4spo6hjP3Ns1dGRiAdE`</Tabs.Tab>
</Tabs>

###### p2p.sync.req-resp
Expand Down

0 comments on commit ff45a92

Please sign in to comment.