Skip to content

Extract Worker actor from Staker#1058

Merged
cygnusv merged 40 commits intonucypher:alhambra-verdefrom
cygnusv:capitalism
Jun 18, 2019
Merged

Extract Worker actor from Staker#1058
cygnusv merged 40 commits intonucypher:alhambra-verdefrom
cygnusv:capitalism

Conversation

@cygnusv
Copy link
Member

@cygnusv cygnusv commented Jun 7, 2019

The goal of this PR is to crystallize the implications of #1003, i.e., the separation of Ursula in two: Worker and Staker. Now Ursulas are worker nodes, while NU holders are stakers (either of human or contract nature).

Most drastic changes occur at the actor level (since now the old Staker actor was separated into Staker and Worker) and at the Teacher level, since now teacher nodes (which inherit from Worker) have to implement the new ways of identity validation (as per #1003), which include off-chain and on-chain means.

Side note: this was a fun PR. @KPrasch and I were working on it in turns, taking advantage of our almost complementary time zones. There wasn't too much need to talk. Just wake up in the morning, drink some coffee, git remote update and continue from where the other left.

@codecov
Copy link

codecov bot commented Jun 8, 2019

Codecov Report

Merging #1058 into alhambra-verde will decrease coverage by 1.63%.
The diff coverage is 80.29%.

Impacted file tree graph

@@                Coverage Diff                 @@
##           alhambra-verde    #1058      +/-   ##
==================================================
- Coverage           84.26%   82.62%   -1.64%     
==================================================
  Files                  68       68              
  Lines                8731     8910     +179     
==================================================
+ Hits                 7357     7362       +5     
- Misses               1374     1548     +174
Impacted Files Coverage Δ
nucypher/characters/base.py 87.04% <ø> (-0.14%) ⬇️
nucypher/characters/unlawful.py 46.42% <ø> (-50.13%) ⬇️
nucypher/blockchain/eth/policies.py 76.51% <0%> (-0.76%) ⬇️
nucypher/config/characters.py 99.1% <100%> (+0.01%) ⬆️
nucypher/characters/lawful.py 89.71% <100%> (+0.07%) ⬆️
nucypher/blockchain/eth/deployers.py 91.05% <100%> (-0.05%) ⬇️
nucypher/utilities/sandbox/ursula.py 100% <100%> (+1.85%) ⬆️
nucypher/blockchain/eth/chains.py 74.07% <100%> (ø) ⬆️
nucypher/network/protocols.py 86.66% <100%> (+2.94%) ⬆️
nucypher/config/node.py 91.43% <100%> (+0.06%) ⬆️
... and 27 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update d3fcff5...38cd595. Read the comment docs.

@cygnusv cygnusv force-pushed the alhambra-verde branch 4 times, most recently from ffdb6f6 to e2a3ec9 Compare June 10, 2019 10:02
@cygnusv cygnusv force-pushed the capitalism branch 2 times, most recently from 427c3fb to 8a26dd5 Compare June 11, 2019 01:02
@cygnusv cygnusv changed the title [WIP] Extract Worker actor from Staker Extract Worker actor from Staker Jun 17, 2019
@cygnusv cygnusv marked this pull request as ready for review June 17, 2019 19:02
@KPrasch
Copy link
Member

KPrasch commented Jun 17, 2019

Follow up to @transaction agency API - #1086

The only way to use setWorker without waiting is that there's no worker set.
@cygnusv cygnusv merged commit b9aa214 into nucypher:alhambra-verde Jun 18, 2019
cygnusv added a commit that referenced this pull request Jun 18, 2019
Extract Worker actor from Staker
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.

4 participants