mirror of
https://github.com/0glabs/0g-chain.git
synced 2024-12-27 00:35:18 +00:00
7eede47769
* refactor bidding test * add some more bid test cases * add balance checks to bid tests * add more checks to bid tests * add min bid increments * protect against negative lot amounts * fix params tests * change endblocker to beginblocker * update spec * fix params tests * fix: update alias Co-authored-by: Kevin Davis <karzak@users.noreply.github.com>
14 lines
239 B
Go
14 lines
239 B
Go
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)
|
|
}
|
|
}
|