Skip to content

Minor CLI bug fixes for nucypher stake and nucypher ursula#1163

Merged
KPrasch merged 7 commits intonucypher:sekanjabinfrom
cygnusv:moomin
Jul 26, 2019
Merged

Minor CLI bug fixes for nucypher stake and nucypher ursula#1163
KPrasch merged 7 commits intonucypher:sekanjabinfrom
cygnusv:moomin

Conversation

@cygnusv
Copy link
Member

@cygnusv cygnusv commented Jul 26, 2019

Copy link
Member

@derekpierre derekpierre left a comment

Choose a reason for hiding this comment

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

Very minor comment - 💯

checksum_address=manual_staker,
blockchain=testerchain)

assert not staker.worker_address No newline at end of file
Copy link
Member

Choose a reason for hiding this comment

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

Do we have a test where the specified address to detach does not match an actual worker?

Copy link
Member Author

Choose a reason for hiding this comment

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

Can you elaborate? I think I don't understand what you mean.

Copy link
Member

Choose a reason for hiding this comment

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

A test to determine how the detach-worker code would handle an invalid staking address being passed to it eg. passing "0x6d4D33A138896a7D82E198fcDB7F050FBe8642EA" (<- random) for the staking address.

@codecov
Copy link

codecov bot commented Jul 26, 2019

Codecov Report

Merging #1163 into sekanjabin will decrease coverage by 0.05%.
The diff coverage is 36.36%.

Impacted file tree graph

@@              Coverage Diff               @@
##           sekanjabin    #1163      +/-   ##
==============================================
- Coverage       83.63%   83.58%   -0.06%     
==============================================
  Files              72       72              
  Lines            9644     9655      +11     
==============================================
+ Hits             8066     8070       +4     
- Misses           1578     1585       +7
Impacted Files Coverage Δ
nucypher/cli/painting.py 82.08% <100%> (-0.14%) ⬇️
nucypher/cli/stake.py 78.62% <60%> (-1.22%) ⬇️
nucypher/cli/characters/ursula.py 61.8% <9.09%> (-1.51%) ⬇️

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 27fc89d...ea87340. Read the comment docs.

date = datetime_at_period(period=confirmed_period)

emitter.echo(f'\nActivity confirmed for period #{confirmed_period} '
f'(starting at {date}) !!', bold=True, color='blue')
Copy link
Member

Choose a reason for hiding this comment

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

Very exited?

staking_reward,

) -> None:
"""
Copy link
Member

Choose a reason for hiding this comment

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

👍

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