Skip to content

Commit

Permalink
bugfix: NewGenesisPh should only relay to existing subclients
Browse files Browse the repository at this point in the history
  • Loading branch information
wizeguyy committed Apr 12, 2023
1 parent 827395f commit 854f1d5
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions core/slice.go
Original file line number Diff line number Diff line change
Expand Up @@ -771,9 +771,11 @@ func (sl *Slice) NewGenesisPendingHeader(domPendingHeader *types.Header) {

if nodeCtx != common.ZONE_CTX {
for _, client := range sl.subClients {
client.NewGenesisPendingHeader(context.Background(), domPendingHeader)
if err != nil {
return
if client != nil {
client.NewGenesisPendingHeader(context.Background(), domPendingHeader)
if err != nil {
return
}
}
}
}
Expand Down

0 comments on commit 854f1d5

Please sign in to comment.