You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: prevent race condition by pre-storing parameters when contract is received
The core issue was that when a contract is received from the network and
stored, its parameters were not immediately available in state_store. If
an UPDATE arrived before the state was fully stored, it would fail with
'missing contract parameters' because UpdateQuery doesn't pass the contract.
The fix pre-stores an empty state with the contract's parameters immediately
when a new contract is stored. This ensures parameters are always available
for subsequent operations, even if they arrive before the real state is stored.
This empty state is then replaced with the actual state during validation.
Fixes#1838
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <[email protected]>
0 commit comments