Skip to content
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

Add support for validator to just create wallet or contract #910

Merged
merged 4 commits into from
Aug 5, 2022

Conversation

joshuacolvin0
Copy link
Member

No description provided.

@cla-bot cla-bot bot added the cla-signed label Aug 5, 2022
@codecov
Copy link

codecov bot commented Aug 5, 2022

Codecov Report

Merging #910 (fac23a2) into master (ec70ed7) will decrease coverage by 4.30%.
The diff coverage is 13.63%.

❗ Current head fac23a2 differs from pull request most recent head 721bd83. Consider uploading reports for the commit 721bd83 to get more accurate results

@@            Coverage Diff             @@
##           master     #910      +/-   ##
==========================================
- Coverage   51.78%   47.47%   -4.31%     
==========================================
  Files         228      216      -12     
  Lines       28447    24346    -4101     
  Branches      502      502              
==========================================
- Hits        14732    11559    -3173     
+ Misses      12139    11208     -931     
- Partials     1576     1579       +3     

Comment on lines 789 to 791
if !chainFound {
// If persistent-chain not defined, user not creating custom chain
return nil, nil, nil, nil, nil, fmt.Errorf("Unknown chain with L1: %d, L2: %d\n", l1ChainId.Uint64(), l2ChainId)
Copy link
Contributor

Choose a reason for hiding this comment

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

We might still want to say something about setting the persistent chain since they could have a full custom config?

Comment on lines +410 to 419
daSigner, err = arbnode.GetSignerFromWallet(l1Wallet)
if err != nil {
fmt.Printf("%v\n", err.Error())
return
}

l1TransactionOpts, err = util.GetTransactOptsFromWallet(
l1Wallet,
new(big.Int).SetUint64(nodeConfig.L1.ChainID),
)
Copy link
Contributor

Choose a reason for hiding this comment

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

At some point we really need to unify these code paths, but I don't think it's worth it for now

cmd/nitro/nitro.go Outdated Show resolved Hide resolved
Copy link
Contributor

@hkalodner hkalodner left a comment

Choose a reason for hiding this comment

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

LGTM

@hkalodner hkalodner enabled auto-merge (rebase) August 5, 2022 13:16
@hkalodner hkalodner merged commit 66bf3c1 into master Aug 5, 2022
@hkalodner hkalodner deleted the validator-setup branch August 16, 2022 02:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants