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

allow share phase to partially fail and still move to publish phase #190 #191

Merged
merged 2 commits into from
May 7, 2021

Conversation

bbist
Copy link
Contributor

@bbist bbist commented Apr 17, 2021

Hi @peterlimg and @Kenwes13 ,

Can you please review these changes regarding #190?

@bbist bbist requested a review from Kenwes13 April 18, 2021 12:28
@guruhubb guruhubb requested a review from peterlimg April 18, 2021 18:52
@@ -703,6 +696,13 @@ func (msc *MinerSmartContract) shareSignsOrShares(t *transaction.Transaction,
"invalid state: decoding miners MPK: %v", err)
}

// We may use != instead of < here? @kenwes13
if len(sos.ShareOrSigns) < len(mpks.Mpks)-1 {
Copy link
Member

Choose a reason for hiding this comment

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

Use if len(sos.ShareOrSigns) < dmn.K-1.

Copy link
Member

Choose a reason for hiding this comment

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

Never mind, I'll update it in fix/vc-true-stuck branch. Let's see how would this go with fix/vc-true-struck branch.

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