From 65957d61992ae1e536060646a1af8f722197129a Mon Sep 17 00:00:00 2001 From: Prathamesh Musale Date: Tue, 29 Oct 2024 04:04:49 +0000 Subject: [PATCH] Remove stale auctions after a year (#63) Part of [Create a public laconicd testnet](https://www.notion.so/Create-a-public-laconicd-testnet-896a11bdd8094eff8f1b49c0be0ca3b8) Reviewed-on: https://git.vdb.to/cerc-io/laconicd/pulls/63 Co-authored-by: Prathamesh Musale Co-committed-by: Prathamesh Musale --- x/auction/keeper/keeper.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/x/auction/keeper/keeper.go b/x/auction/keeper/keeper.go index 850fa3f0..99a837b5 100644 --- a/x/auction/keeper/keeper.go +++ b/x/auction/keeper/keeper.go @@ -26,7 +26,7 @@ import ( ) // CompletedAuctionDeleteTimeout => Completed auctions are deleted after this timeout (after reveals end time). -const CompletedAuctionDeleteTimeout = time.Hour * 24 +const CompletedAuctionDeleteTimeout = 365 * 24 * time.Hour // 1 year type AuctionsIndexes struct { Owner *indexes.Multi[string, string, auctiontypes.Auction]