I have a question about smart contracts. Given that each node on the network runs the code attached to a contract independently, wouldn't the effect of the code be executed multiple times? For instance, if the code transfers coins from one address to another, wouldn't each node initiate a separate transfer? Surely, some mechanism is in place to prevent this from happening, but does anyone know how it works and what the policy is? Which node is allowed to enact the change? Also, how is a race condition prevented?
[link] [comments]
You can get bonuses upto $100 FREE BONUS when you:
π° Install these recommended apps:
π² SocialGood - 100% Crypto Back on Everyday Shopping
π² xPortal - The DeFi For The Next Billion
π² CryptoTab Browser - Lightweight, fast, and ready to mine!
π° Register on these recommended exchanges:
π‘ Binanceπ‘ Bitfinexπ‘ Bitmartπ‘ Bittrexπ‘ Bitget
π‘ CoinExπ‘ Crypto.comπ‘ Gate.ioπ‘ Huobiπ‘ Kucoin.
Comments