Skip to content

raiden: proxies: remove contract bytecode checking#7251

Merged
fredo merged 5 commits into
raiden-network:developfrom
istankovic:contract-deployment
Sep 20, 2021
Merged

raiden: proxies: remove contract bytecode checking#7251
fredo merged 5 commits into
raiden-network:developfrom
istankovic:contract-deployment

Conversation

@istankovic
Copy link
Copy Markdown
Contributor

It's not all that useful and it prevents us from working
with split contract code.

See #7203.

@istankovic istankovic marked this pull request as ready for review September 17, 2021 09:57
@auto-assign auto-assign Bot requested a review from fredo September 17, 2021 09:57
@istankovic
Copy link
Copy Markdown
Contributor Author

This is not as urgent as it was before since we're not doing linking anymore, but if we're going to reuse the old secret registry on mainnet, which was compiled with a different version of solidity, then we may consider just removing the check.

@ulope

Copy link
Copy Markdown
Collaborator

@ulope ulope left a comment

Choose a reason for hiding this comment

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

LGTM

One nitpick below

Comment thread raiden/network/rpc/client.py Outdated
Comment on lines +1079 to +1085
def sync_nonce(self) -> None:
self._available_nonce = discover_next_available_nonce(
self.web3, self.eth_node, self.address
)

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

AFAICS this is only used in the smoketest.
Therefore I'd either make it a private method or use a custom subclass with this method in the smoketest.

@palango
Copy link
Copy Markdown
Contributor

palango commented Sep 20, 2021

Smoketests fail with:

Traceback (most recent call last):
  File "/home/circleci/raiden/raiden/ui/cli.py", line 875, in _smoketest
    with setup_smoketest(
  File "/usr/local/lib/python3.9/contextlib.py", line 119, in __enter__
    return next(self.gen)
  File "/home/circleci/raiden/raiden/tests/utils/smoketest.py", line 633, in setup_smoketest
    if ethereum_nodes:
UnboundLocalError: local variable 'ethereum_nodes' referenced before assignment

Ivan Stanković and others added 3 commits September 20, 2021 12:32
It's not all that useful and it prevents us from working
with split contract code.

See raiden-network#7203.
ContractDeployer supports linking, which our previous deployment mechanism
based on JSONRPCClient does not.
@fredo fredo force-pushed the contract-deployment branch from 9fbd71a to 5f6e3c1 Compare September 20, 2021 10:48
@fredo fredo merged commit 4a42b3f into raiden-network:develop Sep 20, 2021
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