Skip to content

Commit

Permalink
add l2client
Browse files Browse the repository at this point in the history
  • Loading branch information
ClaytonNorthey92 committed Feb 19, 2025
1 parent 3c8e04f commit 75380eb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions op-node/node/bvm_api_helper.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ func getTipHeight(ctx context.Context, driver driverClient) (uint64, error) {
return syncStatus.UnsafeL2.Number, nil
}

func getBTCFinalityForBlockNum(ctx context.Context, blockNum uint64, driver driverClient, bssClient client.BssClient) ([]hemi.L2BTCFinality, error) {
func getBTCFinalityForBlockNum(ctx context.Context, blockNum uint64, driver driverClient, bssClient client.BssClient, l2Client l2EthClient) ([]hemi.L2BTCFinality, error) {
nextKeystoneHeight, err := getKeystoneProvidingFinality(blockNum)
if err != nil {
return nil, err
Expand Down Expand Up @@ -104,5 +104,5 @@ func getBTCFinalityForBlockHash(ctx context.Context, blockHash common.Hash, l2Cl
"%d is %x", blockHash, blockNum, blockNum, blockHash)
}

return getBTCFinalityForBlockNum(ctx, blockNum, driver, bssClient)
return getBTCFinalityForBlockNum(ctx, blockNum, driver, bssClient, l2Client)
}

0 comments on commit 75380eb

Please sign in to comment.