diff --git a/settlement/dymension/dymension.go b/settlement/dymension/dymension.go index ec67abb0e..2cf5b1d6b 100644 --- a/settlement/dymension/dymension.go +++ b/settlement/dymension/dymension.go @@ -264,7 +264,7 @@ submitLoop: case event := <-subscription.Out(): eventData := event.Data().(*settlement.EventDataNewBatchAccepted) if eventData.EndHeight != batch.EndHeight { - d.logger.Error("Received event for a different batch, ignoring.", "event", eventData) + d.logger.Info("Received event for a different batch, ignoring.", "event", eventData) continue } uevent.MustPublish(d.ctx, d.pubsub, &settlement.EventDataHealth{}, settlement.EventHealthStatusList) diff --git a/settlement/events.go b/settlement/events.go index 4a53098e1..740e5e7ff 100644 --- a/settlement/events.go +++ b/settlement/events.go @@ -1,6 +1,8 @@ package settlement import ( + "fmt" + "github.com/dymensionxyz/dymint/types" uevent "github.com/dymensionxyz/dymint/utils/event" ) @@ -37,6 +39,10 @@ type EventDataNewBatchAccepted struct { StateIndex uint64 } +func (e EventDataNewBatchAccepted) String() string { + return fmt.Sprintf("EndHeight: %d, StateIndex: %d", e.EndHeight, e.StateIndex) +} + type EventDataSequencersListUpdated struct { // Sequencers is the list of new sequencers Sequencers []types.Sequencer