Split out consumer genesis state #1214
Labels
good first issue
Good for newcomers
S: KTLO
Keeping the lights on: Keeping the current product operational (bugs, troubleshooting, deps updates)
Problem
#1071 has illuminated that the provider module references the consumer genesis type. See shared_consumer.proto. Note also that a lot of the fields in the consumer's genesis state struct are zeroed out when that genesis state is queried from provider.
We should create a new struct which holds the info that a consumer actually needs from the provider (ie. no extraneous zeroed fields), this type will trivially be shared between consumer and provider. Then the consumer genesis state (only referenced by consumer) can have a field for the shared type. This allows us to make types like
HeightToValsetUpdateID
,OutstandingDowntime
only relevant to the consumer.Closing criteria
Make changes as described
Problem details
The text was updated successfully, but these errors were encountered: