Skip to content

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.

4 participants