Read

Edit

History

Notify

Share

EIP-6049

EIP-6049 is an that proposes to deprecate the existing "SELFDESTRUCT" opcode in Ethereum and replace it with a new opcode called "halt", as part of the Shanghai  of the Shapella Upgrade.[1]

Overview

On November 27th, 2022, EIP-6049 was created to improve the security and reliability of in by deprecating the problematic SELFDESTRUCT opcode and replacing it with a more secure and controlled function called "halt".

The self-destruct opcode allows a to destroy itself and return any remaining funds to a designated recipient. However, it has several issues that make it problematic for use in certain scenarios. [2]

One of the main issues with self-destruct is that it can be called by anyone, not just the owner of the contract. This can lead to situations where a malicious actor can destroy a contract and cause the owner to lose all of their funds. Additionally, self-destruct has an unbounded cost, meaning that it can be used to consume large amounts of gas and create denial-of-service attacks. [3]

The proposed "halt" opcode is intended to address these issues by providing a safer and more controlled way for contracts to self-destruct. Unlike self-destruct, halt can only be called by the contract owner and has a fixed gas cost. This will make it harder for attackers to abuse the function and create attacks that consume large amounts of gas and in turn, provide developers with greater control over their contracts and reduce the risk of attacks that can cause widespread damage to the network. [2][3]

See something wrong? Report to us.

EIP-6049

Commit Info

Edited By

Edited On

March 31, 2023

Feedback

Average Rating

No ratings yet, be the first to rate!

How was your experience?

Give this wiki a quick rating to let us know!

Media

REFERENCES

Join the IQ Brainlist

Sign up for the IQ Brainlist to get early access to editing on the IQ.wiki site!

Join Now

Subscribe to our newsletter

The IQ Ecosystem Report will keep you updated on everything IQ.

Subscribe

IQ.wiki

IQ.wiki's vision is to bring blockchain knowledge to the world and knowledge onto the blockchain. A part of Brainfund group

https://twitter.com/IQWIKIhttps://www.reddit.com/r/Everipedia/https://t.me/everipediahttps://www.instagram.com/iqwiki_/https://github.com/EveripediaNetworkhttps://discord.gg/x9EWvTcPXthttps://web.facebook.com/everipedia?_rdc=1&_rdr

IQ

What's IQ?StakingBonds

Company

About usCareersBrandingIQ GPTIQ Dashboard

© 2024 IQ.wiki Powered By BrainDAO & IQ