Remove authority expiry queue entry if there is no auction winner
All checks were successful
Integration Tests / test-integration (pull_request) Successful in 2m58s
Build / build (pull_request) Successful in 2m59s
E2E Tests / test-e2e (pull_request) Successful in 4m32s
Unit Tests / test-unit (pull_request) Successful in 2m2s
SDK Tests / sdk_tests_nameservice_expiry (pull_request) Successful in 7m32s
SDK Tests / sdk_tests (pull_request) Successful in 8m44s
SDK Tests / sdk_tests_auctions (pull_request) Successful in 14m2s
All checks were successful
Integration Tests / test-integration (pull_request) Successful in 2m58s
Build / build (pull_request) Successful in 2m59s
E2E Tests / test-e2e (pull_request) Successful in 4m32s
Unit Tests / test-unit (pull_request) Successful in 2m2s
SDK Tests / sdk_tests_nameservice_expiry (pull_request) Successful in 7m32s
SDK Tests / sdk_tests (pull_request) Successful in 8m44s
SDK Tests / sdk_tests_auctions (pull_request) Successful in 14m2s
This commit is contained in:
parent
b183f2cd19
commit
9682865d77
@ -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.
|
||||||
|
Loading…
Reference in New Issue
Block a user