babylonlabs-io / finality-provider

Other
6 stars 10 forks source link

Feat: impl QueryFinalityProviderHasPower in consumer chain #44

Closed bournezjc closed 2 months ago

bournezjc commented 2 months ago

Summary

context in #496 This pr implements the logic of querying voting power in Op.

instead of querying the exact voting power, the FP queries BTC delegations page by page, and if there is >=1 active BTC delegation, then it can vote.

Test plan

make test-e2e-op