bat-go icon indicating copy to clipboard operation
bat-go copied to clipboard

Operator shares should be bumped to 2 in the calling function

Open kdenhartog opened this issue 1 year ago • 2 comments

https://github.com/brave-intl/bat-go/pull/1691#discussion_r1494191389

Alternatively, if we expect this to be globally set we could set this inside the function rather than having the caller pass it in.

kdenhartog avatar Feb 22 '24 01:02 kdenhartog

This check should be removed entirely. Instead, we should be handling the case where the subsequent shamir.Combine call failed due to insufficient or duplicate shares. Add wrapped error or decorator(s) as needed.

Sneagan avatar Apr 18 '24 20:04 Sneagan

This seems like one of those issues that is a "nice to have" based on our operators policy currently, but I'd rather get this stabilized before we need it so marking it as blocking.

kdenhartog avatar Jul 22 '24 22:07 kdenhartog

@kdenhartog On my current branch for localdev I refactored the code to make fetching of secretes and operator shares independent. It also makes handling of number of shares more explicit similarly to your PR but it conflicts badly with your PR. I think we should ping @Sneagan to have your changes land and then I will address the conflicts.

ibukanov avatar Sep 02 '24 07:09 ibukanov

That sounds like a good plan to me. I've marked that PR as ready since I just realized I left it in draft.

kdenhartog avatar Sep 02 '24 23:09 kdenhartog