From 582f8f9a1412abf913a47f0957911e683ec991c8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Magiera?= Date: Tue, 19 Nov 2019 23:07:58 +0100 Subject: [PATCH] events: Fix Called handler --- chain/events/events_called.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/chain/events/events_called.go b/chain/events/events_called.go index 94368214e..81d4e7872 100644 --- a/chain/events/events_called.go +++ b/chain/events/events_called.go @@ -87,9 +87,7 @@ func (e *calledEvents) headChangeCalled(rev, app []*types.TipSet) error { e.handleReverts(ts) } - tail := len(app) - 1 - for i := range app { - ts := app[tail-i] + for _, ts := range app { // called triggers e.checkNewCalls(ts)