Fixes for handling authority expiry queue #40

Merged
ashwin merged 4 commits from pm-fix-authority-reservation into main 2024-07-22 05:40:46 +00:00
Showing only changes of commit 9682865d77 - Show all commits

View File

@ -111,6 +111,14 @@ func (rk RecordKeeper) OnAuctionWinnerSelected(ctx sdk.Context, auctionId string
// Mark as expired. // Mark as expired.
authority.Status = registrytypes.AuthorityExpired authority.Status = registrytypes.AuthorityExpired
logger(ctx).Info(fmt.Sprintf("No winner, marking authority as expired: %s", name)) logger(ctx).Info(fmt.Sprintf("No winner, marking authority as expired: %s", name))
logger(ctx).Info(fmt.Sprintf("Deleting the expiry queue entry: %s", name))
if err = rk.k.deleteAuthorityExpiryQueue(ctx, name, authority); err != nil {
panic(err)
}
// TODO: Set expiry time in authority as the auction's reveals end time
// authority.ExpiryTime = auctionObj.RevealsEndTime
} }
// Forget about this auction now, we no longer need it. // Forget about this auction now, we no longer need it.