ethereum / sharding

Sharding manager contract, and related software and tests
480 stars 105 forks source link

Updated validator contract manager and added get_collations_with_score function #33

Closed hwwhww closed 6 years ago

hwwhww commented 6 years ago

Description

This PR is part of the evolution of stateless client #31

  1. Updated validator_manager_contract

    • Added get_eligible_proposer function for replacing sample function
    • Added some comments and refactored
    • Removed some of shuffling cycle code and the rest will be removed after integrating with stateless collator
  2. Added the easiest part of stateless_collator.py. collator.py will be replaced with more PRs.

    • Added get_collations_with_score function
    • Added get_collations_with_scores_in_range function
    • These two function will be used for CREATE_COLLATION
  3. According to the above code and design, updated doc.md.

How to test

pytest sharding/tests

Cute Animal Picture

cute-baby-polar-bear-day-photography-182__880