Skip to content

Commit

Permalink
remove event addition TODO tags
Browse files Browse the repository at this point in the history
  • Loading branch information
MSalopek committed Nov 7, 2022
1 parent 8ebb7bc commit 4ec552a
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 19 deletions.
6 changes: 0 additions & 6 deletions x/ccv/consumer/module.go
Original file line number Diff line number Diff line change
Expand Up @@ -149,9 +149,6 @@ func (am AppModule) ExportGenesis(ctx sdk.Context, cdc codec.JSONCodec) json.Raw
// ConsensusVersion implements AppModule/ConsensusVersion.
func (AppModule) ConsensusVersion() uint64 { return 1 }

// TODO: add events
// maybe emit event if panic is about to happen
// baybe emit blockheight and valupdateId
// BeginBlock implements the AppModule interface
// Set the VSC ID for the subsequent block to the same value as the current block
// Panic if the provider's channel was established and then closed
Expand All @@ -173,9 +170,6 @@ func (am AppModule) BeginBlock(ctx sdk.Context, req abci.RequestBeginBlock) {
am.keeper.TrackHistoricalInfo(ctx)
}

// TODO: add events
// - provider fee distribution transmission
// - matured validator updates (the consumer could emit in keeper.EndBlockVSU)
// EndBlock implements the AppModule interface
// Flush PendingChanges to ABCI, and write acknowledgements for any packets that have finished unbonding.
func (am AppModule) EndBlock(ctx sdk.Context, req abci.RequestEndBlock) []abci.ValidatorUpdate {
Expand Down
2 changes: 0 additions & 2 deletions x/ccv/democracy/distribution/module.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,6 @@ func NewAppModule(
}
}

// TODO: add events
// - maybe emit amount added to fee pool
// BeginBlocker mirror functionality of cosmos-sdk/distribution BeginBlocker
// however it allocates no proposer reward
func (am AppModule) BeginBlock(ctx sdk.Context, req abci.RequestBeginBlock) {
Expand Down
2 changes: 0 additions & 2 deletions x/ccv/democracy/governance/module.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,6 @@ func NewAppModule(cdc codec.Codec, keeper keeper.Keeper, ak govtypes.AccountKeep
}
}

// TODO: add events
// - maybe emit ids of forbidden proposals
func (am AppModule) EndBlock(ctx sdk.Context, request abci.RequestEndBlock) []abci.ValidatorUpdate {

am.keeper.IterateActiveProposalsQueue(ctx, ctx.BlockHeader().Time, func(proposal govtypes.Proposal) bool {
Expand Down
4 changes: 0 additions & 4 deletions x/ccv/provider/keeper/proposal.go
Original file line number Diff line number Diff line change
Expand Up @@ -309,8 +309,6 @@ func (k Keeper) PendingConsumerAdditionPropIterator(ctx sdk.Context) sdk.Iterato
return sdk.KVStorePrefixIterator(store, []byte{types.PendingCAPBytePrefix})
}

// TODO: add events
// - emit props to execute
// BeginBlockInit iterates over the pending consumer addition proposals in order, and creates
// clients for props in which the spawn time has passed. Executed proposals are deleted.
//
Expand Down Expand Up @@ -431,8 +429,6 @@ func (k Keeper) PendingConsumerRemovalPropIterator(ctx sdk.Context) sdk.Iterator
return sdk.KVStorePrefixIterator(store, []byte{types.PendingCRPBytePrefix})
}

// TODO: add events
// - emit removal props that will be executed
// BeginBlockCCR iterates over the pending consumer removal proposals
// in order and stop/removes the chain if the stop time has passed,
// otherwise it will break out of loop and return. Executed proposals are deleted.
Expand Down
5 changes: 0 additions & 5 deletions x/ccv/provider/keeper/relay.go
Original file line number Diff line number Diff line change
Expand Up @@ -120,9 +120,6 @@ func (k Keeper) OnTimeoutPacket(ctx sdk.Context, packet channeltypes.Packet) err
return k.StopConsumerChain(ctx, chainID, k.GetLockUnbondingOnTimeout(ctx, chainID), false)
}

// TODO: add events
// - emit matured unbonding ops
// - emit validator updates
// EndBlockVSU contains the EndBlock logic needed for
// the Validator Set Update sub-protocol
func (k Keeper) EndBlockVSU(ctx sdk.Context) {
Expand Down Expand Up @@ -205,8 +202,6 @@ func (k Keeper) SendPendingVSCPackets(ctx sdk.Context, chainID, channelID string
}
}

// TODO: add events
// - emit valupdateId and block height
// EndBlockCIS contains the EndBlock logic needed for
// the Consumer Initiated Slashing sub-protocol
func (k Keeper) EndBlockCIS(ctx sdk.Context) {
Expand Down

0 comments on commit 4ec552a

Please sign in to comment.