Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
miiu96 committed Mar 8, 2024
1 parent a269948 commit 3787ea2
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions process/accountProcessor.go
Original file line number Diff line number Diff line change
Expand Up @@ -503,17 +503,16 @@ func (ap *AccountProcessor) getShardIfOdAddress(address string) (uint32, error)
}

func (ap *AccountProcessor) getObserversForAddress(address string, availability data.ObserverDataAvailabilityType, forcedShardID core.OptionalUint32) ([]*data.NodeData, error) {
if forcedShardID.HasValue {
return ap.proc.GetObservers(forcedShardID.Value, availability)
}

addressBytes, err := ap.pubKeyConverter.Decode(address)
if err != nil {
return nil, err
}

var shardID uint32
if forcedShardID.HasValue {
shardID = forcedShardID.Value
} else {
shardID, err = ap.proc.ComputeShardId(addressBytes)
}
shardID, err := ap.proc.ComputeShardId(addressBytes)
if err != nil {
return nil, err
}
Expand Down

0 comments on commit 3787ea2

Please sign in to comment.