Skip to content

Commit

Permalink
bugfix: Error if missing requested subordinate node
Browse files Browse the repository at this point in the history
  • Loading branch information
wizeguyy committed Feb 24, 2023
1 parent 5c099bd commit 493364f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions core/slice.go
Original file line number Diff line number Diff line change
Expand Up @@ -503,6 +503,9 @@ func (sl *Slice) GetManifest(blockHash common.Hash) (types.BlockManifest, error)
// produced this block
func (sl *Slice) GetSubManifest(slice common.Location, blockHash common.Hash) (types.BlockManifest, error) {
subIdx := slice.SubIndex()
if sl.subClients[subIdx] == nil {
return nil, errors.New("missing requested subordinate node")
}
return sl.subClients[subIdx].GetManifest(context.Background(), blockHash)
}

Expand Down

0 comments on commit 493364f

Please sign in to comment.