Open electricmonk opened 5 years ago
We need to make the decision in the linked [comment](orbs-network/orbs-network-go#400 (comment)) @OdedWx @erankirsh
Few comments:
Let's discuss if we're willing to live with the race before adding the block storage to the call flow.
I was convinced by @OdedWx that we should keep the spec as is. Meaning keep the call to the state storage and not the block storage.
If we look at service affinity, the VM and SS are affiliated and communicate frequently. Adding a hot connection between VM and BS is a bad idea.
but this leaves the system in a non-deterministic state
There's a race condition in virtual machine that might cause reading from stale state. It is documented here: https://github.com/orbs-network/orbs-network-go/issues/400#issuecomment-434726027