-
Notifications
You must be signed in to change notification settings - Fork 272
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Maintain non-federated CLI #593
Conversation
3e221b3
to
b4940ca
Compare
…nt init; Use pyevm as default provider URI
…d blockchin config log on NodeConfiguration and NodeStorage
…d ursula CLI test module.
2d054cd
to
eb04eb4
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looking pretty decent! I think I need to actually run it to see how things look; it's hard to assess how some of the strings are formatted without seeing the result in a terminal.
For now, just a few small changes needed.
def __repr__(self): | ||
r = '{name}({blockchain}, {deployer_address})'.format(name=self.__class__.__name__, | ||
blockchain=self.blockchain, | ||
deployer_address=self.deployer_address) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like this will raise if deployer_address
is not set - and, unless I'm reading incorrectly - it's not guaranteed to be.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There is a CS constant used as the default value of deployer_address
: NO_DEPLOYER_ADDRESS
- but it looks like there is a bit of an Issue since there is a reference to deployer_address
both here on this object (Deployer
) and also on BlockchainInterface
, which may be different values.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks pretty good
50eabd5
to
58d8c3f
Compare
Co-Authored-By: KPrasch <kieranprasch@gmail.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🐧
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just some minor comments and it's good to go.
@@ -2,6 +2,7 @@ | |||
__pycache__ | |||
*.pyc | |||
/.venv | |||
.eggs |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cool, we have green eggs. We just need some ham now.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
✔️
@@ -89,7 +89,7 @@ def __generate_insecure_unlocked_accounts(self, quantity: int) -> List[str]: | |||
|
|||
umbral_priv_key = UmbralPrivateKey.gen_key() | |||
address = self.interface.w3.personal.importRawKey(private_key=umbral_priv_key.to_bytes(), | |||
password=insecure_password) | |||
passphrase=insecure_password) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not related to this PR, but do we still consider "passphrase"
in Sentry scrubbers?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes.
@@ -19,7 +19,7 @@ | |||
|
|||
import maya | |||
import pytest | |||
import pytest_twisted | |||
import pytest_twisted as pt |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just curious...why?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
https://pypi.org/project/pytest-twisted/
Beware that in situations such as a conftest.py file that the name pytest_twisted may be undesirably detected by pytest as an unknown hook. One alternative is to import pytest_twisted as pt.
Co-Authored-By: KPrasch <kieranprasch@gmail.com>
The recent work to build a federated network, left this code on the back-burner for a while. This PR updates reestablishes decentralisation as the primary and default operating mode.
nucypher-deploy
; ImplementsDeployer
actor)--federated-only
False by default (Fixes Set --federated-only back to False by default #600)--rest-port
(Fixes Accept any network port number passed via CLI flag #601)