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

Feature/verify coin history #38

Merged
merged 4 commits into from
Jun 19, 2018
Merged

Feature/verify coin history #38

merged 4 commits into from
Jun 19, 2018

Conversation

gakonst
Copy link
Contributor

@gakonst gakonst commented Jun 19, 2018

Did not want to put further commits in order not to mess up #37 so branched to a new one. After we merge #37 let's cherrypick the changes from this.

Adds verify coin history api

@gakonst gakonst force-pushed the feature/verify-coin-history branch from 381b8be to 6b5488b Compare June 19, 2018 22:21
Copy link
Contributor

@aupiff aupiff left a comment

Choose a reason for hiding this comment

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

I've made a few comments for @gakonst to address later.

LGTM.

self.proofs = {}

# Proof related state
self.incl_proofs = {}
Copy link
Contributor

Choose a reason for hiding this comment

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

I'm not sure about saving these but if we do, we should make sure to use them somewhere in the get_coin_history function.

# First get the coin's deposit block
# todo efficiency -> start_block should be updated to the last block obtained last time
Copy link
Contributor

Choose a reason for hiding this comment

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

Yes, by getting max key from inclusion / exclusion proofs.

@aupiff aupiff merged commit 4e4f0ed into master Jun 19, 2018
@gakonst gakonst deleted the feature/verify-coin-history branch June 20, 2018 20:06
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.

None yet

2 participants