Skip to content

Commit

Permalink
Log the reference block at which the batch is validated
Browse files Browse the repository at this point in the history
  • Loading branch information
jianoaix committed Apr 23, 2024
1 parent a2abb5e commit 4912829
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions node/node.go
Original file line number Diff line number Diff line change
Expand Up @@ -369,6 +369,7 @@ func (n *Node) ProcessBatch(ctx context.Context, header *core.BatchHeader, blobs
}

func (n *Node) ValidateBatch(ctx context.Context, header *core.BatchHeader, blobs []*core.BlobMessage) error {
n.Logger.Info("Validating batch", "reference block", header.ReferenceBlockNumber, "operatorId", n.Config.ID)
operatorState, err := n.ChainState.GetOperatorStateByOperator(ctx, header.ReferenceBlockNumber, n.Config.ID)
if err != nil {
return err
Expand Down

0 comments on commit 4912829

Please sign in to comment.