Monad 백서

Monad

원문

bitpro가 원문에서 글자만 모은 내용이에요. 표·그림·수식은 빠지거나 깨질 수 있어요. 전체 75쪽 중 71쪽

ow-downgrades --allow-change-held-packages ``` </Tab> </Tabs> ### 3. Restart the services and verify ```bash theme={null} sudo systemctl restart monad-bft monad-execution monad-rpc sudo systemctl status monad-bft monad-execution monad-rpc --no-pager -l ``` Expected output: All services should show `Active: active (running)` ### 4. Verify the correct version is running ```bash theme={null} monad-rpc --version ``` Expected output: <Tabs> <Tab title="Mainnet"> ```json theme={null} monad-rpc {"commit":"6323f3fcaf067c18884e3ffe72a22fb1a8d0216a","tag":"v0.12.3","branch":"","modified":true} ``` </Tab> <Tab title="Testnet"> ```json theme={null} monad-rpc {"commit":"6323f3fcaf067c18884e3ffe72a22fb1a8d0216a","tag":"","branch":"","modified":true} ``` </Tab> </Tabs> ## Patch notes Please refer to the public changelog for [`v0.12.3`](/developer-essentials/changelog/releases#v0-12-3). ### Important updates for node operators * **\[Node ops]** Add `--root-offsets-chunk-count` flag to `monad-mpt` to configure the number of chunks allocated for root offsets * Each chunk holds approximately 16.5M blocks. Previously, all nodes were hardcoded to use 2 chunks (max TrieDB capacity of \~33M blocks) * New default: 16 **must be a power of 2** * Note that the default value of 16 translates to approximately 268M blocks \~ 1240 days. In most cases the limiting factor is disk capacity which will auto-compact when filled to 80% * Ref: [monad PR #1937](https://github.com/category-labs/monad/pull/1937) * **\[RPC / Node ops]** Allow RPC to run without `monad-bft` * Enables standalone RPC operation for improved deployment flexibility * Ref: [monad-bft PR #2613](https://github.com/category-labs/monad-bft/pull/2613) * **\[RPC]** [EIP-7966](https://eips.ethereum.org/EIPS/eip-7966) (`eth_sendRawTransactionSync`) support * Ref: [monad-bft PR #2542](https://github.com/category-labs/monad-bft/pull/2542) * **\[Node ops / Archive]** Archive infrastructure improvements * Refactor `monad-block-writer` for improved reliability with `--max-blocks-per-iter` configuration * Async backfill with traces-only archive support * Add `require-traces` archiver flag and indexer fallback source * Support for historical execution event archiving with generic directory archiving * **Potentially breaking: Remove `--start-block` from `monad-archiver` systemd service; operators must use imperative CLI to set start block** * Example: `monad-archiver set-start-block --block 1000000 --archive-sink s3://bucket-name/path` * Use `--async-backfill` flag to set the async-backfill marker instead of primary marker * Ref: [monad-bft PR #2610](https://github.com/category-labs/monad-bft/pull/2610), [monad-bft PR #2606](https://github.com/category-labs/monad-bft/pull/2606), [monad-bft PR #2598](https://github.com/category-labs/monad-bft/pull/2598), [monad-bft PR #2514](https://github.com/category-labs/monad-bft/pull/2514), [monad-bft PR #2612](https://github.com/category-labs/monad-bft/pull/2612), [monad-bft PR #2569](https://github.com/category-labs/monad-bft/pull/2569), [monad-bft PR #2623](https://github.com/category-labs/monad-bft/pull/2623) * **\[Node ops]** Networking configuration updates * Use default MTU 1500 * Add HDR histogram for broadcast latency tracking in `monad-executor` and `monad-raptorcast` * Ref: [monad-bft PR #2576](https://github.com/category-labs/monad-bft/pull/2576), [monad-bft PR #2602](https://github.com/category-labs/monad-bft/pull/2602) * **\[Consensus]** *Opt-in* Wire authentication protocol for UDP * Node operator instructions to be provided in the future * Includes replay window adjustments for improved reliability * Ref: [monad-bft PR #2417](https://github.com/category-labs/monad-bft/pull/2417), [monad-bft PR #2544](https://github.com/category-labs/monad-bft/pull/2544), [monad-bft PR #2626](https://github.com/category-labs/monad-bft/pull/2626), [monad-bft PR #2091](https://github.com/category-labs/monad-bft/pull/2091) # v0.12.5 - `testnet` re-genesis Source: https://docs.monad.xyz/node-ops/upgrade-instructions/v0.12.5-testnet-regenesis <Warning> These instructions are only applicable to **`testnet`**. This can be ignored for `mainnet`. </Warning> ## Part 1: To Halt Node operators must stop all `monad` services before re-genesis. ### 1. SSH into the node as `root` user ### 2. Stop all monad services ```bash theme={null} systemctl stop monad-bft monad-execution monad-rpc ``` ### 3. Verify services are stopped ```bash theme={null} systemctl status monad-bft monad-execution monad-rpc --no-pager -l ``` Expected output: All services should show `Active: inactive (dead)` *** ## Part 2: Re-genesis <Warning> **Do not proceed until Monad Foundation provides notice that re-genesis is ready.** </Warning> ### 1. Hard reset Perform a hard reset to wipe local state and prepare for the new genesis. ```bash theme={null} bash /opt/monad/scripts/reset-workspace.sh ``` ### 2. Upgrade monad package ```bash theme={null} sudo apt update && sudo apt install --reinstall monad=0.12.5 -y --allow-downgrades --allow-change-held-packages ``` ### 3. Fetch configuration files <Info title="Automated Remote Configuration Fetching"> If you have automated remote config fetching configured (v0.12.1+), the new `forkpoint.toml` and `validators.toml` files will be automatically fetched on startup. Ensure `REMOTE_VALIDATORS_URL` and `REMOTE_FORKPOINT_URL` are defined in `/home/monad/.env`. See [Soft Reset Instructions](/node-ops/node-recovery/soft-reset) for more details on automated configuration fetching. If not using automated fetching, run the commands below. </Info> ```bash theme={null} MF_BUCKET=https://bucket.monadinfra.com VALIDATORS_FILE=/home/monad/monad-bft/config/validators/validators.toml curl -sSL $MF_BUCKET/scripts/testnet/download-forkpoint.sh | bash curl $MF_BUCKET/validators/testnet/validators.toml -o $VALIDATORS_FILE chown -R monad:monad /home/monad/monad-bft/config/ ``` ### 4. (Optional) Archivers: Reset archive sources <Note title="For Archive Node Operators Only"> If you are running an archive node, you must either: 1. **Wipe your existing archiver sources** - Clear all existing archived data to start fresh with the new genesis, or 2. **Point to a new bucket/source** - Configure your archiver to use a new destination for the re-genesis chain Failure to do so may result in conflicting data from the previous chain. </Note> ### 5. Start services and verify ```bash theme={null} systemctl start monad-bft monad-execution monad-rpc systemctl status monad-bft monad-execution monad-rpc --no-pager -l ``` Expected output: All services should show `Active: active (running)` ### 6. Verify the correct version is running ```bash theme={null} monad-rpc --version ``` Expected output: ```json theme={null} monad-rpc {"commit":"a1fe1fbef7ff5d51e1eeb42809457cd68f7525dd","tag":"v0.12.5","branch":"","modified":true} ``` <Info title="Validator Registration"> All nodes are expected to initially join the network as **public full nodes** before transitioning to validators. Monad Foundation will coordinate validator registration and delegation. </Info> ## Patch notes Please refer to the public changelog for [`v0.12.5`](/developer-essentials/changelog/releases#v0-12-5). # v0.12.6 Source: https://docs.monad.xyz/node-ops/upgrade-instructions/v0.12.6 <Warning> Please do not proceed until Monad Foundation provides notice. </Warning> ## Instructions for node operators ### 1. SSH into the node as `root` user ### 2. Update configuration file Add the `ping_rate_limit_per_second` parameter to the `[peer_discovery]` section in your configuration file: ```bash theme={null} nano /home/monad/monad-bft/config/node.toml ``` Add the following line to the `[peer_discovery]` section: ```toml theme={null} [peer_discovery] self_address = "YOUR_IP:8000" self_record_seq_num = 0 # This remains the same as your current self_record_seq_num self_name_record_sig = "YOUR_SIGNATURE" refresh_period = 20 request_timeout = 5 unresponsive_prune_threshold = 3 last_participation_prune_threshold = 1000 min_num_peers = 1 max_num_peers = 450 ping_rate_limit_per_second = 100 # This is new to 0.12.6 ``` ### 3. Check systemctl overrides (if applicable) <Warning title="Important for operators with custom systemctl overrides"> This release adds `--persisted-peers-path /home/monad/monad-bft/config/peers.toml` to the `monad-bft` service startup. If you have existing systemctl overrides for `monad-bft`, you must ensure this flag is included in your override configuration. </Warning> To check if you have overrides: ```bash theme={null} systemctl cat monad-bft | grep -A 10 "override" ``` If you have an existing override, edit it to include the persisted peers path: ```bash theme={null} sudo systemctl edit monad-bft ``` Ensure your override includes: ``` --persisted-peers-path /home/monad/monad-bft/config/peers.toml ``` ### 4. Upgrade monad package ```bash theme={null} sudo apt update && sudo apt install --reinstall monad=0.12.6 -y --allow-downgrades --allow-change-held-packages ``` ### 5. Restart the services and verify ```bash theme={null} sudo systemctl restart monad-bft monad-execution monad-rpc sudo systemctl status monad-bft monad-execution monad-rpc --no-pager -l ``` Expected output: All services should show `Active: active (running)` ### 6. Verify the correct version is running ```bash theme={null} monad-rpc --version ``` Expected output: ```json theme={null} monad-rpc {"commit":"cced63c687c6ab67846c94bc9fd6d6ae60272cd4","tag":"v0.12.6","branch":"","modified":true} ``` <Info title="Sidecar CPU core configuration"> Sidecars need their own CPU cores and **cannot share cores** with monad processes. Monad uses all 16 cores on a standard setup (cores 0-15), so running a sidecar on the same cores will cause performance issues. </Info> ## Patch notes Please refer to the public changelog for [`v0.12.6`](/developer-essentials/changelog/releases#v0-12-6). ### Important updates for node operators * **\[Node ops / Peer Discovery]** Add ping rate limiting configuration * New **required** parameter: `ping_rate_limit_per_second = 100` in `[peer_discovery]` section * Prevents excessive ping traffic and improves network stability # v0.12.7 Source: https://docs.monad.xyz/node-ops/upgrade-instructions/v0.12.7 <Warning> Please do not proceed until Monad Foundation provides notice. </Warning> ## Instructions for node operators <Tip title="No configuration changes required"> This release does not require any `node.toml` or systemctl override changes. It is a drop-in upgrade from v0.12.6. </Tip> ### 1. SSH into the node as `root` user ### 2. Upgrade monad package ```bash theme={null} sudo apt update && sudo apt install --reinstall monad=0.12.7 -y --allow-downgrades --allow-change-held-packages ``` ### 3. Restart the services and verify ```bash theme={null} sudo systemctl restart monad-bft monad-execution monad-rpc sudo systemctl status monad-bft monad-execution monad-rpc --no-pager -l ``` Expected output: All services should show `Active: active (running)` ### 4. Verify the correct version is running ```bash theme={null} monad-rpc --version ``` Expected output: ```json theme={null} monad-rpc {"commit":"e1e9489b8fc42c0a5af208bab20f6704f83c91c0","tag":"v0.12.7","branch":"","modified":true} ``` ## Patch notes Please refer to the public changelog for [`v0.12.7`](/developer-essentials/changelog/releases#v0-12-7). # v0.13.0 (MONAD_NINE) Source: https://docs.monad.xyz/node-ops/upgrade-instructions/v0.13.0 # v0.13.0 (MONAD\_NINE) <Warning> Please do not proceed until Monad Foundation provides notice. </Warning> <Warning title="Hard Fork Release"> This release activates **MONAD\_NINE** at timestamps (all nodes must upgrade before activation): * `1773153000` - `2026-03-10 14:30GMT` (testnet) * `1773930600` - `2026-03-19 14:30GMT` (mainnet) </Warning> ## Instructions for node operators <Tip title="No configuration changes required"> This release does not require any `node.toml` or systemctl override changes. It is a drop-in upgrade from v0.12.7. </Tip> ### 1. SSH into the node as `root` user ### 2. Upgrade monad package ```bash theme={null} sudo apt update && sudo apt install --reinstall monad=0.13.0 -y --allow-downgrades --allow-change-held-packages ``` ### 3. Restart the services and verify ```bash theme={null} sudo systemctl restart monad-bft monad-execution monad-rpc sudo systemctl status monad-bft monad-execution monad-rpc --no-pager -l ``` Expected output: All services should show `Active: active (running)` ### 4. Verify the correct version is running ```bash theme={null} monad-rpc --version ``` Expected output: ```json theme={null} monad-rpc {"commit":"0a9cbb8227207a7b33ddf5caf7bd796e855df99f","tag":"v0.13.0","branch":"","modified":true} ``` ## Patch notes Please refer to the public changelog for [`v0.13.0`](/developer-essentials/changelog/releases#v0-13-0-monad_nine). ### Key changes in MONAD\_NINE * **[MIP-3](https://github.com/monad-crypto/MIPs/blob/main/MIPs/MIP-3.md)**: Linear memory implementation * **[MIP-4](https://github.com/monad-crypto/MIPs/blob/main/MIPs/MIP-4.md)**: Reserve balance precompile * **[MIP-5](https://github.com/monad-crypto/MIPs/blob/main/MIPs/MIP-5.md)**: Osaka fork EIPs: EIP-7823, EIP-7883, EIP-7939 (CLZ opcode) # v0.13.1 Upgrade Instructions Source: https://docs.monad.xyz/node-ops/upgrade-instructions/v0.13.1 <Warning> This is a **patch release** specifically for State Archive nodes experiencing RPC block query issues. Regular validator and full nodes on v0.13.0 are not affected and do not need to upgrade. </Warning> ## 1. SSH into the node as `monad` user ## 2. Upgrade monad package ```bash theme={null} sudo apt update && sudo apt install --reinstall monad=0.13.1 -y --allow-downgrades --allow-change-held-packages ``` ## 3. Restart the services and verify ```bash theme={null} sudo systemctl restart monad-rpc sudo systemctl status monad-rpc --no-pager -l ``` Expected output: Service should show `Active: active (running)` ## 4. Verify the correct version is running ```bash theme={null} monad-rpc --version ``` Expected output: ```json theme={null} monad-rpc {"commit":"7db6cea2e51e57bc78a8cba0d389ebb8ae73298b","tag":"v0.13.1","branch":"","modified":false} ``` # v0.14.0 Upgrade Instructions Source: https://docs.monad.xyz/node-ops/upgrade-instructions/v0.14.0 <Warning> This page contains upgrade instructions for **testnet** and **mainnet**. Always verify which network the instructions apply to. </Warning> ## Upgrade notes <Warning> **Authenticated UDP configuration is enforced** As of this release, Authenticated UDP is required. Ensure your configuration is compliant using the [Authenticated UDP Checker](./authenticated-udp-checking), and follow the documentation if needed. </Warning> <Warning> **Raptor redundancy factor limit lowered** The protocol-wide `MAX_REDUNDANCY` cap has been lowered from 7 to 3. If you have customized `raptor10_fullnode_redundancy_factor` in your `node.toml` to be higher than 3, you must lower it before upgrading or the node will fail to start with `BuildError::RedundancyTooHigh`. Most operators use the default value (2) and are unaffected. </Warning> <Warning> **`monad-ledger-tail` flags updated** The `--node-config-path` flag has been removed and `--peers-path` has been introduced. Suggested configuration is: ```diff theme={null} - --node-config-path=/home/monad/monad-bft/config/node.toml + --peers-path=/home/monad/monad-bft/config/peers.toml ``` If you run `monad-ledger-tail` manually or in a custom systemd unit, update the configuration before upgrading. </Warning> ## 1. SSH into the node as `monad` user ## 2. Upgrade monad package ```bash theme={null} sudo apt update && sudo apt install --reinstall monad=0.14.0 -y --allow-downgrades --allow-change-held-packages ``` ## 3. Restart the services and verify ```bash theme={null} sudo systemctl restart monad-bft monad-execution monad-rpc sudo systemctl status monad-bft monad-execution monad-rpc --no-pager -l ``` Expected output: All services should show `Active: active (running)` ## 4. Verify the correct version is running ```bash theme={null} monad-rpc --version ``` Expected output: ```json theme={null} monad-rpc {"commit":"2d487de007d7beb70c14cbbdf20ed5c63c36de28","tag":"v0.14.0","branch":"","modified":true} ``` # v0.14.1 Upgrade Instructions Source: https://docs.monad.xyz/node-ops/upgrade-instructions/v0.14.1 <Warning> This page contains upgrade instructions for **testnet** and **mainnet**. Always verify which network the instructions apply to. </Warning> ## Upgrade notes <Warning> **Authenticated UDP configuration is enforced** As of this release, Authenticated UDP is required. Ensure your configuration is compliant using the [Authenticated UDP Checker](./authenticated-udp-checking), and follow the documentation if needed. </Warning> <Warning> **Raptor redundancy factor limit lowered** The protocol-wide `MAX_REDUNDANCY` cap has been lowered from 7 to 3. If you have customized `raptor10_fullnode_redundancy_factor` in your `node.toml` to be higher than 3, you must lower it before upgrading or the node will fail to start with `BuildError::RedundancyTooHigh`. Most operators use the default value (2) and are unaffected. </Warning> <Warning> **`monad-ledger-tail` flags updated** The `--node-config-path` flag has been removed and `--peers-path` has been introduced. Suggested configuration is: ```diff theme={null} - --node-config-path=/home/monad/monad-bft/config/node.toml + --peers-path=/home/monad/monad-bft/config/peers.toml ``` If you run `monad-ledger-tail` manually or in a custom systemd unit, update the configuration before upgrading. </Warning> > Patch release on top of v0.14.0. No breaking changes to `node.toml`. > > **API behavior change:** `eth_fillTransaction` with insufficient balance now returns `reserve balance violation` instead of `insufficient balance`. Callers that match on the exact error string should update accordingly. ## 1. SSH into the node as `monad` user ## 2. Upgrade monad package ```bash theme={null} sudo apt update && sudo apt install --reinstall monad=0.14.1 -y --allow-downgrades --allow-change-held-packages ``` ## 3. Restart the services and verify ```bash theme={null} sudo systemctl restart monad-bft monad-execution monad-rpc sudo systemctl status monad-bft monad-execution monad-rpc --no-pager -l ``` Expected output: All services should show `Active: active (running)` ## 4. Verify the correct version is running ```bash theme={null} monad-rpc --version ``` Expected output: ```json theme={null} monad-rpc {"commit":"4ed79392...","tag":"v0.14.1","branch":"","modified":false} ``` # v0.14.2 Upgrade Instructions Source: https://docs.monad.xyz/node-ops/upgrade-instructions/v0.14.2 <Warning> This page contains upgrade instructions for **testnet** and **mainnet**. Always verify which network the instructions apply to. </Warning> ## 1. SSH into the node as `monad` user ## 2. Upgrade monad package ```bash theme={null} sudo apt update && sudo apt install --reinstall monad=0.14.2 -y --allow-downgrades --allow-change-held-packages ``` ## 3. Restart the services and verify ```bash theme={null} sudo systemctl restart monad-bft monad-execution monad-rpc sudo systemctl status monad-bft monad-execution monad-rpc --no-pager -l ``` Expected output: All services should show `Active: active (running)` ## 4. Verify the correct version is running ```bash theme={null} monad-rpc --version ``` Expected output: ```json theme={null} monad-rpc {"commit":"6307011c2acaf1349f2b6dbf488d2bb9e2844d2e","tag":"v0.14.2","branch":"","modified":true} ``` # v0.14.3 Upgrade Instructions Source: https://docs.monad.xyz/node-ops/upgrade-instructions/v0.14.3 <Warning> This page contains upgrade instructions for **testnet** and
프로젝트로 돌아가기