Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Do not run DBSync if there is already a readable app version #130

Merged
merged 1 commit into from
Apr 26, 2023

Conversation

codchen
Copy link
Collaborator

@codchen codchen commented Apr 26, 2023

Describe your changes and provide context

If application DB already has a non-zero version (e.g. if the process restarts after DBSync finishes), we do not want to wipe out everything and rerun DBSync

Testing performed to validate your change

loadtest cluster

@codchen codchen merged commit 46c1bb6 into main Apr 26, 2023
Timwood0x10 pushed a commit to Timwood0x10/sei-tendermint that referenced this pull request Jun 7, 2023
## Describe your changes and provide context
Callers to `GetWasmDependencyAccessOps` now needs to pass in a
`WasmMessageInfo` instead of raw message bytes so that the function can
identify whether the message is a query or execute. This PR introduced
helpers under `types/wasm.go` to help creating such `WasmMessageInfo`.
`GetWasmDependencyAccessOps` would then extend the access operations
list with the appropriate specific access ops.

Next steps:
- Add separate selector enums for query reference and execute reference
- Handle new selector enums by passing the current WasmMessageInfo

## Testing performed to validate your change
unit tests
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants