Monad 백서

Monad

원문

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

wards_activation` epoch (future point in time) * External rewards - enable external (non-block-reward) deposits to the validator pool, see [monad PR #1625](https://github.com/category-labs/monad/pull/1625) * Also added additional events to staking precompile in [monad PR #1742](https://github.com/category-labs/monad/pull/1742) * Adds `ValidatorRewarded`, `EpochChanged`, `ClaimRewards` events * **\[Consensus/EVM]** [Reserve balance](/developer-essentials/reserve-balance) logic is live * Ref: [monad-bft PR #2160](https://github.com/category-labs/monad-bft/pull/2160) and [monad PR #1537](https://github.com/category-labs/monad/pull/1537) * Due to async execution, consensus does not have the latest state available for transaction inclusion logic. Reserve balance is a buffer that enables simpler accounting for a given account to mitigate the possibility of overspending in that delay window. * Per-EOA reserve balance is set to `10 MON` * **\[Consensus/EVM]** [EIP-7702](/developer-essentials/eip-7702) is live * Ref: [monad-bft PR #2160](https://github.com/category-labs/monad-bft/pull/2160), [monad-bft PR #2218](https://github.com/category-labs/monad-bft/pull/2218) and [monad PR #1362](https://github.com/category-labs/monad/pull/1362) * **\[Network params]** Set per-transaction gas limit of 30M gas * Ref: [monad-bft PR #2246](https://github.com/category-labs/monad-bft/pull/2246) * As discussed in the [Monad Initial Spec Proposal](https://forum.monad.xyz/t/monad-initial-specification-proposal/195) * **\[Network params]** Increase block gas limit from 150M gas (375 Mgas/s) to **200M** gas (500 Mgas/s) * Ref: [monad-bft PR #2266](https://github.com/category-labs/monad-bft/pull/2266) * **\[Network params]** Implement [dynamic base fee](/developer-essentials/gas-pricing) * Ref: [monad-bft PR #2207](https://github.com/category-labs/monad-bft/pull/2207) * As specified in the [Monad Initial Spec Proposal](https://forum.monad.xyz/t/monad-initial-specification-proposal/195) * Target gas is 80% of a block * Raise minimum base fee from 50 MON-gwei to **100 MON-gwei** * **\[EVM]** Enable [EIP-2935](https://eips.ethereum.org/EIPS/eip-2935) + blockhash buffer * Ref: [monad PR #1520](https://github.com/category-labs/monad/pull/1520) * **\[EVM]** Enable [EIP-7951](https://eips.ethereum.org/EIPS/eip-7951) (P256VERIFY precompile support) * Ref: [monad PR #1518](https://github.com/category-labs/monad/pull/1518) * **\[EVM]** Enable [EIP-2537](https://eips.ethereum.org/EIPS/eip-2537) (BLS12-381 precompiles) * Ref: [monad-bft PR #1342](https://github.com/category-labs/monad/pull/1342) and [monad-bft PR #1350](https://github.com/category-labs/monad/pull/1350) * **\[EVM]** Raise max contract size for `CREATE`/`CREATE2` to 128 kb * Ref: [monad PR #1440](https://github.com/category-labs/monad/pull/1440) * This brings `CREATE`/`CREATE2` to parity with toplevel contract creation transactions, which had their limit raised in `MONAD_TWO`. * Previously, they were unintentionally limited to Ethereum's max initcode size (49.152 kb) due to a bug #### Notable RPC/SDK changes * **\[SDK]** Added support for [Execution Events](/execution-events) * **\[RPC]** Extend `eth_call` support for preStateTracer and stateDiffTracer with `debug_traceCall` * Ref: [monad-bft PR #2275](https://github.com/category-labs/monad-bft/pull/2275) and [monad PR #1471](https://github.com/category-labs/monad/pull/1471) * **\[RPC]** Support the `withLog` parameter with `callTracer` * Ref: [monad-bft PR #2400](https://github.com/category-labs/monad-bft/pull/2400) * If `withLog` is set to true, `callTracer` includes event logs in the trace output #### Notable performance changes * **\[EVM]** Kernel caching of db reads and writes * Ref: [monad PR #1559](https://github.com/category-labs/monad/pull/1559) * Utilize available host memory to cache recent DB operations - this cache should increase performance of execution and RPC * **\[RPC]** Improve RPC Db Node Cache and make it memory bounded * Ref: [monad PR #1581](https://github.com/category-labs/monad/pull/1581) * Note a rename of RPC cli flags: `--eth-call-executor-node-lru-size` to `--eth-call-executor-node-lru-max-mem` and a new flag `--triedb-node-lru-max-mem` with both default to 100MB. #### Notable internal changes * **\[Node ops]** Remove `bft-fullnode` binary; only `bft` binary now * Ref: [monad-bft PR #2072](https://github.com/category-labs/monad-bft/pull/2072) * `bft-fullnode` removed from `deb` pkg for `v0.11` * **\[Node ops]** PeerDiscovery: Introduce precheck for peer self name address * **\[Consensus]** Blocksync: only select blocksync peers from connected nodes * Ref: [monad-bft PR #2401](https://github.com/category-labs/monad-bft/pull/2401) * **\[Consensus]** Raptorcast: DOS protection on decoding state cache * Ref: [monad-bft PR #2092](https://github.com/category-labs/monad-bft/pull/2092) * **\[Node ops]** Secondary raptorcast config change * Ref: [monad-bft PR #2378](https://github.com/category-labs/monad-bft/pull/2378) * Replace ambiguous secondary raptorcast `mode` parameter with `enable_publisher` and `enable_client` * **\[Node ops]** Dynamically reload prioritized full-nodes * Ref: [monad-bft PR #2364](https://github.com/category-labs/monad-bft/pull/2364) * **\[Node ops]** Fix wal2json * Ref: [monad-bft PR #2404](https://github.com/category-labs/monad-bft/pull/2404) * **\[Node ops/RPC]** Support the RPC CLI param `ws-sub-per-conn-limit` * Ref: [monad-bft PR #2161](https://github.com/category-labs/monad-bft/pull/2161) * Sets the maximum number of websocket subscriptions per connection (default to 100) * **\[Node ops/RPC]** Add configuration options for high eth-call pool * Ref: [monad-bft PR #2387](https://github.com/category-labs/monad-bft/pull/2387) ## v0.11.1 Note: `v0.11.1` was a version that was deployed only on `testnet-2` (a temporary network deprecated on 2025-10-27) from roughly 2025-09-16 until 2025-10-08; however, it maps some features differently to revision `MONAD_FOUR` which are no longer memorialized in the codebase. `testnet-2` was reset before deploying `v0.11.3`. For all intents and purposes, this version can be ignored. This changelog will compare `v0.11.3` with `v0.10.4`. Tags or hashes: * `monad-bft`: [tag `v0.11.1`](https://github.com/category-labs/monad-bft/releases/tag/v0.11.1) * `monad`: [hash `7746980`](https://github.com/category-labs/monad/tree/7746980c45b82f812bd8c4d39f4b0a1232ae16de) ## v0.10.4 | Network | Date deployed | Comment | | - | - | - | | [`testnet`](/developer-essentials/testnet) | 2025-08-18 | Revision is still `MONAD_THREE` | Tags or hashes: * `monad-bft`: [tag `v0.10.4`](https://github.com/category-labs/monad-bft/releases/tag/v0.10.4) * `monad`: hash `39c42e6` #### Notable RPC/SDK changes * **\[RPC]** EIP-4844 related fields in RPC responses are removed. * Block headers returned from RPC will no longer have `blobGasUsed` , `excessBlobGas`, and `parentBeaconBlockRoot`. #### Notable performance changes * **\[Consensus]** Votes are now sent to current round leader. This is a consensus optimization that reduces the effective delay due to a round timeout * Ref: [monad-bft PR #2093](https://github.com/category-labs/monad-bft/pull/2093) * **\[Consensus]** Caching of recently-verified quorum certificates * Ref: [monad-bft PR #2167](https://github.com/category-labs/monad-bft/pull/2167) * **\[Node ops]** Enablement of trace calls is now controlled via `monad` (execution) command line arg `--trace_calls`. * To preserve legacy behavior, `--trace_calls` is currently enabled in the debian package. In the future we recommend disabling for validators and enabling it for RPC and archive nodes. * This allows voting validators to opt out of computing traces since they're only need for RPC nodes. #### Notable internal changes * **\[Consensus]** TC forwarding to prioritized and public (non-dedicated) full nodes * Ref: [monad-bft PR #2149](https://github.com/category-labs/monad-bft/pull/2149) * Prior to `v0.10.4`, all full nodes were subject to lagging behind validators in the event of a timeout because round advancement due to TC was not forwarded (and still isn’t to dedicated full nodes). * As a result, after timeouts, full nodes would frequently forward transactions to the next three leaders relative to a stale state. This results in those transactions often missing and the ensuing blocks being comparatively empty. * **\[Node ops]** Bugfix for secondary raptorcast (round gap crash) that affected validators in Publisher mode * Ref: [monad-bft PR #2090](https://github.com/category-labs/monad-bft/pull/2090) * **\[Node ops]** `ledger-tail` improvements * Ref: [monad-bft PR #2144](https://github.com/category-labs/monad-bft/pull/2144) - Reduced memory usage on startup - `author_dns` field changed to `author_address` to reflect change in v10 addresses - Timeouts and finalizations are tracked and logged * **\[Consensus]** Txpool account preloading bugfix * Ref: [monad-bft PR #2108](https://github.com/category-labs/monad-bft/pull/2108) ## v0.10.3 [`MONAD_THREE`](/developer-essentials/changelog#revisions) revision introduced. | Network | Date deployed | Comment | | - | - | - | | [`testnet`](/developer-essentials/testnet) | 2025-08-12 | Revision is set to `MONAD_THREE` when upgraded | #### Notable protocol changes - `MONAD_THREE` * **\[Consensus]** Consensus mechanism upgraded from [Fast-HotStuff](https://arxiv.org/abs/2010.11454) to [MonadBFT](/monad-arch/consensus/monad-bft) * This is a major upgrade that adds *(i)* [resilience to tail forking](/monad-arch/consensus/monad-bft#no-tail-forking) and *(ii)* [1-slot speculative finality](/monad-arch/consensus/monad-bft#speculative-finality) * **\[Network params]** Block time reduced from 500 ms to **400 ms** #### Notable RPC/SDK changes * **\[RPC]** Add support for [real-time data](/monad-arch/realtime-data) via [WebSocket](/reference/websockets) and shared memory queue access (docs coming soon): * Geth real-time events (via WebSocket) * Geth real-time events with Monad extensions (via WebSocket) * Real-time data via shared memory queue, for programs on a full node host using the execution event SDK #### Notable performance changes * **\[Execution]** Switch to JIT EVM. The bytecode of expensive or frequently-executed contracts is compiled directly to native code for faster execution * **\[Execution]** Switch to using file pointer-based IPC to execute blocks. Previously, the client was using a write-ahead log (WAL), which did not take advantage of available consensus information and could result in avoidable execution #### Notable internal changes * **\[Node ops]** Adds peer discovery * **\[Node ops]** Adds full node [RaptorCast](/monad-arch/consensus/raptorcast), making the full node network scalable ## v0.9.3 | Network | Date deployed | Comment | | - | - | - | | [`testnet`](/developer-essentials/testnet) | 2025-05-29 | Revision is still `MONAD_TWO` | #### Notable RPC/SDK changes * **\[RPC]** `eth_call` and `eth_estimateGas` limits * RPC providers can now set individual per-transaction limits on maximum gas for `eth_call` and `eth_estimateGas` * Previously the limit would always be the block gas limit (150M), now the RPC provider may choose (default: 30M) * Controlled with `--eth-call-provider-gas-limit` and `--eth-estimate-gas-provider-gas-limit` * Add a maximum timeout for queueing when executing `eth_call` and `eth_estimateGas` * Controlled with `--eth_call_executor_queuing_timeout` #### Notable performance changes * **\[RPC]** Improve overall `eth_call` performance by maintaining separate queues for cheap and expensive `eth_call` operations, so that cheap `eth_call` operations will not be queued behind expensive ones. * This adds two new RPC error strings: * `failure to submit eth_call to thread pool: queue size exceeded` * `failure to execute eth_call: queuing time exceeded timeout threshold` * **\[RPC]** Added an archive index for `eth_getLogs` to support queries with address and/or topic filters * This enables larger block ranges to be queried efficiently, with work proportional to number of matching logs instead of number of blocks in range * **\[Execution]** Better bounding of TrieDB traversals #### Notable internal changes * **\[Node ops]** Performance improvements for slow statesync client upsert * **\[Node ops]** Bugfix for execution delay and abrupt history length drops caused by premature soft reset * **\[Node ops]** `keystore` QOL improvements * Support for importing from a private key in hex string format (previously required conversion to json file) * More helpful documentation via `--help` command ## testnet-1 active set expansion On 2025-05-02, `testnet-1` experienced an active set expansion #### Notable internal changes * **\[Network params]** Testnet validator set expanded from 72 to **99** nodes ## v0.9.2 | Network | Date deployed | Comment | | - | - | - | | [`testnet`](/developer-essentials/testnet) | 2025-04-05 | Revision is still `MONAD_TWO` | #### Notable performance changes * **\[RPC]** Update to the `eth_call` execution implementation - uses fewer threads to achieve the same concurrency as in `v0.9.1` #### Notable internal changes * **\[Node ops]** Support for a faster [statesync](/monad-arch/consensus/statesync) mechanism * **\[RPC]** RPC no longer accepts requests while node is statesyncing * **\[Node ops]** Some reliability and efficiency improvements to how statesync traffic is carried between nodes * **\[Node ops]** Bugfixes for execution crashes (`monad::mpt::deserialize_node_from_buffer`, `'Resource temporarily unavailable`) - **\[Node ops]** Bug fix for unbounded blocksync requests that result in node OOM failures - **\[Node ops]** Removal of DNS resolution panic on start up ## v0.9.1 | Network | Date deployed | Comment | | - | - | - | | [`testnet`](/developer-essentials/testnet) | 2025-03-24 | Revision is set to `MONAD_TWO` | #### Notable internal changes * **\[Node ops]** Bugfix for blocksync errors * **\[Node ops]** Reliability and efficiency improvements to statesync ## v0.9.0 Revision [`MONAD_TWO`](/developer-essentials/changelog#revisions) introduced. | Network | Date deployed | Comment | | - | - | - | | [`testnet`](/developer-essentials/testnet) | 2025-03-14 | Revision is set to `MONAD_TWO` at 2025-03-14 19:00 GMT | #### Notable protocol changes - `MONAD_TWO` * **\[EVM]** Max contract size increased from 24kb to **128kb** #### Notable RPC/SDK changes * **\[RPC]** `debug_traceTransaction` fixes * Fixed a bug where, within one transaction, only the first 100 calls were being traced * Added `error` and `revertReason` fields to response data #### Notable performance changes * **\[Consensus]** Dataplane v2 - simpler and more efficient implementation; small performance improvement in broadcast time * **\[RPC]** Improvements to RPC performance for `eth_call` - **\[RPC]** Removed redundant sender\_recovery operation on raw transactions received via RPC #### Notable internal changes * **\[Node ops]** Statesync improvements to mitigate negative performance effects on upstream validator nodes - **\[RPC]** EIP-2 signature validation added to RPC transaction validation - **\[Node ops]** Miscellaneous tracing, logging and metrics additions - **\[Consensus]** RaptorCast performance improvement when dealing with invalid symbols ## v0.8.1 Revision [`MONAD_ONE`](/developer-essentials/changelog#revisions) introduced. | Network | Date deployed | Comment | | - | - | - | | [`testnet`](/developer-essentials/testnet) | 2025-02-14 | Revision is set to `MONAD_ONE` at 2025-02-14 19:00 GMT | #### Notable protocol changes - `MONAD_ONE` * **\[Network params]** Block time reduced from 1s to **500 ms** * **\[Network params]** Block gas limit reduced from 300M to **150M** (to keep gas limit consistent) * **\[EVM]** Transactions are [charged](/developer-essentials/gas-pricing) based on gas limit, not gas consumed #### Notable RPC/SDK changes * **\[RPC]** UX improvements for [transaction status](/monad-arch/transaction-lifecycle). RPC nodes track status of transactions submitted to them in order to provide updates to users. # Differences between Monad and Ethereum Source: https://docs.monad.xyz/developer-essentials/differences <Tip> Use [Foundry v1.8.0 or later](/tooling-and-infra/toolkits/foundry) with the Monad execution network enabled so your local development environment follows Monad's onchain behavior. </Tip> This list assembles notable behavioral differences between Monad and Ethereum from the perspective of a smart contract developer. ## Virtual Machine 1. The maximum contract code size limit is 128 KB (up from 24 KB in Ethereum). Consequently, the max init code size limit is 256 KB (up from 48 KB in Ethereum). 2. A few opcodes and precompiles are repriced, to reweight relative scarcities of resources due to Monad optimizations. See [Opcode Pricing](/developer-essentials/opcode-pricing). 3. Memory expansion is priced linearly rather than quadratically, and a transaction can use at most 8 MB of memory. See [Memory expansion](/developer-essentials/opcode-pricing#memory-expansion). 4. The `secp256r1` (P256) verification precompile at `0x0100` per [EIP-7951](https://eips.ethereum.org/EIPS/eip-7951) is supported, enabling on-chain verification of WebAuthn/passkey signatures. See [Precompiles](/developer-essentials/precompiles#p256-signature-verification). ## Storage Storage slots are grouped into pages of 128 consecutive slots. Access is warmed per page rather than per slot: the first `SLOAD` or `SSTORE` to a page pays the cold cost, and every other slot of that page is warm for the rest of the transaction. Storage layouts that Solidity already produces benefit without changes, since state variables, struct fields, and array elements occupy consecutive slots. Layouts that scatter slots across pages are not penalized; each page pays its own cold cost. See [Storage pages](/developer-essentials/opcode-pricing#storage-pages) for the gas schedule, and [MIP-8](https://mips.monad.xyz/MIPs/MIP-8) for the specification. ## Transactions 1. Transactions are charged based on gas limit rather than gas usage, i.e. total gas deducted from the sender's balance is `value + gas_bid * gas_limit`. As discussed in [Gas in Monad](/developer-essentials/gas-pricing), this is a DoS-prevention measure for asynchronous execution. 2. Consensus and execution utilize the [Reserve Balance](/developer-essentials/reserve-balance) mechanism to ensure that all transactions included in consensus can be paid for. This mechanism places light restrictions on transaction inclusion at consensus time, and defines select conditions under which a transaction will revert at execution time. 3. Due to the Reserve Balance mechanism, you may see transactions in the blockchain which ultimately fail due to trying to spend too much MON relative to account balance. These transactions still pay for gas and are valid transactions whose result is execution reversion. This isn't a protocol difference, as many reverting Ethereum transactions are included in the chain, but it may be different from expectation. [Longer discussion](/developer-essentials/reserve-balance#transactions-that-are-included-but-revert). 4. Transaction type 3 (EIP-4844 aka blob transactions) is not supported. 5. There is no global mempool. For efficiency, transactions are forwarded to the next few leadersas described in [Local Mempool](/monad-arch/consensus/local-mempool). ## EIP-7702 Delegation 1. If an EOA is EIP-7702-delegated, its balance cannot be lowered below 10 MON due to the [Reserve Balance](/developer-essentials/reserve-balance) rules. If the delegation is removed, dipping below 10 MON is allowed. [Discussion](/developer-essentials/eip-7702#delegated-eoas-can%E2%80%99t-dip-below-10-mon).
프로젝트로 돌아가기