Encode-Club-Solidity-Foundations / Lesson-01

21 stars 14 forks source link

replicated deterministic state machine? #44

Open singhravipratap opened 1 year ago

singhravipratap commented 1 year ago

Is it always true that blockchain is a replicated deterministic state machine? What lead to non deterministic state machine?

MatheusDaros commented 1 year ago

Hello @singhravipratap

Is it always true that blockchain is a replicated deterministic state machine?

Yes, otherwise it wouldn't be possible to reach consensus on the state of the blockchain.

What lead to non deterministic state machine?

Anything random or even pseudo-random can break a deterministic behavior of a state machine. For example a dice throw. Unless you can measure every and all factors that rule the dynamics of the dice movement in the throw trajectory, it is impossible to determine the output.