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

Use coreutils/wallet.Event #149

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

chris124567
Copy link
Member

Use the standard event type used in our other apps. Unfortunately to avoid duplicating queries this requires some conversions from explorer types to core types. Alternatively, we could just use the enhanced explorer types for the transaction and resolution events which would make things somewhat easier.

Fix #78

internal/testutil/check.go Show resolved Hide resolved
persist/sqlite/consensus.go Show resolved Hide resolved
persist/sqlite/events.go Show resolved Hide resolved
@n8maninger
Copy link
Member

This is pretty rough. I'm leaning towards using the extended types. They are close enough matches that it will probably be fine.

@chris124567
Copy link
Member Author

This is pretty rough. I'm leaning towards using the extended types. They are close enough matches that it will probably be fine.

👍 With you on that. I guess we can still use wallet.Event but the implementing types will be different.

@chris124567
Copy link
Member Author

Started on this but it has me thinking. When we do unconfirmed events, aren't we going to have to convert from the core types into the explorer types? Because we're going to be taking transactions that haven't been indexed yet more or less straight from the txpool. Except we might not have all the info to fill out the "enhanced" fields for the explorer types.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: In Progress
Development

Successfully merging this pull request may close these issues.

Use wallet.Event from coreutils
3 participants