babylonchain / babylon-finality-gadget

2 stars 2 forks source link

feat: add CW queries and implement killswitch #23

Closed parketh closed 2 months ago

parketh commented 2 months ago

Summary

This PR adds support for a killswitch feature. It closes #21.

Description

When calling QueryIsBlockBabylonFinalized, we first query the is_disabled state variable in the CW contract and, if true, disable the EOTS verification step by returning true.

This effectively builds in a killswitch that allows the OP derivation pipeline to pass through.

See also https://github.com/babylonchain/babylon-contract/issues/181 which contains corresponding updates to CW contract to expose new query methods

Test plan

make run
make test
bap2pecs commented 2 months ago

let's add a "test plan" section so I know we have run the tests e.g. make run and make test