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
Extend DiffKVStores to return a []KVPair to improve import/export simulation logs
Problem Definition
As part of #4607, I noticed that for the import/export simulation, at the moment of comparing the two stores, the function DiffKVStores returns the first KVPair that is not equal.
Ideally, we should extend that function to return an array of KVPairs so that the person who's looking at the simulation logs can identify all the types that differ between the compared stores.
Proposal
extend DiffKVStores to return []KVPair
update Import/Export simulation to decode each of the KVPairs, returning a single log with all the decoded values.
For Admin Use
Not duplicate issue
Appropriate labels applied
Appropriate contributors tagged
Contributor assigned/self-assigned
The text was updated successfully, but these errors were encountered:
Summary
Extend
DiffKVStores
to return a[]KVPair
to improve import/export simulation logsProblem Definition
As part of #4607, I noticed that for the import/export simulation, at the moment of comparing the two stores, the function
DiffKVStores
returns the first KVPair that is not equal.cosmos-sdk/simapp/sim_test.go
Line 931 in 1cf40bf
cosmos-sdk/store/types/utils.go
Lines 19 to 22 in a579156
Ideally, we should extend that function to return an array of
KVPairs
so that the person who's looking at the simulation logs can identify all the types that differ between the compared stores.Proposal
DiffKVStores
to return[]KVPair
For Admin Use
The text was updated successfully, but these errors were encountered: