Close Menu
Altcoin ObserverAltcoin Observer
  • Regulation
  • Bitcoin
  • Altcoins
  • Market
  • Analysis
  • DeFi
  • Security
  • Ethereum
Categories
  • Altcoins (1,454)
  • Analysis (1,637)
  • Bitcoin (2,226)
  • Blockchain (1,315)
  • DeFi (1,538)
  • Ethereum (1,507)
  • Event (56)
  • Exclusive Deep Dive (1)
  • Landscape Ads (2)
  • Market (1,582)
  • Press Releases (2)
  • Reddit (876)
  • Regulation (1,480)
  • Security (2,105)
  • Thought Leadership (3)
  • Videos (41)
Hand picked
  • Bitcoin’s volatility drops to multi-year lows
  • 3 key events this week that could move the prices of bitcoin and cryptography
  • The eyes of a bracing token $ 50 new ATH while Perps Trading reaches 1.571 Billion of dollars in volume – is that the break?
  • Second to reign on Graycale’s proposal to convert the Bitcoin, Ether, XRP and ADA fund to a large capitalization in one ETF Spot this week
  • SEI leads the cryptography market with 43% weekly overvoltage – $ 0.5 of recovery on the horizon? – TradingView News
We are social
  • Facebook
  • Twitter
  • Instagram
  • YouTube
Facebook X (Twitter) Instagram
  • About us
  • Disclaimer
  • Terms of service
  • Privacy policy
  • Contact us
Facebook X (Twitter) Instagram YouTube LinkedIn
Altcoin ObserverAltcoin Observer
  • Regulation
  • Bitcoin
  • Altcoins
  • Market
  • Analysis
  • DeFi
  • Security
  • Ethereum
Events
Altcoin ObserverAltcoin Observer
Home»Ethereum»How Merging Affects Ethereum’s Application Layer
Ethereum

How Merging Affects Ethereum’s Application Layer

October 26, 2024No Comments6 Mins Read
Share Facebook Twitter Pinterest LinkedIn Tumblr Reddit Telegram Email
Rd.jpg
Share
Facebook Twitter LinkedIn Pinterest Email


Ethereum’s transition to proof-of-stake – The Merge – is near: devnets are being created, specifications are being finalized, and community outreach has begun in earnest. The merger is designed to have minimal impact on the operation of Ethereum for end users, smart contracts and dapps. That said, there are a few minor changes worth noting. Before we get into them, here are some links to provide context on Merge’s overall architecture:


The remainder of this article will assume that the reader is familiar with the above. For those wanting to dig even deeper, The Merge’s full specs are available here:


Block structure

After the merge, proof of working blocks will no longer exist on the network. Instead, the old content of proof-of-work blocks becomes a component of the blocks created on the Beacon chain. You can then think of the Beacon Chain as becoming Ethereum’s new proof-of-stake consensus layer, replacing the previous proof-of-work consensus layer. Beacon chain blocks will contain Execution Payloadswhich are the post-merge equivalent of the current proof-of-work chain blocks. The image below shows this relationship:

For end users and application developers, these Execution Payloads This is where interactions with Ethereum occur. Transactions on this layer will always be processed by execution layer clients (Besu, Erigon, Geth, Nethermind, etc.). Fortunately, due to the stability of the execution layer, The Merge only introduces minimal changes.

Mining fields and Ommer Block

After the merge, several fields previously contained in the headers of the proof-of-work blocks become unused because they are not relevant to the proof-of-stake. To minimize disruption to tools and infrastructure, these fields are set to 0, or the equivalent of their data structure, rather than being removed from the data structure entirely. Full changes to blocking fields can be found in EIP-3675.

Field Constant value Comment
ommers () RLP(()) = 0xc0
ommersHash 0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347 = Keccak256(RLP(()))
difficulty 0
occasionally 0x0000000000000000

Because proof of stake does not naturally produce ommers (aka uncle blocks) like proof of work, listing these in each block (ommers) will be empty, and the hash of this list (ommersHash) will become the RLP encoded hash of an empty list. Likewise, because difficulty And occasionally are proof of work elements, these will be defined on 0while respecting their byte size values.

mixHashanother mining related field, will not be set to 0 but will instead contain the RANDAO value from the tag string. More on this below.

BLOCHASH & DIFFICULTY opcode changes

After the merger, the BLOCHASH The opcode will still be available, but since it will no longer be tampered with through the proof-of-work hashing process, the pseudo-randomness provided by this opcode will be much lower.

In relation, the DIFFICULTY opcode(0x44) will be updated and renamed to PREVRANDAO. After merging, it will return the output of the random tag provided by the tag chain. This opcode will therefore be a stronger source of randomness, although still biased, that application developers will be able to use than BLOCHASH.

The value exhibited by PREVRANDAO will be stored in the Execution payload Or mixHasha value associated with the calculation of the proof of work, has been stored. Payload mixHash the field will also be renamed previousRandao.

Here is an illustration of how DIFFICULTY & PREVRANDAO opcodes work before and after merge:

Before the merger we see the 0x44 the opcode returns the difficulty field in the block header. After the merge, the opcode, renamed to PREVRANDAOpoints to the header field that previously contained mixHash and now stores the previousRandao tag string state value.

This change, formalized in EIP-4399also provides on-chain applications a way to assess whether the merge has occurred. From the PEI:

Additionally, the changes proposed by this EIP allow smart contracts to determine whether the upgrade to PoS has already occurred. This can be done by analyzing the return value of the DIFFICULTY opcode. A value greater than 2**64 indicates that the transaction is executing in the PoS block.

Blocking time

The merger will impact the average block time on Ethereum. Currently under proof of work, blocks arrive on average approximately every 13 seconds with some variation in actual block times. Under proof of stake, blocks arrive exactly every 12 seconds, except when a slot is missed, either because a validator is offline or fails to submit a block on time. In practice, this currently occurs in <1% of locations.

This implies a reduction of approximately 1 second in average block times across the network. Smart contracts that assume a particular average block time in their calculations will need to take this into account.

Finalized blocks and sure head

Under proof of work, there is always the potential for reorganization. Applications typically wait until several blocks are mined on top of a new head before considering it unlikely to be removed from the canonical, or “confirmed,” chain. After The Merge, we instead have the concepts of finalized blocks and sure head exposed on the execution layer. These blocks can be used more reliably than “confirmed” proof-of-work blocks, but require a shift in understanding to be used correctly.

A finalized block is one that has been accepted as canonical by >2/3 of the validators. To create a contention block, an attacker would have to burn at least 1/3 of the total ether staked. Although stake amounts may vary, such an attack would still cost the attacker millions of ETH.

A sure head the block is the one that was justified by the Beacon Chain, which means that > ​​2/3 of validators have attested to it. Under normal network conditions, we expect it to be included in the canonical chain and eventually finalized. For this block not to be part of the canonical chain, a majority of validators would have to agree to attack the network, or the network would have to experience extreme levels of latency in the propagation of blocks. Post-merge execution layer APIs (e.g. JSON RPC) will expose the sure head using a on label.

Finalized blocks will also be exposed via JSON RPC, via a new finalized flag. These can then serve as a more effective substitute for proof-of-work confirmations. The table below summarizes this:

Block type Consensus mechanism JSONRPC Reorganization conditions
head Proof of work last To be expected, should be used with caution.
sure head Proof of Stake on Possible, requires either significant network delay or network attack.
confirmed Proof of work N / A Unlikely, requires a majority of hashrate to mine a competing chain of depth > number of confirmations.
finalized Proof of Stake finalized Extremely unlikely, requires >2/3 validators to finalize a concurrent chain, requiring at least 1/3 to be reduced.

Note: The JSON RPC specification is still under active development. Name changes are still to be expected.

Next steps

We hope this article helps app developers prepare for the long-awaited transition to proof-of-stake. In the coming weeks, a long-running testnet will be made available to the wider community for testing. There is also a next Merge Community Call allowing infrastructure, tool and application developers to ask questions and hear the latest technical updates on The Merge. See you there 👋🏻


Thanks to Mikhail Kalinin, Danny Ryan, and Matt Garnett for reviewing drafts of this article.



Source link

Share. Facebook Twitter Pinterest LinkedIn Tumblr Email
Previous ArticleEnter the Token-Driven Lab of the Angry Dynomites World
Next Article Unlocking the Potential of XRP in DeFi

Related Posts

Ethereum

Vitalik Buterin says that digital digital pluralist IDs are the “best realistic solution” to preserve confidentiality

June 29, 2025
Ethereum

Ethereum holding above the key support on the daily graphic – the eyes fixed on the rupture

June 29, 2025
Ethereum

Ethereum Historical Pattern alludes to a potential overvoltage of $ 10,000

June 28, 2025
Add A Comment
Leave A Reply Cancel Reply

Single Page Post
Share
  • Facebook
  • Twitter
  • Instagram
  • YouTube
Featured Content
Event

Philippine Blockchain Week 2025 Welcomes Global Web3 Trailblazers to Manila

June 9, 2025

Manila, Philippines – June 9, 2025 — As Philippine Blockchain Week (PBW) 2025 returns for…

Event

ETHMilan 2025 Returns With a Stellar Line-Up at One of Milan’s Most Iconic Venues

June 5, 2025

Milan, Italy – Mark your calendars! ETHMilan, Italy’s largest international Ethereum and Web3 conference, is…

1 2 3 … 49 Next
  • Facebook
  • Twitter
  • Instagram
  • YouTube

The eyes of a bracing token $ 50 new ATH while Perps Trading reaches 1.571 Billion of dollars in volume – is that the break?

June 30, 2025

Is the XRP gear for a break? – These measures say yes, only if …

June 30, 2025

The successful author Ric Edelman radically changes the cryptographic investment strategy – Here is his new position: Report

June 30, 2025
Facebook X (Twitter) Instagram LinkedIn
  • About us
  • Disclaimer
  • Terms of service
  • Privacy policy
  • Contact us
© 2025 Altcoin Observer. all rights reserved by Tech Team.

Type above and press Enter to search. Press Esc to cancel.

bitcoin
Bitcoin (BTC) $ 107,667.85
ethereum
Ethereum (ETH) $ 2,513.13
tether
Tether (USDT) $ 1.00
xrp
XRP (XRP) $ 2.31
bnb
BNB (BNB) $ 659.21
solana
Solana (SOL) $ 157.45
usd-coin
USDC (USDC) $ 1.00
tron
TRON (TRX) $ 0.279444
dogecoin
Dogecoin (DOGE) $ 0.167288
staked-ether
Lido Staked Ether (STETH) $ 2,511.33