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

chore: update query activated height #42

Merged

Conversation

lesterli
Copy link
Collaborator

Summary

This PR updated the implementation of activated height which queries the BTC staking activated timestamp via the finality gadget grpc, and then converted it to the L2 block number.

Content babylonchain/finality-provider#432

Test Plan

make lint
make test
make test-e2e-op

@lesterli lesterli changed the base branch from main to base/consumer-chain-support August 25, 2024 10:37
clientcontroller/opstackl2/consumer.go Outdated Show resolved Hide resolved
clientcontroller/opstackl2/consumer.go Outdated Show resolved Hide resolved
clientcontroller/opstackl2/consumer.go Show resolved Hide resolved
clientcontroller/opstackl2/consumer.go Show resolved Hide resolved
@lesterli lesterli requested a review from bap2pecs August 27, 2024 05:10
@lesterli lesterli merged commit 1f84df7 into base/consumer-chain-support Aug 28, 2024
3 of 8 checks passed
@lesterli lesterli deleted the chore/update-queryActivatedHeight branch August 28, 2024 03:25
bap2pecs added a commit to babylonlabs-io/babylon-contract that referenced this pull request Oct 5, 2024
## Summary

after babylonlabs-io/finality-provider#42, we no
longer need to read activated height from the cw contract.

instead, we properly find the time when the first delegation became
active (see
babylonchain/finality-provider#432)

so this cleans up the unused field

## Test Plan

```
cargo optimize
cargo precommit
cargo integration
cargo test
```
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