babylonchain / babylon-finality-gadget

3 stars 3 forks source link

feat: add query for btc staking activated timestamp #63

Closed bap2pecs closed 2 months ago

bap2pecs commented 3 months ago

Summary

https://github.com/babylonchain/babylon-finality-gadget/issues/59

changed QueryEarliestDelHeight => QueryBtcStakingActivatedTimestamp to avoid doing the L2->BTC block conversion

it's better to return timestamp


also fixed broken test

Test Plan

make mock-gen
make lint
make test

Next Step

modify the OP code to use the query to only check quorum when BTC staking is activated. also remove the check for no voting power