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

Change height to leaf index in Solidity and tests #35

Merged
merged 1 commit into from
Oct 7, 2021

Conversation

drewstone
Copy link
Contributor

@drewstone drewstone commented Oct 6, 2021

Overview

This PR changes a value on every edge from the block height to the latest leaf index processed from that edge.

Motivation

The motivation is that we can easily see the latest leaf index that a bridged chain knows about before making a withdrawal / zkp generation. That way, we can provide more clarity to the user of whether their note is ready for spending across chains.

Copy link
Contributor

@akileshtangella akileshtangella left a comment

Choose a reason for hiding this comment

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

Changes look good. All tests are passing locally on my machine, as well.

@drewstone drewstone merged commit 406d78b into main Oct 7, 2021
@drewstone drewstone deleted the drew-leaf-index-update branch October 7, 2021 16:57
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.

3 participants