0g-chain/x/auction/abci.go

14 lines
239 B
Go
Raw Normal View History

2019-11-25 19:46:02 +00:00
package auction
import (
sdk "github.com/cosmos/cosmos-sdk/types"
)
// BeginBlocker runs at the start of every block.
func BeginBlocker(ctx sdk.Context, k Keeper) {
err := k.CloseExpiredAuctions(ctx)
if err != nil {
panic(err)
2019-11-25 19:46:02 +00:00
}
}