Conversation
9978cf0 to
7c9c870
Compare
Codecov Report
@@ Coverage Diff @@
## sekanjabin #1146 +/- ##
==============================================
- Coverage 83.4% 82.52% -0.89%
==============================================
Files 72 72
Lines 9655 9680 +25
==============================================
- Hits 8053 7988 -65
- Misses 1602 1692 +90
Continue to review full report at Codecov.
|
… CLI; Provides interactive account selection for Alice.
…tionsl partialy resote bob view command.
… or dev chain is auto detected.
a8a9a7e to
6392c1f
Compare
|
|
||
|
|
||
| def get_nucypher_password(confirm: bool = False, envvar="NUCYPHER_KEYRING_PASSWORD") -> str: | ||
| keyring_password = os.environ.get(envvar, NO_PASSWORD) |
There was a problem hiding this comment.
If this is a boolean var, it might be better to use cli/config.py:get_env_bool() here - stricter, but less surprises (the function is perhaps better moved to utilities somewhere in that case). Although there are several os.environ uses throughout the code, so this may be better left for another PR.
There was a problem hiding this comment.
You know - I'm thinking of restoring the original state of this code since its not being implemented anywhere. I had started to do this thinking I was going to share one method for password collection of both client and nucypher keyrings. Instead, I ended up writing multiple functions.
| def activate(self, password: str = None): | ||
| """Be Consumed""" | ||
| self.blockchain.connect(sync_now=False) | ||
| self.blockchain.connect(fetch_registry=True, sync_now=False) |
There was a problem hiding this comment.
Since False is the default now, this may not be necessary (depending on whether the intention here is "do the default action" or "never sync")
There was a problem hiding this comment.
fetch_registry=True may clash with a fix for #1166. Is it truly necessary to always fetch registry here?
There was a problem hiding this comment.
I think this can be handled elsewhere, no critical reason to be here other than being prudent.
… unneeded feature flags. Relocate deployment console painting to painting.py.
| # TODO: OH MY. | ||
| client_password = None | ||
| if not alice_config.federated_only: | ||
| if (not hw_wallet or not dev) and not click_config.json_ipc: |
There was a problem hiding this comment.
Is hw_wallet option used at all except here?
There was a problem hiding this comment.
This is the only reason the flag is used at the moment. See related #1128
| controller = BOB.make_web_controller(crash_on_error=click_config.debug) | ||
| BOB.log.info('Starting HTTP Character Web Controller') | ||
| return controller.start(http_port=http_port, dry_run=dry_run) | ||
| return controller.start(http_port=controller_port , dry_run=dry_run) |
There was a problem hiding this comment.
" " after controller_port here
Fixes #1139 #1137 #1148 #1133 #1155