Skip to content

Commit

Permalink
feat: add the cache for robust address (#1273)
Browse files Browse the repository at this point in the history
* Add the cache for robust address
  • Loading branch information
Terryhung committed Oct 18, 2023
1 parent 73e7036 commit f51d771
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tasks/actorstate/task.go
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,13 @@ func (t *Task) ProcessActors(ctx context.Context, current *types.TipSet, execute

func (t *Task) startActorStateExtraction(ctx context.Context, current, executed *types.TipSet, actors tasks.ActorStateChangeDiff, results chan *ActorStateResult) {
var wg sync.WaitGroup

// Setup the cache for robust address
err := t.node.SetIdRobustAddressMap(ctx, current.Key())
if err != nil {
log.Errorf("Error at setting IdRobustAddressMap: %v", err)
}

for addr, ac := range actors {
addr := addr
ac := ac
Expand Down

0 comments on commit f51d771

Please sign in to comment.