Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dont publish expired deals #5505

Merged
merged 1 commit into from
Feb 2, 2021

Conversation

dirkmc
Copy link
Contributor

@dirkmc dirkmc commented Feb 2, 2021

@jennijuju pointed out that we should not include deals in a batch publish message if the deal has already expired (the current epoch is greater than the deal proposal start epoch). This PR implements a fix.

@dirkmc dirkmc changed the base branch from master to feat/deal-batch-publish February 2, 2021 09:23
@dirkmc dirkmc mentioned this pull request Feb 2, 2021
6 tasks
if err != nil {
return err
}
if head.Height() > deal.Proposal.StartEpoch {
Copy link
Contributor

Choose a reason for hiding this comment

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

We could add some config here to allow setting some minimum window

@magik6k magik6k merged commit 20e92da into feat/deal-batch-publish Feb 2, 2021
@magik6k magik6k deleted the fix/dont-publish-expired-deals branch February 2, 2021 17:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants