<p>It would be running on the blockchain.. which is a chain of blocks. So really its running on the whole blockchain network regardless of how many blocks there are.</p>

<p><em>Although the smart contract never existed until the block which you deployed the smart contract on.
For example you deployed a smart contract at block 1500 and right now its block 2000. If someone forked that blockchain at block 1499 your smart contract would never exist. But if they forked at block 1500 then your smart contract would exist on the new forked blockchain (look up the Ethereum classic fork.
I hope this clears it up for you.</em></p>

CC BY-SA 3.0
2018-01-03T23:06:38.930Z
This sounds very confused.
Pieter Wuille
CC BY-SA 3.0
2018-01-03T22:17:46.940Z
2018-01-04T04:55:09.050Z
2018-01-04T04:55:09.050Z
Marc Alexander
<p>If I have a Blockchain which consists of few smart contracts. Let's say that the Blockchain consists of 2000 blocks. When a new block is added to the Blockchain then does the smart contract runs on all 2000 + 1 blocks or only the last one? </p>

CC BY-SA 3.0
2018-01-03T20:18:33.843Z
Are you talking about Ethereum?
meshcollider
CC BY-SA 3.0
2018-01-03T21:18:40.503Z
I am more of talking about in general concept of smart contracts.
john doe
CC BY-SA 3.0
2018-01-03T23:02:46.200Z
There is no such thing as general concept of smart contract. Every system has its own definition, and most of them aren't things you'd ordinarily call a contract. You'll have to specify what system you're talking about.
Pieter Wuille
CC BY-SA 3.0
2018-01-04T04:56:56.763Z
I believe a general concept of smart contracts is equal to a programmable blockchain. Saying there is no general concept is like saying there is no general concept to cereal. A lot of different types... but we all know what cereal is.
Marc Alexander
CC BY-SA 3.0
2018-01-04T06:36:37.130Z
Still my answer to this question would be pretty much the opposite for Bitcoin and for Ethereum. I think that's enough to say that for the purpose of this question, there really is no established common ground.
Pieter Wuille
<blockchain><smartcontracts>
Smart Contract Execution
john doe
# Smart Contract Execution

(Asked by: username_0 on 2018-01-03)

If I have a Blockchain which consists of few smart contracts. Let's say that the Blockchain consists of 2000 blocks. When a new block is added to the Blockchain then does the smart contract runs on all 2000 + 1 blocks or only the last one?

**Tags:** blockchain, smartcontracts

> **Comments:**
> **username_1**: Are you talking about Ethereum?  
> **username_0**: I am more of talking about in general concept of smart contracts.  
> **username_2**: There is no such thing as general concept of smart contract. Every system has its own definition, and most of them aren't things you'd ordinarily call a contract. You'll have to specify what system you're talking about.  
> **username_3**: I believe a general concept of smart contracts is equal to a programmable blockchain. Saying there is no general concept is like saying there is no general concept to cereal. A lot of different types... but we all know what cereal is.  
> **username_2**: Still my answer to this question would be pretty much the opposite for Bitcoin and for Ethereum. I think that's enough to say that for the purpose of this question, there really is no established common ground.  

---

## 1 answers

### Answer by username_3 on 2018-01-03. Score: -1

It would be running on the blockchain.. which is a chain of blocks. So really its running on the whole blockchain network regardless of how many blocks there are.

*Although the smart contract never existed until the block which you deployed the smart contract on.
For example you deployed a smart contract at block 1500 and right now its block 2000. If someone forked that blockchain at block 1499 your smart contract would never exist. But if they forked at block 1500 then your smart contract would exist on the new forked blockchain (look up the Ethereum classic fork.
I hope this clears it up for you.*

> **Comments:**
> **username_2**: This sounds very confused.  

---

