Hot answers tagged

9 votes
Accepted

How to upgrade a smart contract?

Because values of type lambda can be kept in storage or passed as parameters (either as lambda or as bytes to be UNPACKed), it is possible to write contracts which can upgrade themselves... This won't ...
user avatar
  • 2,466
9 votes

How to upgrade a smart contract?

Disclaimer: This is just an example for educational purposes, don't use it in production. Here is a fairly primitive upgradable design for a Liquidity smart contract: Proxy Contract Holds the state ...
user avatar
6 votes

What is the design decision to have transactions include recent block hashes?

There are three main considerations at play 1) it's a way to augment proof of stake consensus with a form of TAPOS. While transactions are not used as a chain selection rule, they do leave a forensic ...
user avatar
  • 4,399
4 votes

What is the design decision to have transactions include recent block hashes?

The idea is just that, when you create a transaction, you might have expectations on what already happened on the network. Including a transaction hash prevents including the transaction in a fork ...
user avatar
  • 3,278
2 votes

How to upgrade a smart contract?

Cryptonomic published an article on exactly this topic recently.
user avatar
1 vote

What is the design decision to have transactions include recent block hashes?

From the white paper, "If an attacker ever succeeds in forcing a long reorganization with a fork, he will be unable to include such transactions, making the fork obviously fake. This is a last line of ...
user avatar

Only top scored, non community-wiki answers of a minimum length are eligible