bitpro가 원문에서 글자만 모은 내용이에요. 표·그림·수식은 빠지거나 깨질 수 있어요. 전체 75쪽 중 28쪽
e node builds blocks under legacy
gas accounting and appends nothing.
The opt-in can be set before or after Lagoon, and does nothing until Lagoon activates. You do not
have to time it, and nothing needs changing at the activation itself.
It can be set three ways:
| Surface | Value | Notes |
| - | - | - |
| `--rollup.operator-sdm-opt-in` | `true` / `false` | CLI flag, read at boot. Defaults to `false`. |
| `OP_RETH_OPERATOR_SDM_OPT_IN` | `true` / `false` | Environment binding for the same flag. |
| `admin_setOperatorSdmOptIn` | `true` / `false` | Admin RPC. Applies to the next produced block, no restart. |
The RPC only changes the value in memory. A restart loses it, and a standby sequencer that takes
over starts from its own configuration. Set the CLI flag or environment variable for the value you
want to stick, and use the RPC when you need to change it without restarting.
## Confirming which gate is holding
`admin_sdmStatus` reports both gates. It takes an optional query timestamp and defaults to the
current time. On a sequencer that has opted in while Lagoon is still unscheduled:
```json title="admin_sdmStatus" theme={null}
{
"operatorSdmOptIn": true,
"protocolActive": false,
"effective": false,
"activationTime": null
}
```
`effective` is the AND of the two gates, and is the field that tells you whether the node is
producing rebates. `activationTime` is the Lagoon activation timestamp once one is scheduled, and `null`
before that.
To inspect a receipt produced by an SDM-enabled sequencer:
```bash title="Inspect a receipt" theme={null}
cast receipt <TX_HASH> --rpc-url <RPC_URL> --json | jq '.opGasRefund'
```
You can also fetch the containing block and check whether its last transaction has type `0x7D`.
A block without rebates has no post-exec transaction, so absence alone does not tell you whether
the protocol is active. Check `admin_sdmStatus` instead.
## Disabling SDM
To stop a sequencer issuing rebates:
1. Call `admin_setOperatorSdmOptIn(false)` on it. This applies from the next payload and needs no
restart.
2. Check `admin_sdmStatus` to confirm `effective` is now `false`.
3. Set `OP_RETH_OPERATOR_SDM_OPT_IN=false` (or the CLI flag) in the deployment, or a restart will
turn it back on.
Steps 1 and 2 with `cast`:
```bash title="Disable SDM at runtime" theme={null}
cast rpc admin_setOperatorSdmOptIn false --rpc-url <SEQUENCER_ADMIN_RPC_URL>
cast rpc admin_sdmStatus --rpc-url <SEQUENCER_ADMIN_RPC_URL> | jq '.effective'
```
This only affects blocks the sequencer builds from then on. Post-exec transactions already in the
chain stay valid and verifiers keep validating them, so there is nothing to coordinate with
verifier operators and no config or hardfork change to make.
## Stock `op-reth` production behavior
Released public `op-reth` uses a null refund policy. It never creates a non-empty refund payload and
never appends a post-exec transaction, even when Lagoon is active and
`admin_setOperatorSdmOptIn(true)` has been called. The admin surface remains available for protocol
compatibility and downstream sequencer integrations; it is not a policy-selection interface in
stock `op-reth`.
## Refund policies and OP Enterprise
Refund policies are tuned to a chain's needs, and are a premium feature for OP Enterprise
customers. The policy is what decides which transactions get rebated and by how much, so it varies
from sequencer to sequencer. If you are interested in becoming an OP Enterprise customer,
[contact the OP Enterprise team](https://optimism.io/learn-more).
## Debug replay
`debug_replaySDMBlock` is an operator and research diagnostic. It re-executes a historical block's
non-post-exec transactions under standard gas accounting to recover each transaction's raw
(pre-rebate) gas, reports that alongside the block's claimed refunds, and flags any claim that
breaks the spec's [validity rules](https://specs.optimism.io/protocol/lagoon/sdm.html#validity-rules).
It does not recompute what the refunds should have been: that requires the sequencer's policy, which
stock `op-reth` does not implement. The endpoint requires historical state and should not be exposed
on public RPC interfaces.
## Next steps
* Read the [SDM explainer](/op-stack/features/sdm) for the mechanism, canonical gas and settlement.
* See what else ships in the [Lagoon hardfork](/op-stack/protocol/hardforks/lagoon).
# Set the DA Footprint Gas Scalar
Source: https://docs.optimism.io/chain-operators/guides/features/setting-da-footprint
Learn how to set a Data Availability (DA) Footprint on your OP-Stack Chain
## Overview
| Parameter | Type | Default | Recommended | Units |
| - | - | - | - | - |
| <Tooltip href="https://specs.optimism.io/protocol/jovian/l1-attributes.html"> `daFootprintGasScalar` </Tooltip> | Number | `0` (`400`) | `400` | gas per byte |
<Warning>
The default value of `0` is the same as setting the scalar to `400`. In order to effectively disable this feature, set the scalar to a very low value such as `1`.
See the [specs for more detail](https://specs.optimism.io/protocol/jovian/l1-attributes.html).
</Warning>
The `daFootprintGasScalar` controls the **Data Availability (DA) Footprint Block Limit** introduced in the [Jovian hardfork](https://docs.optimism.io/notices/upgrade-17), which caps the total amount of transaction data that can fit into a block based on a scaled estimate of its compressed size.
The effective limit of estimated DA usage per block is `gasLimit / daFootprintGasScalar` bytes, so *increasing* the scalar *decreases* the limit, and vice versa.
For how the DA footprint is calculated, why the limit exists, and how the default of `400` was chosen, see [How the DA footprint block limit works](/chain-operators/reference/da-footprint).
## Choose a value
<Warning>
* If no limit is set, or the value 0 is set for the `daFootprintGasScalar` in the `SystemConfig`, the default value of `400` is used
* In order to effectively disable this feature, set the scalar to a very low value such as `1`.
* Setting the `daFootprintGasScalar` too high may exclude too many transactions from your blocks.
* Setting the `daFootprintGasScalar` too low may prove ineffective at preventing batcher throttling or protecting against continuous DA heavy transactions.
* When a chain's gas limit is changed, the DA footprint scales proportionally by design. However, if you want to retain the same absolute DA footprint limit, then you must also scale the `daFootprintGasScalar` accordingly.
</Warning>
## Update the `daFootprintGasScalar`
The steps below explain how to update the `daFootprintGasScalar` parameter on-chain using the `SystemConfig` contract.
<Steps>
<Step title="Find your SystemConfig contract address">
The [SystemConfig](https://specs.optimism.io/protocol/system-config.html) contract stores configurable protocol parameters such as gas limits and fee settings.\
You can find its proxy address in the [state.json generated by op-deployer](https://docs.optimism.io/chain-operators/tutorials/create-l2-rollup/op-deployer-setup#deploy-l1-contracts).
</Step>
<Step title="Call the setDAFootprintGasScalar() method">
<Info>
The [SystemConfig owner](/op-stack/protocol/privileged-roles) is the only address that can make these changes.
</Info>
To update the `daFootprintGasScalar`, call the following method on the `SystemConfig` contract:
`setDAFootprintGasScalar(uint16 daFootprintGasScalar) external onlyOwner;`
Example (using [cast](https://getfoundry.sh/cast/reference/cast/)) to double the scalar, so lower the effective DA usage limit by half:
```bash title="Cast" theme={null}
cast send -r <L1_RPC_URL> <SYSTEM_CONFIG_PROXY_ADDRESS> "setDAFootprintGasScalar(uint16)" 800
```
</Step>
<Step title="Verify the new value">
After the transaction confirms, verify the current value by calling the following getter method on the `SystemConfig` contract:
`function daFootprintGasScalar() external view returns (uint16);`
Example (using [cast](https://getfoundry.sh/cast/reference/cast/)):
```bash title="cast" theme={null}
cast call -r <L1_RPC_URL> <SYSTEM_CONFIG_PROXY_ADDRESS> "daFootprintGasScalar()"
```
And on your L2 chain you can query the scalar at the [L1Block predeploy](https://specs.optimism.io/protocol/predeploys.html#l1block) to confirm the new scalar has been propagated to the chain:
```bash title="cast" theme={null}
cast call -r <L2_RPC_URL> 0x4200000000000000000000000000000000000015 "daFootprintGasScalar()"
```
</Step>
</Steps>
## Next steps
* [How the DA footprint block limit works](/chain-operators/reference/da-footprint) — the calculation, the scalar's semantics, and the rationale for the default value.
* [Fee parameters reference](/chain-operators/reference/fee-parameters) — the full set of fee-related `SystemConfig` parameters.
## References
* [DA Footprint Configuration Spec](https://specs.optimism.io/protocol/jovian/system-config.html#da-footprint-configuration)
* [Jovian Upgrade Spec](https://specs.optimism.io/protocol/jovian/overview.html)
* [SystemConfig Contract Spec](https://specs.optimism.io/protocol/system-config.html)
* [Design Doc](https://github.com/ethereum-optimism/design-docs/blob/main/protocol/da-footprint-block-limit.md)
# Set the Minimum Base Fee
Source: https://docs.optimism.io/chain-operators/guides/features/setting-min-base-fee
Learn how to set a minimum base fee on your OP-Stack Chain
## Overview
| Parameter | Type | Default | Recommended | Max Allowed for Standard Chains | Units |
| - | - | - | - | - | - |
| <code>minBaseFee</code> | Number | 0 (disabled) | 100,000 | 10,000,000,000 | wei |
The <strong>Minimum Base Fee</strong> (`minBaseFee`) configuration was introduced in the <strong>[Jovian hardfork](https://docs.optimism.io/notices/upgrade-17)</strong>.
This feature allows chain operators to specify a minimum L2 base fee to which can help avoid excessively long priority fee auctions that can occur when the base fee falls too low.
When [batcher-sequencer throttling is active](https://docs.optimism.io/chain-operators/guides/configuration/batcher#batcher-sequencer-throttling) for long enough and the minBaseFee isn't enabled (or is zero), the base fee can drop all the way down to 1 wei. It can take a long time to recover back to a stable base fee.
The steps below explain how to update the `minBaseFee` parameter on-chain using the <code>SystemConfig</code> contract.
<Warning>
Setting the `minBaseFee` too high may make transactions harder to include for users.
</Warning>
## How to Update the Minimum Base Fee
<Steps>
<Step title="Find your SystemConfig contract address">
The [SystemConfig](https://specs.optimism.io/protocol/system-config.html) contract stores configurable protocol parameters such as gas limits and fee settings.\
You can find its proxy address in the [state.json generated by op-deployer](https://docs.optimism.io/chain-operators/tutorials/create-l2-rollup/op-deployer-setup#deploy-l1-contracts).
</Step>
<Step title="Call the setMinimumBaseFee() method">
<Info>
Note that the owner of the `SystemConfig` contract is the [System Config Owner address](/op-stack/protocol/privileged-roles), so this transaction must be sent from that address.
</Info>
To update the minimum base fee, call the following method on the `SystemConfig` contract:
`setMinBaseFee(uint64 minBaseFee) external onlyOwner;`
Example (using [cast](https://getfoundry.sh/cast/reference/cast/)):
```bash title="cast" theme={null}
cast send <SYSTEM_CONFIG_PROXY_ADDRESS> "setMinBaseFee(uint64)" 100000
```
</Step>
<Step title="Verify the new value">
After the transaction confirms, verify the current value by calling the following getter method on the `SystemConfig` contract:
`function minBaseFee() external view returns (uint64);`
Example (using [cast](https://getfoundry.sh/cast/reference/cast/)):
```bash title="cast" theme={null}
cast call <SYSTEM_CONFIG_PROXY_ADDRESS> "minBaseFee()"
```
</Step>
</Steps>
***
## References
* [Minimum Base Fee Configuration Spec](https://specs.optimism.io/protocol/jovian/system-config.html#minimum-base-fee-configuration)
* [Jovian Upgrade Spec](https://specs.optimism.io/protocol/jovian/overview.html)
* [SystemConfig Contract Spec](https://specs.optimism.io/protocol/system-config.html)
* [Design Doc](https://github.com/ethereum-optimism/design-docs/blob/main/protocol/minimum-base-fee.md)
# Set the Operator Fee
Source: https://docs.optimism.io/chain-operators/guides/features/setting-operator-fee
Learn how to configure the operator fee on your OP Stack Chain
## Overview
| Parameter | Default | Recommended | Type |
| :- | :-: | :- | :- |
| `operatorFeeScalar` | 0 | Chain-specific | uint32 scalar (scaled by 1e6) |
| `operatorFeeConstant` | 0 | Chain-specific | uint64 scalar (wei) |
The **Operator Fee** was introduced in the **[Isthmus upgrade](https://docs.optimism.io/notices/upgrade-14#operator-fee)** and modified in the **[Jovian upgrade](https://docs.optimism.io/notices/upgrade-17#breaking-changes)**.\
It allows OP Stack chain operators to charge an additional fee on transactions, on top of the **execution gas fee** (base fee + priority fee) and the **L1 data fee**.
This mechanism gives operators two levers:
* a **gas-proportional component** (`operatorFeeScalar`) that scales with gas used
* a **flat component** (`operatorFeeConstant`)
<Info>
The operator fee is only applied on chains that have enabled the Isthmus upgrade.
</Info>
<Info>
**Deposit transactions do not get charged operator fees.**\
For all deposit transactions, regardless of the operator fee configuration, the operator fee is always zero.
</Info>
***
## Operator Fee Formula
The operator fee is calculated using the following formula, depending on the active fork.
**After Isthmus:**
```text theme={null}
operatorFee = operatorFeeConstant + (operatorFeeScalar * gasUsed / 1e6)
```
**After Jovian:**
```text theme={null}
operatorFee = operatorFeeConstant + (operatorFeeScalar × gasUsed × 100)
```
<Warning>
Setting operator fee values too high can significantly increase transaction costs and reduce user adoption.
The operator fee directly impacts UX and competitiveness and should be adjusted conservatively.
The default value for standard chains is 0, any other value is considered non-standard.
</Warning>
***
## How to Update the Operator Fee
To update the operator fee parameters, call the following method on the `SystemConfig` contract from the `SystemConfigOwner`:
`setOperatorFeeScalars(uint32 _operatorFeeScalar, uint64 _operatorFeeConstant) external onlyOwner;`
Example using cast:
```bash title="cast" theme={null}
cast send --rpc-url <RPC_URL> --private-key <PRIVATE_KEY> \
<SYSTEM_CONFIG_PROXY_ADDRESS> \
"setOperatorFeeScalars(uint32,uint64)" \
500000 1000000000000
```
After the transaction confirms, verify the current configuration by calling the following:
`function operatorFeeScalar() view returns (uint32);`\
`function operatorFeeConstant() view returns (uint64);`
Example using cast:
```bash title="cast" theme={null}
cast call --rpc-url <RPC_URL> <SYSTEM_CONFIG_PROXY_ADDRESS> "operatorFeeScalar()"
cast call --rpc-url <RPC_URL> <SYSTEM_CONFIG_PROXY_ADDRESS> "operatorFeeConstant()"
```
***
## References
* [Operator Fee Overview – OP Stack Fee Docs](https://docs.optimism.io/op-stack/transactions/fees#operator-fee-component)
* [SystemConfig Operator Fee Parameter Configuration – OP Stack Specs](https://specs.optimism.io/protocol/isthmus/system-config.html#operator-fee-parameter-configuration)
* [Isthmus Operator Fee Details – OP Stack Specs](https://specs.optimism.io/protocol/isthmus/exec-engine.html#operator-fee)
# Using snap sync for chain operators
Source: https://docs.optimism.io/chain-operators/guides/features/snap-sync
Learn how to enable snap sync on your OP Stack chain.
Snap sync significantly improves the experience of syncing an OP Stack node. On the consensus layer, `op-node` enables it with the `--syncmode=execution-layer` flag.
Rather than re-executing every block from genesis, the execution client downloads chain and state data from other nodes on the network over P2P and begins executing from the completed state.
This means that performing a snap sync is significantly faster than performing a full sync.
* Snap sync enables node operators on your network to sync faster.
* Snap sync removes the need for nodes on your post Ecotone network to run a [blob archiver](/node-operators/guides/management/blobs).
## Enable snap sync for chains
To enable snap sync, chain operators need to spin up a node which is exposed to the network and has transaction gossip disabled.
This node will serve snap sync requests on the execution layer from other nodes on the network.
<Info>
For snap sync, all nodes should expose port `30303` TCP and `30303` UDP to easily find other nodes to sync from. These are op-reth's defaults for `--port` (TCP) and `--discovery.port` (UDP).
* If you set the port with [`--discovery.port`](/node-operators/op-reth/cli/op-reth/node), then you must open the port specified for UDP.
* If you set [`--port`](/node-operators/op-reth/cli/op-reth/node), then you must open the port specified for TCP.
* The only exception is for sequencers and transaction ingress nodes.
</Info>
<Steps>
<Step title="Setup a snap sync node">
* Expose port `30303` (op-reth's default listening and discovery port) to the internet on TCP and UDP.
* Disable transaction gossip with the [`--rollup.disable-tx-pool-gossip`](/node-operators/op-reth/cli/op-reth/node) flag
</Step>
<Step title="Enable snap sync on your network">
* See the [sync modes reference](/node-operators/reference/consensus-layer-sync) for how node operators enable snap sync (execution-layer sync) on your chain network.
</Step>
</Steps>
# Enabling Subblocks
Source: https://docs.optimism.io/chain-operators/guides/features/subblocks-guide
Learn about enabling Subblocks on an OP Stack chain.
<Warning>
Subblocks replace Flashblocks. Flashblocks are no longer officially supported on OP Stack chains.
See the [preconfirmation architecture transition notice](/notices/preconfirmation-architecture-transition) for the wind-down timeline.
</Warning>
Subblocks are a private feature available only to OP Enterprise customers. If you are interested in becoming an OP Enterprise customer, [contact the OP Enterprise team](https://optimism.io/learn-more). See [this explainer on Subblocks](/op-stack/features/subblocks) for more details.
# Switch to Kona Proofs
Source: https://docs.optimism.io/chain-operators/guides/features/switching-to-kona-proofs
Learn how to switch your OP Stack chain to use Kona-based fault proofs as the respected game type.
<Info>
[Upgrade 18](/notices/archive/upgrade-18) (approved by Optimism Governance) introduced `CANNON_KONA` (8) as an available game type alongside `CANNON` (0). [Upgrade 19](/notices/archive/upgrade-19) promotes `CANNON_KONA` to the **respected game type** for chains managed by the Optimism Security Council — meaning it is applied automatically as part of the onchain upgrade. Non-managed chains that want to switch must follow this guide.
</Info>
## Overview
| Parameter | Type | Current (typical) | Target when switching | Notes |
| - | - | - | - | - |
| Respected game type | Enum | `CANNON` (0) | `CANNON_KONA` (8) | Determines which game type is used for withdrawals |
| `OP_PROPOSER_GAME_TYPE` | Number | 0 | 8 | Proposer game type (must match respected game type) |
| `cannonPrestate` | Bytes32 | Set | Set | Must be a valid `cannon64` prestate hash |
| `cannonKonaPrestate` | Bytes32 | Set | Set | Must be a valid `cannon64-kona` prestate hash |
Kona proofs use the `kona-client` fault proof program, which is a combination of `kona-node` and `op-reth`. It replaces `op-program` (a combination of `op-node` and `op-geth`), which has reached end-of-support and does not support the Karst hardfork. See [End of Support for op-프로젝트로 돌아가기