mirror of
https://github.com/agent-substrate/substrate.git
synced 2026-11-12 10:35:06 +08:00
An old server replica doing Read-Modify-Write should drop unknown fields
on read and serve the reduced object.
Here we add `proto.UnmarshalOptions{DiscardUnknown: true}` because when
we read an unknown field in storage layer, it must mean a newer replica
has written such a field. Since we have declined requests with unknown
fields with interceptors in #1216.
Fixes #1205
- [ ] Tests pass
- [x] Appropriate changes to documentation are included in the PR