Currently this field is optional but editable (see tx.proto) and exposed in CLI/UI.
The default value (if the user doesn't set it) is Zero, as expected. However, a user may edit it to some non-zero value.
We should not allow non-zero values of SchemaVersion in 1.4. On the other hand, we may need it to be editable in future.
The easiest way to do it is to add a (static) validation to all commands (in all tx.proto) so that is the input SchemaVersion != 0, the command is rejected.
tx.proto
) and exposed in CLI/UI.tx.proto
) so that is the input SchemaVersion != 0, the command is rejected.Recommended Steps:
schemaVersion
field to all Create/Update commands in alltx.proto
files (https://github.com/zigbee-alliance/distributed-compliance-ledger/tree/master/proto/zigbeealliance/distributedcomplianceledger)