babylonlabs-io / babylon-contract

CosmWasm smart contracts for Babylon integration
Other
10 stars 6 forks source link

OP consumer: enforce timestamped pub rand at finality sig submission #69

Open bap2pecs opened 2 months ago

bap2pecs commented 2 months ago

similar to https://github.com/babylonlabs-io/babylon/blob/a6f728b023145bea81d275f4e94fdbed60c36736/x/finality/keeper/msg_server.go#L105-L110 if at this height this FP does not have timestamped pub rand finality sig will be rejected

we need the same thing for the OP consumer chain

by runchao:

It's easier for OP contract -- everything in OP CW contract is timestamped by Babylon already and we can find out the epoch of each pub rand commit by querying babylon