Skip to content
This repository has been archived by the owner on Nov 24, 2022. It is now read-only.

Tweaks for the simpler auctioneer winner selection flow #23

Merged
merged 2 commits into from
Aug 2, 2021

Conversation

sanderpick
Copy link
Member

@sanderpick sanderpick commented Jul 29, 2021

Signed-off-by: Sander Pick <sanderpick@gmail.com>
@sanderpick sanderpick force-pushed the sander/auctioneer-v2 branch from 0973909 to ae8a536 Compare July 30, 2021 21:46
@@ -41,10 +41,9 @@ type Bid struct {

// WinningBid contains details about a winning bid.
type WinningBid struct {
BidderID peer.ID
Acknowledged bool // Whether or not the bidder acknowledged receipt of the win
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • Acknowledged: No longer needed because winners that's don't ack they have won are not selected. This happens in-line during winner selection.
  • ProposalCidAcknowledged: No longer needed because when winners don't ack the proposal cid delivery, an error is stored in the new field ErrorCause and returned to the broker. In this case, the broker would have to decide what to do. Most likely retrying and/or recreating the auction.

@sanderpick sanderpick marked this pull request as ready for review July 30, 2021 21:53
@sanderpick sanderpick changed the title pubsub: add retries when making bid Tweaks for the simpler auctioneer winner selection flow Jul 30, 2021
@sanderpick sanderpick requested a review from merlinran July 30, 2021 21:55
Copy link
Contributor

@merlinran merlinran left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Sorry for the late - I thought it would be reviewed together with the other PR.

@@ -41,10 +41,9 @@ type Bid struct {

// WinningBid contains details about a winning bid.
type WinningBid struct {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh wait @sanderpick just realized that bidbot doesn't use this struct at all! We could simply move this altogether to the storage broker code to remove dependency - if you think it's okay.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ah yeah, good point. I'll move it over to the other PR and update this one

Signed-off-by: Sander Pick <sanderpick@gmail.com>
@sanderpick
Copy link
Member Author

Moved models to core... merging this one now.

@sanderpick sanderpick merged commit 1d12f4b into main Aug 2, 2021
@sanderpick sanderpick deleted the sander/auctioneer-v2 branch August 2, 2021 20:20
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants