Skip to content

Commit

Permalink
logs
Browse files Browse the repository at this point in the history
  • Loading branch information
cyberhorsey committed Jul 3, 2024
1 parent 80c31b3 commit 17638e4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/taiko-client/pkg/rpc/methods.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ func (c *Client) ensureGenesisMatched(ctx context.Context) error {

stateVars, err := c.GetProtocolStateVariables(&bind.CallOpts{Context: ctxWithTimeout})
if err != nil {
log.Error("error getting protocol state variables", "error", err)
return err
}

Expand All @@ -48,12 +49,14 @@ func (c *Client) ensureGenesisMatched(ctx context.Context) error {
nil,
)
if err != nil {
log.Error("error getting c.TaikoL1.FilterBlockVerified", "error", err)
return err
}

// Fetch the node's genesis block.
nodeGenesis, err := c.L2.HeaderByNumber(ctxWithTimeout, common.Big0)
if err != nil {
log.Error("error getting node genesis block", "error", err)
return err
}

Expand Down

0 comments on commit 17638e4

Please sign in to comment.