Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 6 additions & 7 deletions bridge/setu/listener/heimdall.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ import (
sdk "github.com/cosmos/cosmos-sdk/types"
checkpointTypes "github.com/maticnetwork/heimdall/checkpoint/types"
clerkTypes "github.com/maticnetwork/heimdall/clerk/types"
featureManagerTypes "github.com/maticnetwork/heimdall/featuremanager/types"
slashingTypes "github.com/maticnetwork/heimdall/slashing/types"
stakingTypes "github.com/maticnetwork/heimdall/staking/types"
htype "github.com/maticnetwork/heimdall/types"
Expand Down Expand Up @@ -308,12 +307,12 @@ func (hl *HeimdallListener) StartPollingEventRecord(ctx context.Context, pollInt
}

func (hl *HeimdallListener) loadEventRecords(ctx context.Context, pollInterval time.Duration) {
targetFeature, err := util.GetTargetFeatureConfig(hl.cliCtx, featureManagerTypes.DynamicCheckpoint)
if err != nil || !targetFeature.IsOpen {
hl.Logger.Info("Feature not supported... goroutine exists")

return
}
//targetFeature, err := util.GetTargetFeatureConfig(hl.cliCtx, featureManagerTypes.DynamicCheckpoint)
//if err != nil || !targetFeature.IsOpen {
// hl.Logger.Info("Feature not supported... goroutine exists")
//
// return
//}

if atomic.LoadUint32(&hl.stateSyncedInitializationRun) == 1 {
hl.Logger.Info("Last ProcessEventRecords not finished... goroutine exists")
Expand Down
Loading