Skip to content

Commit

Permalink
nit
Browse files Browse the repository at this point in the history
  • Loading branch information
lesterli committed Dec 4, 2024
1 parent 03c466f commit 842091e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion clientcontroller/opstackl2/consumer.go
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,7 @@ func (cc *OPStackL2ConsumerController) SubmitBatchFinalitySigs(
return nil, fmt.Errorf("the number of blocks %v should match the number of finality signatures %v", len(blocks), len(sigs))
}
msgs := make([]sdk.Msg, 0, len(blocks))
fpPkHex := bbntypes.NewBIP340PubKeyFromBTCPK(fpPk).MarshalHex()
for i, block := range blocks {
cmtProof := cmtcrypto.Proof{}
if err := cmtProof.Unmarshal(proofList[i]); err != nil {
Expand All @@ -210,7 +211,7 @@ func (cc *OPStackL2ConsumerController) SubmitBatchFinalitySigs(

msg := SubmitFinalitySignatureMsg{
SubmitFinalitySignature: SubmitFinalitySignatureMsgParams{
FpPubkeyHex: bbntypes.NewBIP340PubKeyFromBTCPK(fpPk).MarshalHex(),
FpPubkeyHex: fpPkHex,
Height: block.Height,
PubRand: bbntypes.NewSchnorrPubRandFromFieldVal(pubRandList[i]).MustMarshal(),
Proof: ConvertProof(cmtProof),
Expand All @@ -236,6 +237,7 @@ func (cc *OPStackL2ConsumerController) SubmitBatchFinalitySigs(
}
cc.logger.Debug(
"Successfully submitted finality signatures in a batch",
zap.String("fp_pk_hex", fpPkHex),
zap.Uint64("start_height", blocks[0].Height),
zap.Uint64("end_height", blocks[len(blocks)-1].Height),
)
Expand Down

0 comments on commit 842091e

Please sign in to comment.