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

feat(evm): genesis import&export for events and confirmedEventQueue #1408

Merged
merged 2 commits into from Apr 5, 2022

Conversation

fish-sammy
Copy link
Contributor

@fish-sammy fish-sammy commented Apr 1, 2022

Description

Todos

  • Unit tests
  • Manual tests
  • Documentation
  • Connect epics/issues
  • Tag type of change
  • Upgrade handler

Steps to Test

Expected Behaviour

Other Notes

@fish-sammy fish-sammy added the enhancement New feature or request label Apr 1, 2022
utils/queuer.go Outdated
Comment on lines 21 to 22
ExportState() (state QueueState)
ImportState(state QueueState, validator ...func(QueueState) error)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd rather have this in a separate interface (if it's needed at all)
To me, exporting and importing state is not essential to the behaviour of a queue 😄

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll just remove them from the interface.

utils/queuer.go Outdated
}

// ImportState imports the given queue state into the kv store
func (q GeneralKVQueue) ImportState(state QueueState, validator ...func(QueueState) error) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
func (q GeneralKVQueue) ImportState(state QueueState, validator ...func(QueueState) error) {
func (q GeneralKVQueue) ImportState(state QueueState, validate ...func(QueueState) error) {

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

on a related note, we do you pass in the state and the validate function instead of passing in validated state?

@fish-sammy fish-sammy force-pushed the feat/genesis-export-import-gateway-tx branch from d585aba to 88a130e Compare April 4, 2022 17:50
@fish-sammy fish-sammy added the next release Required for the next release label Apr 5, 2022
@fish-sammy fish-sammy merged commit 7444ef7 into main Apr 5, 2022
@fish-sammy fish-sammy deleted the feat/genesis-export-import-gateway-tx branch April 5, 2022 18:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request next release Required for the next release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants