10 ms·
This bug was on the Solana blockchain. Solana has built in support for updating code. Even on Ethereum, with it's mostly immutable contracts/programs, there is
by danielvf 5y ago
This bug was on the Solana blockchain. Solana has built in support for updating code.
Even on Ethereum, with it's mostly immutable contracts/programs, there is a super common pattern of a tiny shim contract that forwards all calls on to another contract that does all the work. By changing a storage variable which changes the contract the shim points to, you can effectively upgrade the code.
- dralley 5y agoAnd therein lies my biggest frustration with crypto evangelism. Almost every theoretical benefit that gets trotted out is such a detriment in practice that the ecosystem tosses it aside. While still proclaiming it as a virtue.
- pshc 5y agoI would wager most contracts deployed these days are immutable. Upgradable contracts are frowned upon in the space, moreso every day. But given that humans are prone to making mistakes, when code is fresh and unproven, proxies are a practical way to go. Once you've ironed out all issues, you blow the fuse so that the contract can't be changed anymore.
- pjc50 5y ago> can't be changed anymore .. which means that when an undiscovered vulnerability is found all the investors are guaranteed to lose their money.
- user-the-name 5y ago> Once you've ironed out all issues Yeah this is something that famously happens with software development, you just iron out all the issue and then never have to change anything ever again.
- woah 5y ago> the ecosystem tosses it aside This is false. Many of the most heavily used Ethereum contracts, such as Uniswap, are non-upgradeable.
- masklinn 5y agoThe one to which you can send back the stuff it sent you, and it essentially burns the money? And that can’t be fixed because it’s immutable?
- nikisweeting 5y agoCorrect, but what they can do is hard fork and encourage users to switch to the new version. Users will vote with their feet and choose the version that benefits them most. In a sense it's still upgradable, but only through direct democracy instead of delegated democracy / oligarchy. (and for the record I don't necessarily think that's a good thing for a financial system, but we'll see how it plays out in the next few years)