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
[testnet] Avoid using shared chain state views except for GraphQL. (#4797) (#4798)
Backport of #4797.
## Motivation
With the exception of a GraphQL query, the chain state view should only
be accessed by the corresponding chain worker. GraphQL is why the worker
can return a shared chain state view behind a lock, but we are using
that in many other places, too. After
#4769, this is even
more dangerous, as an actor could be dropped and restarted while shared
views are still being used.
## Proposal
Replace several `chain_state_view()` calls with chain info or new chain
worker requests.
Also, extend a comment. (See
#4793 (comment).)
## Test Plan
CI
## Release Plan
- These changes should be released in a new SDK.
## Links
- PR to main: #4797
- [reviewer
checklist](https://github.com/linera-io/linera-protocol/blob/main/CONTRIBUTING.md#reviewer-checklist)
0 commit comments