F-resilient Write quorums for the Uniform strategy method #8

Closed
opened 2021-06-07 13:25:07 +00:00 by samueleresca · 1 comment
samueleresca commented 2021-06-07 13:25:07 +00:00 (Migrated from github.com)

Hi @mwhittaker,

I see the following implementation for the uniform_strategy method:

def uniform_strategy(self, f: int = 0) -> 'Strategy[T]':
  ...
  xs = list(self.elements())            
  read_quorums = list(self._f_resilient_quorums(f, xs, self.reads))            
  write_quorums = list(self._f_resilient_quorums(f, xs, self.reads))
  ...

(line 179)

Am I right to suppose that in the f_resilient_quorums call for the write_quorums var, it should pass the self.writes property of the quorum system?

Thanks 😄

Hi @mwhittaker, I see the following implementation for the `uniform_strategy` method: ``` def uniform_strategy(self, f: int = 0) -> 'Strategy[T]': ... xs = list(self.elements()) read_quorums = list(self._f_resilient_quorums(f, xs, self.reads)) write_quorums = list(self._f_resilient_quorums(f, xs, self.reads)) ... ``` ([line 179](https://github.com/mwhittaker/quoracle/blob/d83a811a905a51fc13ebc00ddac036d559463380/quoracle/quorum_system.py#L179)) Am I right to suppose that in the `f_resilient_quorums` call for the `write_quorums` var, it should pass the `self.writes` property of the quorum system? Thanks 😄
mwhittaker commented 2021-06-07 15:53:14 +00:00 (Migrated from github.com)

Haha whoops! Yeah, that is a bug. Just pushed a commit to fix it. Thanks so much for finding the bug Samuele. If you find any other bugs, definitely let me know!

Haha whoops! Yeah, that is a bug. Just pushed a commit to fix it. Thanks so much for finding the bug Samuele. If you find any other bugs, definitely let me know!
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: greg/quoracle#8
No description provided.