archethic-foundation / archethic-node

Official Archethic Blockchain node, written in Elixir
GNU Affero General Public License v3.0
71 stars 22 forks source link

Smart Contracts: avoid executing the contract many times #920

Open bchamagne opened 1 year ago

bchamagne commented 1 year ago

Describe the problem you discovered

Right now, the Smart Contract is run once by a miner (A). If that miner (A) crashes or the execution did not create a new transaction, the next elected node (B) will react and execute the contract. If B's execution also result in a crash or no new transaction, the next elected node (C) will react an so on.

We need a way to avoid that behaviour.

Describe the solution you'd like

No response

bchamagne commented 1 year ago

Duplicate of https://github.com/archethic-foundation/archethic-node/issues/881

bchamagne commented 1 year ago

Not sure it's actually a duplicate. Feel free to close it if it is.