Skip to content

Commit

Permalink
more logs
Browse files Browse the repository at this point in the history
  • Loading branch information
claravanstaden committed Sep 30, 2024
1 parent 1e06c93 commit b774b1c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion relayer/relays/execution/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ func (r *Relay) Start(ctx context.Context, eg *errgroup.Group) error {

blockNumber, err := ethconn.Client().BlockNumber(ctx)
if err != nil {
return fmt.Errorf("get last block number: %w", err)
return fmt.Errorf("geOkayt last block number: %w", err)
}

events, err := r.findEvents(ctx, blockNumber, paraNonce+1)
Expand Down Expand Up @@ -380,6 +380,7 @@ func (r *Relay) waitAndSend(ctx context.Context, ev *contracts.GatewayOutboundMe
}).Info("count is now")
cnt++
}
log.Info("done with waiting period, now doing submit")
err = r.doSubmit(ctx, ev)
if err != nil {
return fmt.Errorf("submit inbound message: %w", err)
Expand All @@ -389,6 +390,7 @@ func (r *Relay) waitAndSend(ctx context.Context, ev *contracts.GatewayOutboundMe
}

func (r *Relay) doSubmit(ctx context.Context, ev *contracts.GatewayOutboundMessageAccepted) error {
log.Info("getting inbound message")
inboundMsg, err := r.makeInboundMessage(ctx, r.headerCache, ev)
if err != nil {
return fmt.Errorf("make outgoing message: %w", err)
Expand All @@ -413,6 +415,7 @@ func (r *Relay) doSubmit(ctx context.Context, ev *contracts.GatewayOutboundMessa
}

// ParentBeaconRoot in https://eips.ethereum.org/EIPS/eip-4788 from Deneb onward
log.Info("getting execution proof")
proof, err := r.beaconHeader.FetchExecutionProof(*blockHeader.ParentBeaconRoot, r.config.InstantVerification)
if errors.Is(err, header.ErrBeaconHeaderNotFinalized) {
logger.Warn("beacon header not finalized, just skipped")
Expand Down

0 comments on commit b774b1c

Please sign in to comment.