Skip to content

Commit

Permalink
feat: archway verifed logic
Browse files Browse the repository at this point in the history
  • Loading branch information
viveksharmapoudel committed Jul 18, 2023
1 parent 9356806 commit c876126
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions relayer/chains/archway/archway_chain_processor.go
Original file line number Diff line number Diff line change
Expand Up @@ -405,6 +405,9 @@ func (ccp *ArchwayChainProcessor) queryCycle(ctx context.Context, persistence *q
return err
}

Check warning on line 406 in relayer/chains/archway/archway_chain_processor.go

View check run for this annotation

Codecov / codecov/patch

relayer/chains/archway/archway_chain_processor.go#L403-L406

Added lines #L403 - L406 were not covered by tests

ccp.log.Debug("Archway chain processor Verified block ",
zap.Int64("height", lightBlock.Header.Height))

latestHeader, ok := ibcHeader.(ArchwayIBCHeader)
if !ok {
ccp.log.Warn("Failed to convert ibcHeader to archwayIbcHeader", zap.Int64("Height", int64(ibcHeader.Height())))
Expand Down Expand Up @@ -522,6 +525,8 @@ func (ccp *ArchwayChainProcessor) Verify(ctx context.Context, untrusted *types.L
return fmt.Errorf("invalid header: %v", err)
}

Check warning on line 526 in relayer/chains/archway/archway_chain_processor.go

View check run for this annotation

Codecov / codecov/patch

relayer/chains/archway/archway_chain_processor.go#L523-L526

Added lines #L523 - L526 were not covered by tests

ccp.verifier.Header = untrusted

return nil

Check warning on line 530 in relayer/chains/archway/archway_chain_processor.go

View check run for this annotation

Codecov / codecov/patch

relayer/chains/archway/archway_chain_processor.go#L528-L530

Added lines #L528 - L530 were not covered by tests

}
Expand Down

0 comments on commit c876126

Please sign in to comment.