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
Control creation of network actions when handling ChainInfoQuery. (#4523)
## Motivation
Creating network actions requires reading certificates – this takes a
lot of CPU time (reading from storage, deserializing certificates, etc.)
but it's not always needed. Network actions are created in couple of
places but one surprising one was when handling a `ChainInfoQuery`.
## Proposal
Add a boolean field to `ChainInfoQuery` struct that controls whether the
caller wants to create network actions. By default it is set to `true`
to maintain backwards compatibility but clients can call
`no_network_actions` to set it to false.
## Test Plan
CI.
## Release Plan
- Nothing to do / These changes follow the usual release cycle.
This is already backported to testnet
(#4518)
## Links
- [reviewer
checklist](https://github.com/linera-io/linera-protocol/blob/main/CONTRIBUTING.md#reviewer-checklist)
0 commit comments