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
Remove hash, time and height from ChainClientState. (#4024)
## Motivation
The next block height, most recent block hash, and most recent block
timestamp are currently read from the wallet and put into
`ChainClientState`, which is then updated frequently (but not always:
#2652) based on the
local node's chain state.
So the fields in the `ChainClientState` are meant to first equal the
values from the wallet, and then the values from the chain state view.
## Proposal
Keep only the values from the wallet in `ChainClient` and never update
them. Whenever the _current_ values are needed, read them from the chain
state directly.
## Test Plan
CI
## Release Plan
- Nothing to do / These changes follow the usual release cycle.
## Links
- Closes#2652.
- _Partly_ addresses
#2569.
- [reviewer
checklist](https://github.com/linera-io/linera-protocol/blob/main/CONTRIBUTING.md#reviewer-checklist)
0 commit comments