From f51d7719feaa1c2b26bc9bd9e75dd1406d60a250 Mon Sep 17 00:00:00 2001 From: "terry.hung" Date: Wed, 18 Oct 2023 17:42:32 +0800 Subject: [PATCH] feat: add the cache for robust address (#1273) * Add the cache for robust address --- tasks/actorstate/task.go | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tasks/actorstate/task.go b/tasks/actorstate/task.go index 94633fc2..f3d98538 100644 --- a/tasks/actorstate/task.go +++ b/tasks/actorstate/task.go @@ -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